/* 789club mathsica - base stylesheet (prefix: s14e-)
   Mobile-first gaming website layout. Palette:
   #0D1117 bg | #66CDAA / #3CB371 brand | #BAFFC9 text | #00FF00 accent.
   Comments in English per project convention.
*/

:root {
  --s14e-bg: #0D1117;
  --s14e-bg-2: #121d1a;
  --s14e-card: #16242a;
  --s14e-primary: #3CB371;
  --s14e-secondary: #66CDAA;
  --s14e-accent: #00FF00;
  --s14e-text: #BAFFC9;
  --s14e-text-dim: #8fb6ab;
  --s14e-border: rgba(102, 205, 170, 0.18);
  --s14e-radius: 1.2rem;
  --s14e-shadow: 0 0.4rem 1.4rem rgba(0, 0, 0, 0.45);
}

/* Root font: 62.5% => 1rem = 10px */
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: radial-gradient(120% 80% at 50% 0%, #122026 0%, var(--s14e-bg) 60%);
  color: var(--s14e-text);
  font-family: "Segoe UI", "Roboto", system-ui, -apple-system, sans-serif;
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--s14e-secondary); text-decoration: none; }

/* Layout containers */
.s14e-wrapper { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.s14e-container { width: 100%; }
main { display: block; }

/* ===== Header ===== */
.s14e-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 17, 23, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s14e-border);
  transition: box-shadow 0.25s ease;
}
.s14e-header-scrolled { box-shadow: var(--s14e-shadow); }
.s14e-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.7rem 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.s14e-logo { display: flex; align-items: center; gap: 0.6rem; flex: 1; min-width: 0; }
.s14e-logo img { width: 3rem; height: 3rem; border-radius: 0.6rem; }
.s14e-logo-text { font-weight: 800; color: var(--s14e-text); font-size: 1.5rem; line-height: 1.2rem; }
.s14e-logo-text span { color: var(--s14e-accent); }

.s14e-auth { display: flex; gap: 0.5rem; }
.s14e-btn {
  border: none; cursor: pointer; border-radius: 0.9rem;
  font-weight: 700; font-size: 1.25rem; padding: 0.65rem 1.1rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  min-height: 36px;
}
.s14e-btn:active { transform: scale(0.96); }
.s14e-btn-primary {
  background: linear-gradient(135deg, var(--s14e-primary), var(--s14e-secondary));
  color: #06231a;
  box-shadow: 0 0.3rem 0.9rem rgba(60, 179, 113, 0.45);
}
.s14e-btn-ghost {
  background: transparent; color: var(--s14e-text);
  border: 1px solid var(--s14e-border);
}
.s14e-icon-btn {
  background: transparent; border: 1px solid var(--s14e-border);
  color: var(--s14e-text); border-radius: 0.8rem;
  width: 3.4rem; height: 3.4rem; font-size: 1.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Mobile menu */
.s14e-mobile-menu {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: rgba(13, 17, 23, 0.98);
  border-top: 1px solid var(--s14e-border);
}
.s14e-menu-open { max-height: 480px; }
.s14e-mobile-menu .s14e-menu-links { padding: 0.6rem 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.s14e-mobile-menu a {
  color: var(--s14e-text); padding: 0.7rem 0.6rem; border-radius: 0.7rem;
  font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem;
  background: var(--s14e-card); border: 1px solid transparent;
}
.s14e-mobile-menu a:active { background: var(--s14e-bg-2); border-color: var(--s14e-border); }

/* ===== Hero ===== */
.s14e-hero { margin-top: 6.5rem; padding-top: 0.8rem; }
.s14e-carousel {
  position: relative; border-radius: var(--s14e-radius); overflow: hidden;
  box-shadow: var(--s14e-shadow); border: 1px solid var(--s14e-border);
}
.s14e-slide {
  position: relative; display: none; cursor: pointer;
}
.s14e-slide-active { display: block; }
.s14e-slide img { width: 100%; height: 17rem; object-fit: cover; }
.s14e-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(13,17,23,0.92), transparent);
}
.s14e-slide-overlay h2 { color: #fff; font-size: 1.5rem; margin-bottom: 0.3rem; }
.s14e-slide-overlay p { color: var(--s14e-text); font-size: 1.15rem; }
.s14e-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(13,17,23,0.6); color: #fff; border: none;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; font-size: 1.4rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.s14e-carousel-arrow.prev { left: 0.6rem; }
.s14e-carousel-arrow.next { right: 0.6rem; }
.s14e-dots { position: absolute; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.4rem; }
.s14e-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.s14e-dot-active { background: var(--s14e-accent); }

/* ===== Section titles ===== */
.s14e-section { margin: 2rem 0; }
.s14e-section-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.s14e-section-head h2 {
  font-size: 1.6rem; color: #fff; font-weight: 800; line-height: 1.3rem;
}
.s14e-section-head .material-icons,
.s14e-section-head i { color: var(--s14e-accent); font-size: 2rem; }
.s14e-h1 {
  font-size: 1.85rem; font-weight: 800; color: #fff;
  margin: 1.2rem 0 0.6rem; line-height: 2.2rem;
}
.s14e-h1 span { color: var(--s14e-accent); }
.s14e-lead { color: var(--s14e-text-dim); font-size: 1.3rem; margin-bottom: 1rem; }

/* CTA banner */
.s14e-cta {
  background: linear-gradient(135deg, rgba(60,179,113,0.18), rgba(0,255,0,0.06));
  border: 1px solid var(--s14e-border); border-radius: var(--s14e-radius);
  padding: 1.2rem; text-align: center; margin: 1.4rem 0;
}
.s14e-cta h3 { color: #fff; font-size: 1.5rem; margin-bottom: 0.4rem; }
.s14e-cta p { color: var(--s14e-text); font-size: 1.2rem; margin-bottom: 0.9rem; }

/* Filter tabs */
.s14e-filters { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 0.8rem; }
.s14e-filter-tab {
  background: var(--s14e-card); color: var(--s14e-text); border: 1px solid var(--s14e-border);
  padding: 0.5rem 1rem; border-radius: 1rem; font-size: 1.15rem; white-space: nowrap; cursor: pointer;
}
.s14e-filter-tab-active { background: var(--s14e-primary); color: #06231a; border-color: var(--s14e-primary); }

/* ===== Game grid ===== */
.s14e-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.s14e-game-item {
  background: var(--s14e-card); border-radius: 0.9rem; overflow: hidden;
  border: 1px solid var(--s14e-border); cursor: pointer; transition: transform 0.15s ease, border-color 0.2s;
  text-align: center; padding: 0.5rem 0.4rem 0.6rem;
}
.s14e-game-item:active { transform: scale(0.96); border-color: var(--s14e-accent); }
.s14e-game-item img { width: 100%; height: 7.5rem; object-fit: cover; border-radius: 0.6rem; margin-bottom: 0.4rem; }
.s14e-game-item .s14e-game-name { font-size: 1.1rem; color: var(--s14e-text); line-height: 1.3rem; min-height: 2.6rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s14e-game-tag { display: inline-block; font-size: 0.95rem; color: var(--s14e-accent); background: rgba(0,255,0,0.08); padding: 0.1rem 0.5rem; border-radius: 0.5rem; margin-top: 0.3rem; }

/* Cards / generic content */
.s14e-card {
  background: var(--s14e-card); border: 1px solid var(--s14e-border);
  border-radius: var(--s14e-radius); padding: 1.2rem; margin-bottom: 1rem;
}
.s14e-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.5rem; }
.s14e-card p { color: var(--s14e-text); font-size: 1.2rem; margin-bottom: 0.6rem; }
.s14e-card a { color: var(--s14e-accent); font-weight: 700; }

.s14e-features { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.s14e-feature {
  background: var(--s14e-bg-2); border-radius: 0.9rem; padding: 0.9rem; border: 1px solid var(--s14e-border);
}
.s14e-feature i, .s14e-feature .material-icons { color: var(--s14e-secondary); font-size: 1.8rem; }
.s14e-feature h4 { color: #fff; font-size: 1.2rem; margin: 0.3rem 0; }
.s14e-feature p { color: var(--s14e-text-dim); font-size: 1.05rem; }

.s14e-list { list-style: none; padding: 0; }
.s14e-list li { padding: 0.4rem 0 0.4rem 1.6rem; position: relative; color: var(--s14e-text); font-size: 1.18rem; }
.s14e-list li::before { content: "▸"; position: absolute; left: 0; color: var(--s14e-accent); }

/* RTP table */
.s14e-rtp { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.s14e-rtp th, .s14e-rtp td { padding: 0.55rem 0.5rem; text-align: left; border-bottom: 1px solid var(--s14e-border); }
.s14e-rtp th { color: var(--s14e-accent); font-size: 1.1rem; }
.s14e-rtp td { color: var(--s14e-text); }

/* Testimonials */
.s14e-testimonials { display: grid; gap: 0.7rem; }
.s14e-testimonial { background: var(--s14e-bg-2); border-left: 3px solid var(--s14e-accent); padding: 0.9rem; border-radius: 0.6rem; }
.s14e-testimonial p { color: var(--s14e-text); font-size: 1.15rem; font-style: italic; }
.s14e-testimonial .s14e-author { color: var(--s14e-secondary); font-size: 1.05rem; margin-top: 0.4rem; font-weight: 700; }

/* Payment / winners */
.s14e-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.s14e-chip {
  background: var(--s14e-bg-2); border: 1px solid var(--s14e-border);
  padding: 0.45rem 0.8rem; border-radius: 1rem; font-size: 1.1rem; color: var(--s14e-text);
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.s14e-winner { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px dashed var(--s14e-border); font-size: 1.15rem; }
.s14e-winner .s14e-amount { color: var(--s14e-accent); font-weight: 700; }

/* ===== Footer ===== */
.s14e-footer {
  background: var(--s14e-bg-2); border-top: 1px solid var(--s14e-border);
  padding: 1.5rem 1.2rem 6rem; margin-top: 2rem;
}
.s14e-footer h4 { color: #fff; font-size: 1.3rem; margin: 0.8rem 0 0.5rem; }
.s14e-footer p { color: var(--s14e-text-dim); font-size: 1.15rem; margin-bottom: 0.8rem; }
.s14e-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0.6rem 0; }
.s14e-footer-links a { color: var(--s14e-text); font-size: 1.1rem; padding: 0.3rem 0; }
.s14e-footer-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.s14e-footer-buttons .s14e-btn { flex: 1 1 45%; }
.s14e-copyright { text-align: center; color: var(--s14e-text-dim); font-size: 1.05rem; padding-top: 1rem; border-top: 1px solid var(--s14e-border); }

/* ===== Mobile bottom nav ===== */
.s14e-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: 60px; background: rgba(13, 17, 23, 0.98);
  border-top: 1px solid var(--s14e-border);
  display: flex; justify-content: space-around; align-items: stretch;
  backdrop-filter: blur(8px);
}
.s14e-bottom-nav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: none; color: var(--s14e-text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; padding: 0.4rem 0;
  transition: color 0.2s, transform 0.15s;
}
.s14e-bottom-nav-btn:active { transform: scale(0.92); }
.s14e-bottom-nav-btn i,
.s14e-bottom-nav-btn .material-icons,
.s14e-bottom-nav-btn ion-icon { font-size: 2.2rem; }
.s14e-bottom-nav-btn span { font-size: 1rem; }
.s14e-bottom-nav-btn.s14e-active { color: var(--s14e-accent); }
.s14e-bottom-nav-btn.s14e-promo { color: var(--s14e-secondary); }
.s14e-bottom-nav-btn.s14e-promo span { font-weight: 700; }

/* ===== Desktop ===== */
@media (min-width: 769px) {
  .s14e-bottom-nav { display: none; }
  .s14e-wrapper { max-width: 760px; }
  body { background: radial-gradient(80% 60% at 50% 0%, #122026 0%, var(--s14e-bg) 60%); }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Accessibility helpers */
.s14e-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
