/* okplay apk - design-bb27.css
   Mobile-first casino gaming styles. All custom classes use the sbb2- prefix. */

:root {
  --sbb2-primary: #DC143C;
  --sbb2-primary-dark: #a00f2c;
  --sbb2-silver: #C0C0C0;
  --sbb2-light: #F5F5F5;
  --sbb2-dark: #0C0C0C;
  --sbb2-muted: #95A5A6;
  --sbb2-bg: #0C0C0C;
  --sbb2-bg-soft: #161616;
  --sbb2-card: #1c1c1c;
  --sbb2-text: #F5F5F5;
  --sbb2-text-dim: #b8b8b8;
  --sbb2-accent: #DC143C;
  --sbb2-gold: #d4af37;
  --sbb2-radius: 12px;
  --sbb2-header-h: 58px;
  --sbb2-bottom-h: 62px;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }
a { color: var(--sbb2-primary); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; }

/* ===== Layout ===== */
.sbb2-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.sbb2-container { padding: 0 16px; }
.sbb2-main { padding-top: var(--sbb2-header-h); padding-bottom: 90px; }

/* ===== Header ===== */
.sbb2-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: var(--sbb2-header-h);
  background: linear-gradient(180deg, #141414 0%, #0C0C0C 100%);
  border-bottom: 1px solid rgba(220, 20, 60, 0.45);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.sbb2-logo { display: flex; align-items: center; gap: 8px; color: var(--sbb2-text); }
.sbb2-logo img { width: 30px; height: 30px; border-radius: 6px; }
.sbb2-logo .sbb2-logo-name { font-size: 1.5rem; font-weight: 800; letter-spacing: 0.3px; }
.sbb2-logo .sbb2-logo-name span { color: var(--sbb2-primary); }

.sbb2-header-actions { display: flex; align-items: center; gap: 8px; }
.sbb2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer; border: none;
  transition: transform .15s ease, opacity .15s ease;
}
.sbb2-btn:active { transform: scale(0.96); }
.sbb2-btn-primary { background: var(--sbb2-primary); color: #fff; }
.sbb2-btn-secondary { background: transparent; color: var(--sbb2-text); border: 1px solid var(--sbb2-silver); }
.sbb2-menu-btn {
  background: transparent; border: none; color: var(--sbb2-text);
  font-size: 1.8rem; cursor: pointer; padding: 6px 8px; border-radius: 8px;
}
.sbb2-menu-btn.sbb2-menu-active { background: rgba(220,20,60,0.18); }

/* ===== Mobile slide-down menu ===== */
.sbb2-menu-overlay {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,0.55);
}
.sbb2-menu-overlay.sbb2-overlay-show { display: block; }
.sbb2-mobile-menu {
  position: fixed; top: var(--sbb2-header-h); left: 0; right: 0; z-index: 9999;
  max-width: 430px; margin: 0 auto;
  background: #121212; border-bottom: 1px solid rgba(220,20,60,0.4);
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
}
.sbb2-mobile-menu.sbb2-menu-open { max-height: 520px; }
.sbb2-mobile-menu ul { list-style: none; margin: 0; padding: 6px 0; }
.sbb2-mobile-menu li a {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  color: var(--sbb2-text); font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sbb2-mobile-menu li a:active { background: rgba(220,20,60,0.12); }
.sbb2-mobile-menu li a i { color: var(--sbb2-primary); width: 22px; text-align: center; }

/* ===== Carousel ===== */
.sbb2-carousel {
  position: relative; margin: 12px 0; border-radius: var(--sbb2-radius);
  overflow: hidden; background: #111;
}
.sbb2-slide {
  display: none; position: relative; cursor: pointer;
}
.sbb2-slide.sbb2-slide-active { display: block; }
.sbb2-slide img { width: 100%; height: 180px; object-fit: cover; }
.sbb2-slide-cap {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(12,12,12,0.7); padding: 10px 12px; border-radius: 10px;
}
.sbb2-slide-cap h3 { margin: 0 0 4px; font-size: 1.5rem; color: #fff; }
.sbb2-slide-cap p { margin: 0; font-size: 1.2rem; color: var(--sbb2-text-dim); }
.sbb2-dots { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; }
.sbb2-dot {
  display: inline-block; width: 8px; height: 8px; margin: 0 3px;
  border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer;
}
.sbb2-dot.sbb2-dot-active { background: var(--sbb2-primary); }

/* ===== Sections & headings ===== */
.sbb2-section { padding: 18px 16px; }
.sbb2-section-title {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; color: #fff;
}
.sbb2-section-title i { color: var(--sbb2-primary); }
.sbb2-section-sub { font-size: 1.3rem; color: var(--sbb2-text-dim); margin-bottom: 14px; }

/* ===== Game grid ===== */
.sbb2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sbb2-card {
  background: var(--sbb2-card); border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05); cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.sbb2-card:active { transform: scale(0.97); border-color: var(--sbb2-primary); }
.sbb2-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.sbb2-card-name {
  padding: 6px 6px 8px; font-size: 1.1rem; color: var(--sbb2-text);
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sbb2-cat-tag {
  display: inline-block; font-size: 1.05rem; font-weight: 700; color: #fff;
  background: rgba(220,20,60,0.18); border-left: 3px solid var(--sbb2-primary);
  padding: 4px 10px; border-radius: 4px; margin: 16px 16px 8px; text-transform: capitalize;
}

/* ===== Info / promo blocks ===== */
.sbb2-card-block {
  background: var(--sbb2-card); border-radius: var(--sbb2-radius); padding: 16px;
  margin: 12px 16px; border: 1px solid rgba(255,255,255,0.05);
}
.sbb2-card-block h3 { color: #fff; font-size: 1.5rem; }
.sbb2-card-block p { color: var(--sbb2-text-dim); font-size: 1.3rem; margin: 0 0 8px; }
.sbb2-card-block ul { padding-left: 18px; color: var(--sbb2-text-dim); font-size: 1.3rem; }
.sbb2-card-block li { margin-bottom: 6px; }

.sbb2-cta {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #1c1c1c 0%, #2a0d12 100%);
  border: 1px solid rgba(220,20,60,0.4); border-radius: var(--sbb2-radius);
  padding: 18px; margin: 14px 16px; text-align: center;
}
.sbb2-cta h3 { color: #fff; font-size: 1.7rem; margin: 0; }
.sbb2-cta p { color: var(--sbb2-text-dim); font-size: 1.3rem; margin: 0; }
.sbb2-cta .sbb2-btn { min-width: 200px; }

.sbb2-pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: rgba(220,20,60,0.18); color: #fff; font-size: 1.05rem; margin-right: 6px;
}

/* ===== Inline promo link (text) ===== */
.sbb2-link {
  color: var(--sbb2-primary); font-weight: 700; cursor: pointer;
}
.sbb2-link:hover { text-decoration: underline; }

/* ===== Footer ===== */
.sbb2-footer {
  background: #0a0a0a; border-top: 1px solid rgba(220,20,60,0.3);
  padding: 20px 16px 24px; margin-top: 18px;
}
.sbb2-footer-about { font-size: 1.25rem; color: var(--sbb2-text-dim); margin-bottom: 14px; }
.sbb2-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sbb2-footer-links a {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: #1c1c1c; color: var(--sbb2-text); font-size: 1.15rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.sbb2-footer-links a:active { border-color: var(--sbb2-primary); }
.sbb2-footer-copy { font-size: 1.1rem; color: var(--sbb2-muted); text-align: center; }

/* ===== Bottom nav ===== */
.sbb2-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto;
  height: var(--sbb2-bottom-h);
  background: linear-gradient(180deg, #141414 0%, #0C0C0C 100%);
  border-top: 1px solid rgba(220,20,60,0.45);
  display: flex; justify-content: space-around; align-items: center;
}
.sbb2-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: transparent; border: none; color: var(--sbb2-text-dim);
  cursor: pointer; transition: color .15s ease, transform .15s ease;
}
.sbb2-bottom-nav-btn:active { transform: scale(0.92); }
.sbb2-bottom-nav-btn .sbb2-nav-icon { font-size: 22px; line-height: 1; }
.sbb2-bottom-nav-btn .sbb2-nav-label { font-size: 1.05rem; }
.sbb2-bottom-nav-btn.sbb2-nav-current { color: var(--sbb2-primary); }
.sbb2-bottom-nav-btn.sbb2-nav-promo .sbb2-nav-icon { color: var(--sbb2-primary); }

/* ===== Misc helpers ===== */
.sbb2-row { display: flex; gap: 10px; flex-wrap: wrap; }
.sbb2-row > * { flex: 1 1 auto; }
.sbb2-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 14px 0; }
.sbb2-text-muted { color: var(--sbb2-text-dim); }
.sbb2-hide-desktop { display: block; }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .sbb2-bottom-nav { display: none; }
  .sbb2-main { padding-bottom: 30px; }
  body { max-width: 760px; }
  .sbb2-header, .sbb2-mobile-menu, .sbb2-wrapper { max-width: 760px; }
  .sbb2-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ===== Small mobile tuning ===== */
@media (max-width: 360px) {
  .sbb2-grid { grid-template-columns: repeat(2, 1fr); }
  .sbb2-logo .sbb2-logo-name { font-size: 1.3rem; }
}
