/* ===========================================================
   888sport app - Core Stylesheet (basefiles)
   Prefix: s2e7-
   Palette: #3CB371 | #008000 | #FF7F50 | #FF6347 | #2C2C2C
   Mobile-first, max-width 430px on header/navigation chrome.
   =========================================================== */

:root {
  --s2e7-primary: #008000;
  --s2e7-secondary: #3CB371;
  --s2e7-accent: #FF7F50;
  --s2e7-accent2: #FF6347;
  --s2e7-bg: #2C2C2C;
  --s2e7-bg-2: #1c1c1c;
  --s2e7-bg-3: #3a3a3a;
  --s2e7-text: #ffffff;
  --s2e7-text-soft: #d6d6d6;
  --s2e7-text-mute: #9a9a9a;
  --s2e7-line: rgba(255, 255, 255, 0.08);
  --s2e7-gold: #FFD54F;
  --s2e7-radius: 14px;
  --s2e7-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --s2e7-header-h: 56px;
  --s2e7-bottom-h: 62px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
}

body {
  background: var(--s2e7-bg);
  color: var(--s2e7-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: var(--s2e7-secondary);
  text-decoration: none;
}

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

/* ---------- Layout containers ---------- */
.s2e7-wrapper {
  max-width: 430px;
  margin: 0 auto;
  background: var(--s2e7-bg);
  min-height: 100vh;
  position: relative;
}

main.s2e7-main {
  padding-top: calc(var(--s2e7-header-h) + 6px);
  padding-bottom: calc(var(--s2e7-bottom-h) + 24px);
}

/* ---------- Header ---------- */
.s2e7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s2e7-header-h);
  background: linear-gradient(90deg, #1c1c1c 0%, #008000 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid var(--s2e7-accent);
}

.s2e7-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s2e7-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--s2e7-secondary);
}

.s2e7-logo .s2e7-brand {
  font-weight: 800;
  font-size: 1.55rem;
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.s2e7-logo .s2e7-brand small {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--s2e7-gold);
}

.s2e7-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s2e7-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.25rem;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}

.s2e7-btn:hover {
  filter: brightness(1.08);
}

.s2e7-btn:active {
  transform: scale(0.96);
}

.s2e7-btn-register {
  background: linear-gradient(135deg, var(--s2e7-accent), var(--s2e7-accent2));
  box-shadow: 0 3px 10px rgba(255, 99, 71, 0.4);
}

.s2e7-btn-login {
  background: var(--s2e7-secondary);
  border: 1px solid #fff2;
}

.s2e7-btn-cta {
  background: linear-gradient(135deg, var(--s2e7-accent2), var(--s2e7-accent));
  padding: 10px 22px;
  font-size: 1.35rem;
  box-shadow: var(--s2e7-shadow);
}

.s2e7-iconbtn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.s2e7-iconbtn:active {
  background: rgba(255, 255, 255, 0.15);
}

/* ---------- Mobile slide-in menu ---------- */
.s2e7-mobile-menu {
  position: fixed;
  top: 0;
  right: -82%;
  width: 78%;
  max-width: 340px;
  height: 100%;
  background: var(--s2e7-bg-2);
  z-index: 9999;
  transition: right 0.28s ease;
  padding: 18px 16px;
  overflow-y: auto;
  border-left: 2px solid var(--s2e7-secondary);
}

.s2e7-mobile-menu.s2e7-menu-open {
  right: 0;
}

.s2e7-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.s2e7-overlay.s2e7-show {
  opacity: 1;
  pointer-events: auto;
}

.s2e7-mobile-menu h3 {
  font-size: 1.5rem;
  color: var(--s2e7-gold);
  margin: 16px 0 8px;
  border-bottom: 1px solid var(--s2e7-line);
  padding-bottom: 6px;
}

.s2e7-mobile-menu a {
  display: block;
  padding: 11px 10px;
  color: var(--s2e7-text-soft);
  border-bottom: 1px solid var(--s2e7-line);
  font-size: 1.35rem;
}

.s2e7-mobile-menu a:hover {
  color: var(--s2e7-secondary);
}

.s2e7-menu-close {
  position: absolute;
  top: 10px;
  right: 12px;
}

/* ---------- Hero / Carousel ---------- */
.s2e7-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  margin-bottom: 12px;
}

.s2e7-slides {
  position: relative;
  height: 200px;
}

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

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

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

.s2e7-slide-cap {
  position: absolute;
  left: 14px;
  bottom: 16px;
  right: 14px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 128, 0, 0.45));
  padding: 10px 12px;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

.s2e7-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.s2e7-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
}

.s2e7-dot.s2e7-dot-active {
  background: var(--s2e7-accent);
  width: 22px;
  border-radius: 5px;
}

/* ---------- Section heading ---------- */
.s2e7-section {
  padding: 14px 12px;
}

.s2e7-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.s2e7-section-title h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  padding-left: 14px;
}

.s2e7-section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--s2e7-accent), var(--s2e7-accent2));
}

.s2e7-section-title a {
  font-size: 1.2rem;
  color: var(--s2e7-gold);
}

/* ---------- Game grid ---------- */
.s2e7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

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

.s2e7-game {
  background: var(--s2e7-bg-3);
  border-radius: var(--s2e7-radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--s2e7-line);
  transition: transform 0.15s ease;
}

.s2e7-game:active {
  transform: scale(0.96);
}

.s2e7-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.s2e7-game-name {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  color: var(--s2e7-text-soft);
  padding: 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.s2e7-game-hot {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--s2e7-accent2);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---------- Category chips ---------- */
.s2e7-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.s2e7-chips::-webkit-scrollbar {
  display: none;
}

.s2e7-chip {
  flex: 0 0 auto;
  background: var(--s2e7-bg-3);
  color: var(--s2e7-text-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 1.2rem;
  border: 1px solid var(--s2e7-line);
  cursor: pointer;
  white-space: nowrap;
}

.s2e7-chip.s2e7-chip-on {
  background: linear-gradient(135deg, var(--s2e7-accent), var(--s2e7-accent2));
  color: #fff;
  border-color: transparent;
}

/* ---------- Cards / info blocks ---------- */
.s2e7-card {
  background: var(--s2e7-bg-3);
  border-radius: var(--s2e7-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--s2e7-line);
}

.s2e7-card h3 {
  font-size: 1.45rem;
  color: var(--s2e7-secondary);
  margin-bottom: 8px;
}

.s2e7-card p {
  color: var(--s2e7-text-soft);
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.s2e7-promo-link {
  color: var(--s2e7-accent);
  font-weight: 700;
  cursor: pointer;
}

.s2e7-promo-link:hover {
  text-decoration: underline;
}

/* ---------- RTP table ---------- */
.s2e7-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.s2e7-rtp-table th,
.s2e7-rtp-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--s2e7-line);
}

.s2e7-rtp-table th {
  color: var(--s2e7-gold);
  font-size: 1.15rem;
}

.s2e7-rtp-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.s2e7-rtp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--s2e7-secondary), var(--s2e7-accent));
}

/* ---------- Testimonial ---------- */
.s2e7-testi {
  background: var(--s2e7-bg-3);
  border-radius: var(--s2e7-radius);
  padding: 12px;
  margin-bottom: 10px;
  border-left: 4px solid var(--s2e7-accent);
}

.s2e7-testi .s2e7-stars {
  color: var(--s2e7-gold);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.s2e7-testi p {
  font-size: 1.2rem;
  color: var(--s2e7-text-soft);
}

.s2e7-testi .s2e7-author {
  margin-top: 6px;
  font-size: 1.1rem;
  color: var(--s2e7-text-mute);
}

/* ---------- Payment icons ---------- */
.s2e7-payrow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.s2e7-payitem {
  flex: 1 1 calc(33.333% - 10px);
  background: var(--s2e7-bg-2);
  border: 1px solid var(--s2e7-line);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--s2e7-text-soft);
}

/* ---------- Winners ---------- */
.s2e7-winner {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--s2e7-line);
  font-size: 1.2rem;
}

.s2e7-winner b {
  color: var(--s2e7-gold);
}

/* ---------- FAQ ---------- */
.s2e7-faq {
  border: 1px solid var(--s2e7-line);
  border-radius: var(--s2e7-radius);
  overflow: hidden;
  margin-bottom: 10px;
}

.s2e7-faq summary {
  background: var(--s2e7-bg-3);
  padding: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.3rem;
  list-style: none;
  color: #fff;
}

.s2e7-faq summary::-webkit-details-marker {
  display: none;
}

.s2e7-faq[open] summary {
  color: var(--s2e7-accent);
}

.s2e7-faq p {
  padding: 10px 12px 14px;
  color: var(--s2e7-text-soft);
  font-size: 1.2rem;
}

/* ---------- App download ---------- */
.s2e7-app-banner {
  background: linear-gradient(135deg, #004d00, #008000);
  border-radius: var(--s2e7-radius);
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--s2e7-secondary);
}

.s2e7-app-banner img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  object-fit: cover;
}

.s2e7-app-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.s2e7-app-banner p {
  font-size: 1.15rem;
  color: var(--s2e7-text-soft);
  margin-bottom: 8px;
}

/* ---------- CTA strip ---------- */
.s2e7-cta-strip {
  background: linear-gradient(135deg, var(--s2e7-accent2), var(--s2e7-accent));
  padding: 14px;
  border-radius: var(--s2e7-radius);
  text-align: center;
  margin: 14px 0;
}

.s2e7-cta-strip h3 {
  color: #fff;
  font-size: 1.55rem;
  margin-bottom: 6px;
}

.s2e7-cta-strip p {
  color: #fff7f3;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.s2e7-footer {
  background: var(--s2e7-bg-2);
  padding: 18px 12px 24px;
  border-top: 3px solid var(--s2e7-secondary);
}

.s2e7-footer-brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.s2e7-footer p {
  color: var(--s2e7-text-mute);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.s2e7-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.s2e7-footer-links a {
  flex: 1 1 calc(50% - 8px);
  background: var(--s2e7-bg-3);
  color: var(--s2e7-text-soft);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 1.15rem;
  text-align: center;
  border: 1px solid var(--s2e7-line);
}

.s2e7-footer-copy {
  text-align: center;
  color: var(--s2e7-text-mute);
  font-size: 1.1rem;
  border-top: 1px solid var(--s2e7-line);
  padding-top: 12px;
}

/* ---------- Bottom nav (mobile only) ---------- */
.s2e7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s2e7-bottom-h);
  background: linear-gradient(180deg, #1c1c1c, #111);
  border-top: 2px solid var(--s2e7-secondary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}

.s2e7-navbtn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--s2e7-text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
  position: relative;
}

.s2e7-navbtn .material-icons,
.s2e7-navbtn .ion-icon,
.s2e7-navbtn i {
  font-size: 24px;
}

.s2e7-navbtn span.label {
  font-size: 1rem;
  line-height: 1.1;
}

.s2e7-navbtn:active {
  transform: scale(0.92);
}

.s2e7-navbtn.s2e7-navbtn-active {
  color: var(--s2e7-accent);
}

.s2e7-navbtn-promo {
  color: var(--s2e7-gold);
}

.s2e7-navbtn-badge {
  position: absolute;
  top: 6px;
  right: 14px;
  background: var(--s2e7-accent2);
  color: #fff;
  font-size: 0.85rem;
  min-width: 16px;
  height: 16px;
  border-radius: 10px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- Back-to-top ---------- */
.s2e7-totop {
  position: fixed;
  right: 14px;
  bottom: calc(var(--s2e7-bottom-h) + 14px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--s2e7-secondary);
  color: #fff;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.s2e7-totop.s2e7-totop-show {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Desktop / tablet ---------- */
@media (min-width: 769px) {
  .s2e7-bottom-nav {
    display: none;
  }

  main.s2e7-main {
    padding-bottom: 30px;
  }

  .s2e7-totop {
    bottom: 22px;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .s2e7-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
