/* abc7.click - Core Stylesheet */
/* All custom classes use prefix "sd16-" per project convention */
/* Color palette: #778899 | #FF5722 | #5D5D5D | #0C0C0C | #A0522D */

:root {
  --sd16-primary: #FF5722;
  --sd16-bg: #0C0C0C;
  --sd16-bg-soft: #1a1a1a;
  --sd16-text: #ffffff;
  --sd16-text-dim: #778899;
  --sd16-accent: #A0522D;
  --sd16-muted: #5D5D5D;
  --sd16-card: #161616;
  --sd16-border: #2a2a2a;
  --sd16-gold: #FFB74D;
  --sd16-radius: 12px;
  --sd16-header-h: 56px;
  --sd16-bottom-h: 62px;
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: var(--sd16-bg);
  color: var(--sd16-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  max-width: 430px;
  margin: 0 auto;
}

.sd16-body-no-scroll { overflow: hidden; }
body.sd16-no-scroll { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.sd16-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--sd16-header-h);
  background: rgba(12, 12, 12, 0.96);
  border-bottom: 1px solid var(--sd16-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.sd16-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sd16-text);
  font-weight: 700;
  font-size: 1.6rem;
}
.sd16-logo img { width: 28px; height: 28px; border-radius: 6px; }
.sd16-logo .sd16-logo-accent { color: var(--sd16-primary); }

.sd16-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.sd16-menu-btn {
  background: transparent;
  border: 1px solid var(--sd16-border);
  color: var(--sd16-text);
  width: 38px; height: 38px;
  border-radius: 8px;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

.sd16-btn {
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.3rem;
  padding: 0.7rem 1.2rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
  min-height: 36px;
}
.sd16-btn:active { transform: scale(0.94); }
.sd16-btn-login {
  background: transparent;
  color: var(--sd16-text);
  border: 1px solid var(--sd16-text-dim);
}
.sd16-btn-register {
  background: var(--sd16-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 87, 34, 0.35);
}

/* ===== Mobile slide menu ===== */
.sd16-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
}
.sd16-overlay.sd16-menu-open { opacity: 1; visibility: visible; }
.sd16-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%; max-width: 320px;
  height: 100%;
  background: var(--sd16-bg-soft);
  z-index: 9999;
  padding: 2rem 1.4rem;
  transition: right 0.28s ease;
  overflow-y: auto;
}
.sd16-mobile-menu.sd16-menu-open { right: 0; }
.sd16-menu-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: transparent; border: none; color: var(--sd16-text);
  font-size: 2rem; cursor: pointer;
}
.sd16-menu-title { font-size: 1.6rem; margin-bottom: 1.4rem; color: var(--sd16-primary); font-weight: 700; }
.sd16-menu-link {
  display: block; padding: 1rem 0.6rem;
  border-bottom: 1px solid var(--sd16-border);
  color: var(--sd16-text); font-size: 1.4rem;
}
.sd16-menu-link:active { background: rgba(255,87,34,0.12); }

/* ===== Main layout ===== */
.sd16-main { padding-top: var(--sd16-header-h); }

/* ===== Carousel ===== */
.sd16-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}
.sd16-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.sd16-carousel-slide.sd16-active { opacity: 1; }
.sd16-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.sd16-carousel-overlay {
  position: absolute; left: 1.2rem; bottom: 1.4rem; right: 1.2rem;
  z-index: 2;
}
.sd16-carousel-title { font-size: 1.8rem; font-weight: 700; text-shadow: 0 2px 6px rgba(0,0,0,0.7); }
.sd16-carousel-cta {
  display: inline-block; margin-top: 0.6rem;
  background: var(--sd16-primary); color: #fff;
  padding: 0.5rem 1.1rem; border-radius: 20px; font-size: 1.2rem; font-weight: 600;
}
.sd16-carousel-dots {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem; z-index: 3;
}
.sd16-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer;
}
.sd16-carousel-dot.sd16-active { background: var(--sd16-primary); }

/* ===== Sections ===== */
.sd16-section { padding: 2rem 1.2rem; }
.sd16-section-title {
  font-size: 1.7rem; font-weight: 700; margin-bottom: 1rem;
  border-left: 4px solid var(--sd16-primary);
  padding-left: 0.8rem;
}
.sd16-section-title .sd16-h-accent { color: var(--sd16-primary); }

/* ===== Promo CTA strip ===== */
.sd16-promo-strip {
  background: linear-gradient(135deg, var(--sd16-accent), var(--sd16-primary));
  padding: 1.2rem; border-radius: var(--sd16-radius);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.5rem;
}
.sd16-promo-strip-text { font-weight: 700; font-size: 1.3rem; }
.sd16-promo-strip-btn {
  background: #fff; color: var(--sd16-primary);
  padding: 0.6rem 1.1rem; border-radius: 20px; font-weight: 700; font-size: 1.2rem;
  border: none; cursor: pointer; white-space: nowrap;
}

/* ===== Game grid ===== */
.sd16-game-block { margin-bottom: 2rem; }
.sd16-game-cat-title {
  font-size: 1.5rem; font-weight: 700; color: var(--sd16-text);
  margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.5rem;
}
.sd16-game-cat-title i { color: var(--sd16-primary); font-size: 1.6rem; }
.sd16-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.sd16-game-card {
  background: var(--sd16-card);
  border: 1px solid var(--sd16-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}
.sd16-game-card:active {
  transform: scale(0.95);
  border-color: var(--sd16-primary);
}
.sd16-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover; background: #000;
}
.sd16-game-name {
  font-size: 1.05rem; padding: 0.4rem 0.3rem 0.5rem;
  color: var(--sd16-text); line-height: 1.3rem;
  min-height: 2.6rem; display: flex; align-items: center; justify-content: center;
}

/* ===== Feature cards ===== */
.sd16-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
}
.sd16-feature-card {
  background: var(--sd16-card);
  border: 1px solid var(--sd16-border);
  border-radius: var(--sd16-radius);
  padding: 1.2rem; text-align: center;
}
.sd16-feature-icon { font-size: 2.4rem; color: var(--sd16-primary); margin-bottom: 0.6rem; }
.sd16-feature-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.3rem; }
.sd16-feature-desc { font-size: 1.1rem; color: var(--sd16-text-dim); line-height: 1.4rem; }

/* ===== Content blocks ===== */
.sd16-content-block {
  background: var(--sd16-card);
  border: 1px solid var(--sd16-border);
  border-radius: var(--sd16-radius);
  padding: 1.4rem; margin-bottom: 1.2rem;
}
.sd16-content-block p { margin-bottom: 0.8rem; color: #d9d9d9; font-size: 1.25rem; line-height: 1.7rem; }
.sd16-content-block p:last-child { margin-bottom: 0; }
.sd16-content-block h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.sd16-content-block h3 { font-size: 1.4rem; margin: 0.8rem 0 0.4rem; color: var(--sd16-primary); }
.sd16-text-link { color: var(--sd16-primary); font-weight: 600; cursor: pointer; }
.sd16-text-link:active { opacity: 0.7; }
.sd16-bold { font-weight: 700; color: var(--sd16-gold); }

/* ===== Testimonials ===== */
.sd16-testimonial {
  background: var(--sd16-card);
  border-left: 3px solid var(--sd16-primary);
  border-radius: 8px;
  padding: 1rem 1.2rem; margin-bottom: 0.8rem;
}
.sd16-testimonial-author { font-weight: 700; font-size: 1.2rem; color: var(--sd16-gold); margin-bottom: 0.3rem; }
.sd16-testimonial-text { font-size: 1.2rem; color: #d9d9d9; line-height: 1.5rem; }

/* ===== Winners ticker ===== */
.sd16-winners {
  background: var(--sd16-card);
  border: 1px solid var(--sd16-border);
  border-radius: var(--sd16-radius);
  padding: 1rem 1.2rem; margin-bottom: 1.2rem;
}
.sd16-winner-row {
  display: flex; justify-content: space-between;
  padding: 0.5rem 0; border-bottom: 1px dashed var(--sd16-border);
  font-size: 1.2rem;
}
.sd16-winner-row:last-child { border-bottom: none; }
.sd16-winner-name { color: var(--sd16-gold); font-weight: 600; }
.sd16-winner-amount { color: var(--sd16-primary); font-weight: 700; }

/* ===== Payment chips ===== */
.sd16-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem; }
.sd16-pay-chip {
  background: var(--sd16-bg-soft);
  border: 1px solid var(--sd16-border);
  border-radius: 20px;
  padding: 0.5rem 1rem; font-size: 1.1rem; color: var(--sd16-text-dim);
}

/* ===== Big CTA ===== */
.sd16-cta-block {
  background: linear-gradient(135deg, var(--sd16-primary), var(--sd16-accent));
  border-radius: var(--sd16-radius);
  padding: 1.6rem; text-align: center; margin: 1.4rem 0;
}
.sd16-cta-block h3 { font-size: 1.6rem; margin-bottom: 0.5rem; color: #fff; }
.sd16-cta-block p { color: #fff; font-size: 1.2rem; margin-bottom: 1rem; opacity: 0.95; }
.sd16-cta-btn {
  background: #fff; color: var(--sd16-primary);
  border: none; border-radius: 24px;
  padding: 0.9rem 2rem; font-weight: 700; font-size: 1.3rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem;
}

/* ===== Footer ===== */
.sd16-footer {
  background: var(--sd16-bg-soft);
  border-top: 1px solid var(--sd16-border);
  padding: 2rem 1.2rem;
  margin-top: 1.5rem;
}
.sd16-footer-brand { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.6rem; }
.sd16-footer-desc { font-size: 1.15rem; color: var(--sd16-text-dim); line-height: 1.6rem; margin-bottom: 1rem; }
.sd16-footer-links { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
.sd16-footer-link {
  font-size: 1.15rem; color: var(--sd16-text-dim);
  padding: 0.4rem 0.8rem; background: var(--sd16-bg); border: 1px solid var(--sd16-border);
  border-radius: 16px;
}
.sd16-footer-link:active { color: var(--sd16-primary); }
.sd16-footer-copy { font-size: 1.05rem; color: var(--sd16-muted); margin-top: 0.8rem; }

/* ===== Mobile bottom nav ===== */
.sd16-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  height: var(--sd16-bottom-h);
  background: rgba(12,12,12,0.98);
  border-top: 1px solid var(--sd16-border);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.sd16-bottom-nav-btn {
  flex: 1;
  min-width: 60px; min-height: 60px;
  background: transparent; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--sd16-text-dim);
  cursor: pointer; transition: color 0.18s ease, transform 0.18s ease;
}
.sd16-bottom-nav-btn i, .sd16-bottom-nav-btn span.material-icons-outlined,
.sd16-bottom-nav-btn ion-icon { font-size: 22px; }
.sd16-bottom-nav-btn ion-icon { font-size: 24px; }
.sd16-bottom-nav-btn .sd16-nav-label { font-size: 1rem; line-height: 1; }
.sd16-bottom-nav-btn:active { transform: scale(0.9); color: var(--sd16-primary); }
.sd16-bottom-nav-btn.sd16-nav-active { color: var(--sd16-primary); }

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  .sd16-bottom-nav { display: none; }
}

/* ===== Mobile bottom padding clearance ===== */
@media (max-width: 768px) {
  .sd16-main { padding-bottom: calc(var(--sd16-bottom-h) + 14px); }
  body { max-width: 430px; }
}

/* Larger tablet / small desktop */
@media (min-width: 431px) and (max-width: 768px) {
  .sd16-grid { grid-template-columns: repeat(4, 1fr); }
  .sd16-feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 769px) {
  .sd16-grid { grid-template-columns: repeat(6, 1fr); }
  .sd16-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .sd16-section { padding: 2.4rem 1.6rem; }
}
