/* ===========================================================
 * 5n5n5.click - Base stylesheet
 * All custom classes use the "scab-" prefix per project convention.
 * Palette: #1B263B (bg) | #A0522D (brand) | #00FFFF (accent) | #FFEFD5 (text)
 * =========================================================== */

:root {
  --scab-bg: #1B263B;
  --scab-bg-2: #16203a;
  --scab-bg-3: #0f1729;
  --scab-brand: #A0522D;
  --scab-brand-2: #c46a3a;
  --scab-accent: #00FFFF;
  --scab-text: #FFEFD5;
  --scab-text-soft: #c9b39a;
  --scab-line: rgba(255, 239, 213, 0.14);
  --scab-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --scab-radius: 14px;
  --scab-radius-sm: 10px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px baseline for rem-driven layout */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  background: radial-gradient(circle at 50% -10%, #21304f 0%, var(--scab-bg) 55%, var(--scab-bg-3) 100%);
  color: var(--scab-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: var(--scab-accent); text-decoration: none; }
a:hover { color: #b9ffff; text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .8rem; line-height: 1.5; font-weight: 700; }

/* ---------- Layout containers ---------- */
.scab-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}
.scab-container {
  width: 100%;
  padding: 0 14px;
}
main.scab-main {
  padding-top: 64px;
  padding-bottom: 90px; /* clear the fixed mobile bottom nav */
  display: block;
}

/* ---------- Header ---------- */
.scab-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(15,23,41,0.98) 0%, rgba(27,38,59,0.96) 100%);
  border-bottom: 1px solid var(--scab-line);
  box-shadow: var(--scab-shadow);
}
.scab-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.scab-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--scab-text);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: .5px;
}
.scab-logo img { width: 30px; height: 30px; border-radius: 8px; }
.scab-logo span b { color: var(--scab-accent); }
.scab-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.scab-icon-btn {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--scab-line);
  background: rgba(255,255,255,0.04);
  color: var(--scab-text);
  cursor: pointer;
}
.scab-icon-btn i { font-size: 18px; }

/* ---------- Buttons ---------- */
.scab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 38px;
}
.scab-btn:active { transform: scale(.96); }
.scab-btn-login {
  background: transparent;
  color: var(--scab-text);
  border: 1.5px solid var(--scab-accent);
}
.scab-btn-register {
  background: linear-gradient(135deg, var(--scab-brand) 0%, var(--scab-brand-2) 100%);
  color: var(--scab-text);
  box-shadow: 0 6px 14px rgba(160, 82, 45, .5);
}
.scab-btn-cta {
  background: linear-gradient(135deg, #00FFFF 0%, #38e0e0 100%);
  color: #0f1729;
  font-weight: 800;
  padding: 12px 22px;
  font-size: 1.4rem;
  box-shadow: 0 8px 18px rgba(0, 255, 255, .25);
}
.scab-link-text {
  color: var(--scab-accent);
  font-weight: 700;
  cursor: pointer;
}
.scab-link-text:hover { text-decoration: underline; }

/* ---------- Mobile menu drawer ---------- */
.scab-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.scab-menu-open .scab-menu-overlay,
#proe42MobileMenu.scab-menu-open .scab-menu-overlay { opacity: 1; visibility: visible; }
#proe42MobileMenu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--scab-bg-2);
  z-index: 9999;
  transition: right .28s ease;
  overflow-y: auto;
  padding: 22px 18px;
}
#proe42MobileMenu.scab-menu-open { right: 0; }
.scab-menu-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.scab-menu-head h3 { font-size: 1.6rem; color: var(--scab-accent); }
.scab-menu-close {
  background: none; border: none; color: var(--scab-text); font-size: 22px; cursor: pointer;
}
.scab-menu-list { list-style: none; padding: 0; margin: 0; }
.scab-menu-list li {
  border-bottom: 1px solid var(--scab-line);
}
.scab-menu-list a {
  display: block;
  padding: 13px 8px;
  color: var(--scab-text);
  font-weight: 600;
}
.scab-menu-list a:hover { color: var(--scab-accent); }
.scab-menu-cta {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 10px;
}

/* ---------- Hero carousel ---------- */
.scab-carousel {
  position: relative;
  margin: 14px 0 6px;
  border-radius: var(--scab-radius);
  overflow: hidden;
  box-shadow: var(--scab-shadow);
}
.scab-carousel-track {
  position: relative;
  width: 100%;
  height: 180px;
}
.scab-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.scab-carousel-slide img {
  width: 100%; height: 100%; object-fit: cover;
}
.scab-carousel-slide.scab-slide-active { opacity: 1; }
.scab-carousel-cap {
  position: absolute;
  left: 14px; bottom: 14px; right: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.7) 100%);
  padding: 20px 12px 8px;
  border-radius: 0 0 var(--scab-radius) var(--scab-radius);
}
.scab-carousel-cap b { color: var(--scab-accent); font-size: 1.6rem; }
.scab-carousel-cap span { display:block; color: var(--scab-text); font-size: 1.2rem; }
.scab-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.scab-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,239,213,.4); cursor: pointer; border: none; padding: 0;
}
.scab-carousel-dot.scab-carousel-dot-active {
  background: var(--scab-accent); width: 20px; border-radius: 6px;
}

/* ---------- Section heading ---------- */
.scab-section { margin: 22px 0; }
.scab-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.scab-section-title {
  font-size: 1.7rem;
  color: var(--scab-text);
  display: flex; align-items: center; gap: 8px;
}
.scab-section-title i { color: var(--scab-accent); font-size: 1.7rem; }
.scab-section-more {
  font-size: 1.2rem; color: var(--scab-accent); font-weight: 600;
}

/* ---------- H1 / intro ---------- */
.scab-hero-h1 {
  font-size: 2rem;
  line-height: 1.35;
  color: var(--scab-text);
  margin: 16px 0 8px;
}
.scab-hero-h1 b { color: var(--scab-accent); }
.scab-lead {
  color: var(--scab-text-soft);
  font-size: 1.35rem;
  margin: 0 0 14px;
}

/* ---------- Game grid ---------- */
.scab-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.scab-game-card {
  background: var(--scab-bg-2);
  border: 1px solid var(--scab-line);
  border-radius: var(--scab-radius-sm);
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.scab-game-card:active { transform: scale(.95); border-color: var(--scab-accent); }
.scab-game-card img {
  width: 100%; height: 78px; object-fit: cover;
  border-radius: 8px; margin-bottom: 6px;
}
.scab-game-card span {
  display: block; font-size: 1.15rem; color: var(--scab-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scab-game-card .scab-game-tag {
  font-size: 1rem; color: var(--scab-accent); font-weight: 600;
}

/* ---------- Feature / info cards ---------- */
.scab-card {
  background: var(--scab-bg-2);
  border: 1px solid var(--scab-line);
  border-radius: var(--scab-radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--scab-shadow);
}
.scab-card h3 { color: var(--scab-accent); font-size: 1.5rem; }
.scab-card p { margin: 0 0 8px; color: var(--scab-text-soft); }
.scab-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.scab-mini-card {
  background: var(--scab-bg-3);
  border-radius: var(--scab-radius-sm);
  padding: 12px;
  text-align: center;
  border: 1px solid var(--scab-line);
}
.scab-mini-card i { font-size: 26px; color: var(--scab-accent); }
.scab-mini-card b { display: block; margin-top: 6px; font-size: 1.25rem; color: var(--scab-text); }
.scab-mini-card span { font-size: 1.1rem; color: var(--scab-text-soft); }

/* ---------- RTP table ---------- */
.scab-rtp-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--scab-line);
  font-size: 1.25rem;
}
.scab-rtp-row:last-child { border-bottom: none; }
.scab-rtp-row b { color: var(--scab-accent); }

/* ---------- Testimonials ---------- */
.scab-quote {
  border-left: 3px solid var(--scab-accent);
  padding: 8px 12px;
  margin-bottom: 10px;
  background: rgba(0,255,255,.05);
  border-radius: 8px;
}
.scab-quote p { margin: 0 0 4px; }
.scab-quote cite { color: var(--scab-accent); font-style: normal; font-size: 1.15rem; }

/* ---------- FAQ ---------- */
.scab-faq-item {
  background: var(--scab-bg-2);
  border: 1px solid var(--scab-line);
  border-radius: var(--scab-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.scab-faq-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
}
.scab-faq-head i { color: var(--scab-accent); transition: transform .2s ease; }
.scab-faq-body { padding: 0 14px; max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; color: var(--scab-text-soft); }
.scab-faq-open .scab-faq-body { padding: 0 14px 12px; max-height: 320px; }
.scab-faq-open .scab-faq-head i { transform: rotate(45deg); }

/* ---------- Steps / how to ---------- */
.scab-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.scab-steps li {
  position: relative;
  padding: 10px 10px 10px 44px;
  margin-bottom: 8px;
  background: var(--scab-bg-3);
  border-radius: var(--scab-radius-sm);
  border: 1px solid var(--scab-line);
}
.scab-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 10px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px;
  background: var(--scab-accent);
  color: #0f1729;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Payment chips ---------- */
.scab-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.scab-chip {
  background: var(--scab-bg-3);
  border: 1px solid var(--scab-line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.15rem;
  color: var(--scab-text);
  display: inline-flex; align-items: center; gap: 6px;
}
.scab-chip i { color: var(--scab-accent); }

/* ---------- Winners ticker ---------- */
.scab-winner {
  display: flex; justify-content: space-between;
  padding: 8px 10px;
  background: var(--scab-bg-3);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.scab-winner b { color: var(--scab-accent); }

/* ---------- Bottom CTA band ---------- */
.scab-cta-band {
  background: linear-gradient(135deg, var(--scab-brand) 0%, var(--scab-brand-2) 100%);
  border-radius: var(--scab-radius);
  padding: 18px;
  text-align: center;
  margin: 20px 0;
  box-shadow: var(--scab-shadow);
}
.scab-cta-band h3 { color: var(--scab-text); margin-bottom: 10px; font-size: 1.7rem; }

/* ---------- Footer ---------- */
.scab-footer {
  background: var(--scab-bg-3);
  border-top: 1px solid var(--scab-line);
  padding: 22px 14px 30px;
  margin-top: 24px;
}
.scab-footer-brand {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.scab-footer-brand img { width: 36px; height: 36px; border-radius: 8px; }
.scab-footer-brand b { color: var(--scab-accent); font-size: 1.5rem; }
.scab-footer p { color: var(--scab-text-soft); font-size: 1.2rem; }
.scab-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.scab-footer-links a {
  color: var(--scab-text);
  font-size: 1.2rem;
  padding: 6px 4px;
  border-bottom: 1px dashed var(--scab-line);
}
.scab-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px;
}
.scab-copyright {
  font-size: 1.1rem; color: var(--scab-text-soft); text-align: center;
  border-top: 1px solid var(--scab-line); padding-top: 12px; margin-top: 10px;
}

/* ---------- Mobile bottom nav ---------- */
.scab-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, rgba(15,23,41,.96) 0%, rgba(27,38,59,.98) 100%);
  border-top: 1px solid var(--scab-line);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -6px 20px rgba(0,0,0,.35);
}
.scab-bottom-btn {
  flex: 1;
  height: 100%;
  background: none;
  border: none;
  color: var(--scab-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
  transition: color .15s ease;
}
.scab-bottom-btn i { font-size: 20px; }
.scab-bottom-btn:active { transform: scale(.92); }
.scab-bottom-btn.scab-bottom-active,
.scab-bottom-btn:hover { color: var(--scab-accent); }
.scab-bottom-btn.scab-bottom-active::after {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 26px; height: 3px; background: var(--scab-accent); border-radius: 0 0 4px 4px;
}
.scab-bottom-promo { color: var(--scab-brand-2); }
.scab-bottom-promo i { color: var(--scab-brand-2); }

/* ---------- Back-to-top button ---------- */
#proe42TopBtn {
  position: fixed;
  right: 14px; bottom: 76px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--scab-accent);
  color: #0f1729;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .15s ease;
  z-index: 900;
  box-shadow: 0 6px 14px rgba(0,0,0,.4);
}
#proe42TopBtn.scab-top-visible { opacity: 1; visibility: visible; }
#proe42TopBtn:active { transform: scale(.9); }

/* ---------- Promo badges ---------- */
.scab-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(0,255,255,.15);
  color: var(--scab-accent);
  border: 1px solid var(--scab-accent);
}
.scab-badge-hot { background: rgba(160,82,45,.25); color: var(--scab-brand-2); border-color: var(--scab-brand-2); }

/* ---------- Utility ---------- */
.scab-text-center { text-align: center; }
.scab-mt-8 { margin-top: 8px; }
.scab-mt-16 { margin-top: 16px; }
.scab-mb-8 { margin-bottom: 8px; }
.scab-hide { display: none !important; }
.scab-no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  .scab-bottom-nav { display: none; }
  main.scab-main { padding-bottom: 30px; }
  .scab-wrapper { max-width: 760px; }
  .scab-game-grid { grid-template-columns: repeat(5, 1fr); }
  .scab-card-grid { grid-template-columns: repeat(3, 1fr); }
  .scab-footer-links { grid-template-columns: repeat(3, 1fr); }
  .scab-carousel-track { height: 280px; }
}
@media (min-width: 1024px) {
  .scab-wrapper { max-width: 980px; }
  .scab-game-grid { grid-template-columns: repeat(6, 1fr); }
  .scab-carousel-track { height: 340px; }
}
