/* ninong website core stylesheet
   All custom classes use prefix "sc70-"
   Mobile-first design, max-width 430px
   Color palette: #E65100 (primary) | #FF6347 (accent) | #0A0A0A (dark bg) */

:root {
  --sc70-primary: #E65100;
  --sc70-accent: #FF6347;
  --sc70-bg: #0A0A0A;
  --sc70-bg-soft: #151515;
  --sc70-bg-card: #1c1c1c;
  --sc70-text: #f5f5f5;
  --sc70-text-muted: #b8b8b8;
  --sc70-border: #2a2a2a;
  --sc70-gold: #ffd27a;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--sc70-bg);
  color: var(--sc70-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--sc70-accent);
  text-decoration: none;
}

/* ========== Layout ========== */
.sc70-container {
  width: 100%;
  padding: 0 1.2rem;
}

.sc70-wrapper {
  max-width: 430px;
  margin: 0 auto;
}

/* ========== Header ========== */
.sc70-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid var(--sc70-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.2rem;
  backdrop-filter: blur(8px);
}

.sc70-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.sc70-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.sc70-logo-text {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sc70-primary);
  letter-spacing: 0.5px;
}

.sc70-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sc70-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.sc70-btn:active {
  transform: scale(0.94);
}

.sc70-btn-login {
  background: transparent;
  border: 1px solid var(--sc70-primary);
  color: var(--sc70-primary);
}

.sc70-btn-register {
  background: linear-gradient(135deg, var(--sc70-primary), var(--sc70-accent));
  color: #fff;
}

.sc70-menu-toggle {
  background: transparent;
  border: none;
  color: var(--sc70-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.sc70-menu-toggle:active {
  background: var(--sc70-bg-card);
}

.sc70-toggle-active {
  background: var(--sc70-bg-card);
}

/* ========== Mobile Menu ========== */
.sc70-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 9998;
}

.sc70-overlay-active {
  opacity: 1;
  visibility: visible;
}

.sc70-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--sc70-bg-soft);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 9999;
  padding: 6rem 1.6rem 2rem;
  overflow-y: auto;
}

.sc70-menu-open {
  transform: translateX(0);
}

.sc70-mobile-menu h3 {
  font-size: 1.3rem;
  color: var(--sc70-text-muted);
  margin: 1.6rem 0 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sc70-mobile-menu a {
  display: block;
  padding: 0.9rem 1rem;
  color: var(--sc70-text);
  border-radius: 8px;
  font-size: 1.4rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.sc70-mobile-menu a:active {
  background: var(--sc70-bg-card);
  color: var(--sc70-accent);
}

.sc70-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--sc70-text);
  font-size: 2rem;
  cursor: pointer;
}

/* ========== Main content ========== */
main {
  padding-top: 5.5rem;
}

/* ========== Carousel ========== */
.sc70-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}

.sc70-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}

.sc70-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sc70-slide-active {
  opacity: 1;
}

.sc70-carousel-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.4rem;
  background: rgba(10, 10, 10, 0.55);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1.2rem;
  color: #fff;
  max-width: 75%;
}

.sc70-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(10, 10, 10, 0.45);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 5;
}

.sc70-carousel-arrow:active {
  background: var(--sc70-primary);
}

.sc70-arrow-prev { left: 0.8rem; }
.sc70-arrow-next { right: 0.8rem; }

.sc70-carousel-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.sc70-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
}

.sc70-dot-active {
  background: var(--sc70-primary);
  width: 16px;
  border-radius: 4px;
}

/* ========== Sections ========== */
.sc70-section {
  padding: 2rem 1.2rem;
}

.sc70-section-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--sc70-text);
  margin-bottom: 0.4rem;
}

.sc70-section-sub {
  font-size: 1.3rem;
  color: var(--sc70-text-muted);
  margin-bottom: 1.4rem;
}

.sc70-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--sc70-text);
  margin-bottom: 0.8rem;
}

.sc70-h1 .sc70-h1-accent {
  color: var(--sc70-primary);
}

.sc70-lead {
  font-size: 1.35rem;
  color: var(--sc70-text-muted);
  margin-bottom: 1.2rem;
}

.sc70-prose p {
  margin-bottom: 1rem;
  color: var(--sc70-text);
}

.sc70-prose h2 {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 1.8rem 0 0.6rem;
  color: var(--sc70-primary);
}

.sc70-prose h3 {
  font-size: 1.45rem;
  font-weight: 600;
  margin: 1.2rem 0 0.4rem;
  color: var(--sc70-accent);
}

.sc70-prose ul {
  margin: 0.6rem 0 1rem 1.6rem;
}

.sc70-prose li {
  margin-bottom: 0.4rem;
}

/* Promo text link */
.sc70-text-link {
  color: var(--sc70-accent);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--sc70-accent);
}

.sc70-text-link:hover {
  color: var(--sc70-primary);
}

/* CTA banner */
.sc70-cta {
  background: linear-gradient(135deg, var(--sc70-primary), var(--sc70-accent));
  border-radius: 14px;
  padding: 1.6rem;
  text-align: center;
  margin: 1.4rem 0;
}

.sc70-cta h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.sc70-cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.sc70-cta-btn {
  display: inline-block;
  background: #0A0A0A;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 24px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
}

.sc70-cta-btn:active {
  transform: scale(0.95);
}

/* ========== Category tabs / labels ========== */
.sc70-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sc70-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.8rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--sc70-primary);
  width: 100%;
}

/* ========== Game grid ========== */
.sc70-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.sc70-card {
  background: var(--sc70-bg-card);
  border: 1px solid var(--sc70-border);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.sc70-card:active {
  transform: scale(0.96);
  border-color: var(--sc70-primary);
}

.sc70-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.sc70-card-name {
  font-size: 1.05rem;
  color: var(--sc70-text);
  padding: 0.4rem 0.3rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ========== Feature cards ========== */
.sc70-feature {
  background: var(--sc70-bg-card);
  border: 1px solid var(--sc70-border);
  border-left: 3px solid var(--sc70-primary);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.sc70-feature h3 {
  font-size: 1.4rem;
  color: var(--sc70-accent);
  margin-bottom: 0.4rem;
}

.sc70-feature p {
  font-size: 1.25rem;
  color: var(--sc70-text-muted);
}

/* ========== Testimonial ========== */
.sc70-testimonial {
  background: var(--sc70-bg-card);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--sc70-border);
}

.sc70-testimonial-text {
  font-size: 1.25rem;
  color: var(--sc70-text);
  font-style: italic;
  margin-bottom: 0.6rem;
}

.sc70-testimonial-author {
  font-size: 1.1rem;
  color: var(--sc70-primary);
  font-weight: 600;
}

/* ========== Payment row ========== */
.sc70-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.sc70-pay-chip {
  background: var(--sc70-bg-card);
  border: 1px solid var(--sc70-border);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 1.15rem;
  color: var(--sc70-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ========== Winners ========== */
.sc70-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sc70-bg-card);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.sc70-winner-name {
  color: var(--sc70-text);
  font-weight: 600;
}

.sc70-winner-amount {
  color: var(--sc70-gold);
  font-weight: 700;
}

/* ========== Footer ========== */
.sc70-footer {
  background: var(--sc70-bg-soft);
  border-top: 1px solid var(--sc70-border);
  padding: 2rem 1.2rem 6rem;
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--sc70-text-muted);
}

.sc70-footer-brand {
  color: var(--sc70-primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.sc70-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin: 1rem 0;
}

.sc70-footer-links a {
  color: var(--sc70-text-muted);
  font-size: 1.15rem;
}

.sc70-footer-links a:hover {
  color: var(--sc70-accent);
}

.sc70-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}

.sc70-footer-promo .sc70-btn {
  flex: 1 1 auto;
  min-width: 120px;
}

.sc70-footer-copy {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  border-top: 1px solid var(--sc70-border);
  padding-top: 1rem;
}

/* ========== Mobile bottom nav ========== */
.sc70-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #151515, #0A0A0A);
  border-top: 2px solid var(--sc70-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.5);
}

.sc70-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: 2px;
  color: var(--sc70-text-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}

.sc70-bottom-nav-btn i,
.sc70-bottom-nav-btn span.material-icons {
  font-size: 22px;
}

.sc70-bottom-nav-btn .sc70-nav-label {
  font-size: 10px;
  font-weight: 600;
}

.sc70-bottom-nav-btn:active {
  transform: scale(0.92);
  color: var(--sc70-primary);
}

.sc70-nav-active {
  color: var(--sc70-primary);
}

.sc70-nav-active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--sc70-accent);
}

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .sc70-bottom-nav {
    display: none;
  }
  body {
    max-width: 430px;
  }
}

/* Mobile content bottom padding for nav clearance */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}
