/* ============================================================
 * nino gaming apk - core base styles
 * Class prefix: sa18-
 * Palette: #1C2833 | #4A4A4A | #7CFC00 | #F8F8FF | #2E8B57 | #CCCCCC
 * Mobile-first. Root font 62.5% => 1rem = 10px.
 * ============================================================ */

:root {
  --sa18-bg-dark: #1C2833;
  --sa18-bg-mid: #4A4A4A;
  --sa18-accent: #7CFC00;
  --sa18-accent-deep: #2E8B57;
  --sa18-text: #F8F8FF;
  --sa18-muted: #CCCCCC;
  --sa18-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", "Helvetica Neue", Arial, sans-serif;
  background: var(--sa18-bg-dark);
  color: var(--sa18-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

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

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

.sa18-wrapper {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.sa18-section {
  padding: 2.4rem 1.2rem;
}

.sa18-section-alt {
  background: #11181f;
}

/* ---------- Header ---------- */
.sa18-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1C2833 0%, #2a3a4a 100%);
  border-bottom: 0.2rem solid var(--sa18-accent-deep);
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.sa18-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sa18-text);
  font-weight: 700;
  font-size: 1.5rem;
}

.sa18-logo img {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.6rem;
}

.sa18-logo .sa18-logo-accent {
  color: var(--sa18-accent);
}

.sa18-head-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---------- Buttons ---------- */
.sa18-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.sa18-btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.sa18-btn-primary {
  background: var(--sa18-accent);
  color: #0d1410;
  box-shadow: 0 0.4rem 1rem rgba(124, 252, 0, 0.25);
}

.sa18-btn-outline {
  background: transparent;
  color: var(--sa18-text);
  border: 0.15rem solid var(--sa18-accent-deep);
}

.sa18-btn-ghost {
  background: var(--sa18-bg-mid);
  color: var(--sa18-text);
}

.sa18-btn-block {
  display: flex;
  width: 100%;
}

.sa18-menu-btn {
  background: transparent;
  border: 0.15rem solid var(--sa18-accent-deep);
  color: var(--sa18-text);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.8rem;
  font-size: 1.6rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Navigation menu ---------- */
.sa18-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #11181f;
  border-bottom: 0.2rem solid var(--sa18-accent-deep);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

.sa18-nav-open {
  max-height: 60rem;
}

.sa18-nav ul {
  list-style: none;
  padding: 0.8rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}

.sa18-nav a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--sa18-text);
  background: var(--sa18-bg-dark);
  border-radius: 0.6rem;
  font-size: 1.3rem;
  text-align: center;
  border: 0.1rem solid #2a3a4a;
}

.sa18-nav a:hover {
  background: var(--sa18-accent-deep);
  color: #fff;
  text-decoration: none;
}

.sa18-nav .sa18-nav-head {
  grid-column: 1 / -1;
  color: var(--sa18-accent);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  background: transparent;
  border: none;
  padding: 0.4rem 0;
  text-align: left;
}

/* ---------- Hero carousel ---------- */
.sa18-hero {
  position: relative;
  padding: 1.2rem;
}

.sa18-carousel {
  position: relative;
  border-radius: var(--sa18-radius);
  overflow: hidden;
  box-shadow: 0 0.6rem 1.6rem rgba(0, 0, 0, 0.4);
}

.sa18-slide {
  display: none;
  position: relative;
}

.sa18-slide-active {
  display: block;
}

.sa18-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.sa18-slide-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(28, 40, 51, 0.95));
  color: var(--sa18-text);
}

.sa18-slide-cap h2 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.sa18-slide-cap p {
  font-size: 1.2rem;
  color: var(--sa18-muted);
}

.sa18-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}

/* ---------- Headings ---------- */
.sa18-h1 {
  font-size: 2.2rem;
  line-height: 2.8rem;
  margin: 1.2rem 0;
  color: var(--sa18-text);
}

.sa18-h1 span {
  color: var(--sa18-accent);
}

.sa18-h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  padding-left: 0.8rem;
  border-left: 0.4rem solid var(--sa18-accent);
}

.sa18-h3 {
  font-size: 1.5rem;
  margin: 1rem 0 0.6rem;
  color: var(--sa18-accent);
}

.sa18-intro {
  color: var(--sa18-muted);
  font-size: 1.35rem;
  line-height: 2.1rem;
  margin-bottom: 1.2rem;
}

.sa18-prose p {
  font-size: 1.35rem;
  line-height: 2.1rem;
  margin-bottom: 1rem;
  color: var(--sa18-text);
}

/* ---------- Game grid ---------- */
.sa18-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 2rem 0 1rem;
}

.sa18-cat-head h2 {
  margin: 0;
  border: none;
  padding: 0;
  font-size: 1.6rem;
  color: var(--sa18-accent);
}

.sa18-cat-head .sa18-cat-icon {
  font-size: 1.8rem;
  color: var(--sa18-accent-deep);
}

.sa18-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.sa18-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.sa18-card {
  background: #11181f;
  border: 0.1rem solid #2a3a4a;
  border-radius: 0.8rem;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: block;
}

.sa18-card:hover {
  transform: translateY(-2px);
  border-color: var(--sa18-accent);
  text-decoration: none;
}

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

.sa18-card-name {
  padding: 0.5rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--sa18-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Feature / info blocks ---------- */
.sa18-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.sa18-feature {
  background: #11181f;
  border-radius: 0.8rem;
  padding: 1.2rem;
  border-left: 0.3rem solid var(--sa18-accent);
}

.sa18-feature h3 {
  margin-bottom: 0.4rem;
}

.sa18-feature p {
  font-size: 1.25rem;
  color: var(--sa18-muted);
  line-height: 1.9rem;
}

/* ---------- RTP bars ---------- */
.sa18-rtp-row {
  background: #11181f;
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}

.sa18-rtp-row .sa18-rtp-head {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.sa18-rtp-bar {
  height: 0.8rem;
  background: #0d1410;
  border-radius: 1rem;
  overflow: hidden;
}

.sa18-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sa18-accent-deep), var(--sa18-accent));
}

/* ---------- Testimonials ---------- */
.sa18-quote {
  background: #11181f;
  border-radius: 0.8rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border-left: 0.3rem solid var(--sa18-accent-deep);
}

.sa18-quote .sa18-quote-meta {
  font-size: 1.1rem;
  color: var(--sa18-muted);
  margin-top: 0.4rem;
}

/* ---------- Payment / winners ---------- */
.sa18-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.sa18-chip {
  background: #11181f;
  border: 0.1rem solid #2a3a4a;
  border-radius: 2rem;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--sa18-text);
}

.sa18-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: #11181f;
  border-radius: 0.6rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.sa18-winner .sa18-amt {
  color: var(--sa18-accent);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.sa18-faq details {
  background: #11181f;
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
  border: 0.1rem solid #2a3a4a;
}

.sa18-faq summary {
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--sa18-accent);
}

.sa18-faq p {
  margin-top: 0.6rem;
  color: var(--sa18-muted);
  font-size: 1.25rem;
  line-height: 1.9rem;
}

/* ---------- CTA band ---------- */
.sa18-cta {
  background: linear-gradient(120deg, var(--sa18-accent-deep), #1f5e3c);
  padding: 1.6rem 1.2rem;
  border-radius: var(--sa18-radius);
  text-align: center;
  margin: 1.6rem 0;
}

.sa18-cta h2 {
  color: #fff;
  border: none;
  padding: 0;
  margin-bottom: 0.6rem;
}

.sa18-cta p {
  color: #eafff0;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.sa18-footer {
  background: #0d1410;
  padding: 2rem 1.2rem;
  margin-top: 2rem;
  border-top: 0.2rem solid var(--sa18-accent-deep);
}

.sa18-footer h3 {
  color: var(--sa18-accent);
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
}

.sa18-footer p {
  color: var(--sa18-muted);
  font-size: 1.25rem;
  line-height: 1.9rem;
  margin-bottom: 1rem;
}

.sa18-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0;
}

.sa18-footer-links a {
  font-size: 1.2rem;
  color: var(--sa18-text);
  padding: 0.4rem 0;
}

.sa18-footer-bottom {
  text-align: center;
  color: var(--sa18-muted);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 0.1rem solid #1f2a36;
}

/* ---------- Mobile bottom nav ---------- */
.sa18-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: #0d1410;
  border-top: 0.2rem solid var(--sa18-accent-deep);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 6rem;
  max-width: 430px;
  margin: 0 auto;
}

.sa18-bottombtn {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  background: transparent;
  border: none;
  color: var(--sa18-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  padding: 0.4rem;
}

.sa18-bottombtn i,
.sa18-bottombtn .material-icons-outlined,
.sa18-bottombtn ion-icon {
  font-size: 2.2rem;
}

.sa18-bottombtn ion-icon {
  width: 2.4rem;
  height: 2.4rem;
}

.sa18-bottombtn:hover {
  color: var(--sa18-accent);
  text-decoration: none;
}

.sa18-bottombtn-active {
  color: var(--sa18-accent);
}

.sa18-bottombtn-press {
  transform: scale(0.92);
}

.sa18-bottombtn-primary {
  color: #0d1410;
  background: var(--sa18-accent);
  border-radius: 1rem 1rem 0 0;
  margin: 0 0.4rem;
}

.sa18-bottombtn-primary:hover {
  color: #0d1410;
}

/* Desktop: hide bottom nav and lift width cap. */
@media (min-width: 769px) {
  body {
    max-width: 960px;
  }
  .sa18-bottomnav {
    display: none;
  }
  .sa18-wrapper,
  .sa18-container {
    max-width: 960px;
  }
}

/* Mobile: ensure content is not hidden behind the fixed bottom nav. */
@media (max-width: 768px) {
  main {
    padding-bottom: 8rem;
  }
}

/* Back-to-top floating button */
.sa18-totop {
  position: fixed;
  right: 1.2rem;
  bottom: 7.5rem;
  z-index: 900;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--sa18-accent-deep);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 0.4rem 1rem rgba(0, 0, 0, 0.4);
}
