/* ============================================================
 * table game app - design.css
 * All custom classes use the "se42-" prefix.
 * Palette: #000080 (navy) | #DC143C (crimson) | #FF69B4 (pink)
 *          #333333 | #A9A9A9 | #B0E0E6
 * Mobile-first. Literal max-width: 430px container.
 * ============================================================ */

:root {
  --se42-primary: #000080;
  --se42-crimson: #DC143C;
  --se42-pink: #FF69B4;
  --se42-dark: #333333;
  --se42-grey: #A9A9A9;
  --se42-mint: #B0E0E6;
  --se42-bg: #0b0f2a;
  --se42-bg2: #131a44;
  --se42-card: #1a2050;
  --se42-text: #f5f7ff;
  --se42-muted: #aeb4d6;
  --se42-gold: #ffd56b;
  --se42-radius: 14px;
  --se42-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: linear-gradient(160deg, var(--se42-bg) 0%, #060a1f 100%);
  color: var(--se42-text);
  font-size: 1.5rem;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--se42-mint); text-decoration: none; }
a:hover { color: var(--se42-pink); }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
body.se42-no-scroll { overflow: hidden; }

/* ---------- Layout containers ---------- */
.se42-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}
.se42-wrapper { width: 100%; }
.se42-section { padding: 2.4rem 0 1.6rem; }
.se42-section-alt { background: rgba(255, 255, 255, 0.03); }
.se42-grid { display: grid; gap: 1rem; }

/* ---------- Header ---------- */
.se42-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #050829 0%, var(--se42-primary) 60%, #1b1460 100%);
  border-bottom: 2px solid var(--se42-crimson);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.se42-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.se42-brand {
  display: flex; align-items: center; gap: 0.6rem;
  min-width: 0;
}
.se42-logo {
  width: 3rem; height: 3rem; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--se42-gold);
  flex: 0 0 auto;
}
.se42-brand-name {
  font-size: 1.45rem; font-weight: 800; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.2px;
}
.se42-brand-name span { color: var(--se42-mint); }
.se42-actions { display: flex; align-items: center; gap: 0.45rem; }
.se42-icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(176, 224, 230, 0.35);
  color: #fff;
  width: 3.2rem; height: 3.2rem; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease;
}
.se42-icon-btn:hover { transform: scale(1.06); background: rgba(220, 20, 60, 0.35); }

/* ---------- Buttons ---------- */
.se42-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.1rem; min-height: 4rem;
  border-radius: 999px; border: 0;
  font-size: 1.3rem; font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  text-align: center; justify-content: center;
  min-width: 44px;
}
.se42-btn-primary {
  background: linear-gradient(90deg, var(--se42-crimson) 0%, var(--se42-pink) 100%);
  color: #fff; box-shadow: 0 4px 14px rgba(220, 20, 60, 0.5);
}
.se42-btn-primary:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.08); }
.se42-btn-ghost {
  background: rgba(255,255,255,0.08); color: #fff;
  border: 1px solid rgba(176,224,230,0.45);
}
.se42-btn-gold {
  background: linear-gradient(90deg, var(--se42-gold) 0%, #ff9b3d 100%);
  color: #2a1500; box-shadow: 0 4px 14px rgba(255, 213, 107, 0.5);
}
.se42-btn-block { display: flex; width: 100%; }
.se42-btn-sm { min-height: 3.2rem; padding: 0.45rem 0.9rem; font-size: 1.2rem; }
.se42-text-link {
  color: var(--se42-pink); font-weight: 700;
  border-bottom: 1px dashed rgba(255, 105, 180, 0.5);
}
.se42-text-link:hover { color: var(--se42-gold); }

/* ---------- Mobile menu (slide-in drawer) ---------- */
.se42-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.se42-menu-overlay.se42-overlay-show { opacity: 1; visibility: visible; }
.se42-mobile-menu {
  position: fixed; top: 0; right: -78%;
  width: 78%; max-width: 340px; height: 100vh;
  background: linear-gradient(160deg, #0a0e30 0%, #1a1145 100%);
  border-left: 2px solid var(--se42-crimson);
  padding: 2rem 1.4rem;
  transition: right .28s ease;
  z-index: 9999;
  overflow-y: auto;
}
.se42-mobile-menu.se42-menu-open { right: 0; }
.se42-menu-title {
  color: #fff; font-size: 1.5rem; margin-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 0.8rem;
}
.se42-menu-link {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 0.8rem;
  color: #e6e9ff; font-size: 1.35rem; font-weight: 600;
  border-radius: 10px; margin-bottom: 0.4rem;
  border: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.se42-menu-link:hover {
  background: rgba(220, 20, 60, 0.18);
  border-color: rgba(255, 105, 180, 0.4);
}
.se42-menu-link i, .se42-menu-link span.material-symbols-outlined { font-size: 1.7rem; color: var(--se42-mint); }
.se42-menu-foot { margin-top: 1.4rem; }

/* ---------- Hero ---------- */
.se42-hero {
  margin-top: 6rem;
  padding: 1.4rem 0 0.6rem;
  text-align: center;
}
.se42-hero h1 {
  font-size: 2.4rem; line-height: 1.2;
  background: linear-gradient(90deg, var(--se42-gold), var(--se42-pink), var(--se42-mint));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.6rem;
}
.se42-hero p { color: var(--se42-muted); font-size: 1.35rem; margin-bottom: 1rem; }
.se42-hero-cta { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Carousel ---------- */
.se42-carousel-wrap {
  position: relative; border-radius: var(--se42-radius);
  overflow: hidden; box-shadow: var(--se42-shadow);
  border: 1px solid rgba(176, 224, 230, 0.25);
}
.se42-slide {
  display: none; position: relative;
}
.se42-slide.se42-slide-active { display: block; }
.se42-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.se42-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff; font-weight: 700;
}
.se42-slide-cap small { display:block; color: var(--se42-mint); font-weight: 500; font-size: 1.05rem; }
.se42-slide-dots {
  position: absolute; bottom: 0.6rem; right: 0.8rem;
  display: flex; gap: 0.4rem;
}
.se42-slide-dot {
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: rgba(255,255,255,0.45); cursor: pointer;
}
.se42-slide-dot.se42-dot-active { background: var(--se42-crimson); }

/* ---------- Section heading ---------- */
.se42-heading {
  display: flex; align-items: center; gap: 0.6rem;
  margin: 2rem 0 1rem;
}
.se42-heading h2 {
  font-size: 1.7rem; color: #fff; flex: 1;
}
.se42-heading h2 .se42-accent { color: var(--se42-mint); }
.se42-heading .se42-heading-icon { color: var(--se42-gold); font-size: 1.9rem; }

/* ---------- Category chips ---------- */
.se42-chips {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding: 0.4rem 0 0.8rem; scrollbar-width: none;
}
.se42-chips::-webkit-scrollbar { display: none; }
.se42-chip {
  flex: 0 0 auto; padding: 0.45rem 0.9rem;
  border-radius: 999px; font-size: 1.2rem; font-weight: 600;
  background: rgba(255,255,255,0.07); color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  cursor: pointer;
}
.se42-chip.se42-chip-active {
  background: linear-gradient(90deg, var(--se42-crimson), var(--se42-pink));
  border-color: transparent;
}

/* ---------- Game grid ---------- */
.se42-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.se42-game-card {
  background: var(--se42-card);
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(176, 224, 230, 0.15);
  text-align: center;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}
.se42-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--se42-pink);
  box-shadow: 0 8px 18px rgba(220, 20, 60, 0.3);
}
.se42-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
}
.se42-game-card .se42-game-name {
  font-size: 1.1rem; color: #fff; padding: 0.4rem 0.35rem 0.55rem;
  font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.se42-game-badge {
  position: relative;
}
.se42-game-badge .se42-tag {
  position: absolute; top: 0.3rem; left: 0.3rem;
  background: var(--se42-crimson); color: #fff;
  font-size: 0.9rem; padding: 0.1rem 0.45rem;
  border-radius: 6px; font-weight: 700; text-transform: uppercase;
}
.se42-game-badge .se42-tag.se42-hot { background: linear-gradient(90deg, #ff512f, #ff8a3d); }
.se42-game-badge .se42-tag.se42-new { background: linear-gradient(90deg, var(--se42-pink), #b4006e); }

/* ---------- Cards / panels ---------- */
.se42-card {
  background: var(--se42-card);
  border-radius: var(--se42-radius);
  padding: 1.3rem;
  box-shadow: var(--se42-shadow);
  border: 1px solid rgba(176, 224, 230, 0.12);
  margin-bottom: 1.1rem;
}
.se42-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 0.6rem; }
.se42-card p { color: var(--se42-muted); margin-bottom: 0.7rem; font-size: 1.3rem; }
.se42-card ul { padding-left: 1.2rem; }
.se42-card ul li { list-style: disc; margin-bottom: 0.35rem; color: var(--se42-muted); }
.se42-card.se42-accent { border-left: 4px solid var(--se42-crimson); }
.se42-card.se42-gold   { border-left: 4px solid var(--se42-gold); }

/* ---------- Feature list ---------- */
.se42-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem;
}
.se42-feature {
  background: rgba(255,255,255,0.04);
  border-radius: 12px; padding: 0.9rem; text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}
.se42-feature .ic {
  font-size: 2rem; color: var(--se42-mint); margin-bottom: 0.3rem;
}
.se42-feature h4 { font-size: 1.2rem; color: #fff; margin-bottom: 0.2rem; }
.se42-feature p { font-size: 1.1rem; color: var(--se42-muted); }

/* ---------- RTP table ---------- */
.se42-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.15rem; }
.se42-rtp-table th, .se42-rtp-table td {
  padding: 0.6rem 0.5rem; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.se42-rtp-table th { color: var(--se42-mint); font-weight: 700; }
.se42-rtp-table td .se42-bar {
  display:inline-block; height: 0.7rem; border-radius: 4px;
  background: linear-gradient(90deg, var(--se42-crimson), var(--se32-pink, var(--se42-pink)));
  vertical-align: middle;
}
.se42-rtp-table td.num { color: var(--se42-gold); font-weight: 700; }

/* ---------- Testimonials ---------- */
.se42-testimonials { display: grid; gap: 0.8rem; }
.se42-testimonial {
  background: rgba(255,255,255,0.04);
  border-radius: 12px; padding: 0.9rem 1rem;
  border-left: 3px solid var(--se42-pink);
}
.se42-testimonial .stars { color: var(--se42-gold); margin-bottom: 0.3rem; font-size: 1.1rem; }
.se42-testimonial p { color: #e6e9ff; font-size: 1.25rem; margin-bottom: 0.4rem; }
.se42-testimonial .by { color: var(--se42-mint); font-size: 1.1rem; font-weight: 600; }

/* ---------- Payment / winner strip ---------- */
.se42-strip {
  display: flex; gap: 0.6rem; overflow-x: auto;
  padding: 0.4rem 0; scrollbar-width: none;
}
.se42-strip::-webkit-scrollbar { display: none; }
.se42-strip-item {
  flex: 0 0 auto; background: rgba(255,255,255,0.06);
  border-radius: 10px; padding: 0.55rem 0.8rem;
  font-size: 1.15rem; font-weight: 600; color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.se42-strip-item .amt { color: var(--se42-gold); }

/* ---------- FAQ ---------- */
.se42-faq-item {
  background: rgba(255,255,255,0.04);
  border-radius: 10px; margin-bottom: 0.6rem;
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.se42-faq-q {
  width: 100%; text-align: left;
  padding: 0.9rem 1rem; background: transparent; border: 0;
  color: #fff; font-size: 1.3rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
}
.se42-faq-q .se42-faq-ic { color: var(--se42-crimson); transition: transform .2s ease; }
.se42-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .25s ease;
  color: var(--se42-muted); font-size: 1.2rem;
  padding: 0 1rem;
}
.se42-faq-item.se42-faq-open .se42-faq-a { max-height: 500px; padding-bottom: 0.9rem; }
.se42-faq-item.se42-faq-open .se42-faq-ic { transform: rotate(45deg); }

/* ---------- CTA banner ---------- */
.se42-cta {
  background: linear-gradient(135deg, var(--se42-crimson) 0%, #6a0030 100%);
  border-radius: var(--se42-radius);
  padding: 1.4rem; text-align: center; margin: 1.6rem 0;
  border: 1px solid rgba(255,255,255,0.15);
}
.se42-cta h3 { color: #fff; font-size: 1.7rem; margin-bottom: 0.4rem; }
.se42-cta p { color: rgba(255,255,255,0.88); margin-bottom: 0.9rem; }
.se42-cta .se42-btn { margin: 0 auto; }

/* ---------- Footer ---------- */
.se42-footer {
  background: #050829; color: var(--se42-muted);
  padding: 2rem 0 7.5rem;
  border-top: 2px solid var(--se42-crimson);
}
.se42-footer h4 { color: #fff; font-size: 1.3rem; margin: 0.6rem 0; }
.se42-footer p { font-size: 1.2rem; margin-bottom: 0.6rem; }
.se42-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem;
  margin: 0.8rem 0;
}
.se42-footer-links a {
  font-size: 1.15rem; color: var(--se42-muted);
  padding: 0.3rem 0;
}
.se42-footer-links a:hover { color: var(--se42-pink); }
.se42-foot-promos {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 0.8rem 0;
}
.se42-foot-promos .se42-btn { flex: 1 1 45%; font-size: 1.1rem; min-height: 3.4rem; padding: 0.4rem 0.6rem; }
.se42-copy { font-size: 1.05rem; color: var(--se42-grey); margin-top: 1rem; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.se42-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #0a0e30 0%, #050829 100%);
  border-top: 2px solid var(--se42-crimson);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 60px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.se42-bottomnav-btn {
  flex: 1; min-width: 60px;
  background: transparent; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem; color: #cfd4f5; cursor: pointer;
  font-size: 1rem; font-weight: 600;
  padding: 0.3rem 0.1rem;
  transition: color .2s ease, transform .15s ease;
}
.se42-bottomnav-btn .ic { font-size: 2rem; line-height: 1; }
.se42-bottomnav-btn .material-symbols-outlined { font-size: 2.2rem; }
.se42-bottomnav-btn:hover { color: var(--se42-pink); transform: translateY(-1px); }
.se42-bottomnav-btn.se42-nav-active {
  color: var(--se42-gold);
}
.se42-bottomnav-btn.se42-nav-active::before {
  content: ""; position: absolute; top: 0;
  width: 28px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--se42-gold);
}
.se42-bottomnav-btn { position: relative; }
.se42-bottomnav-btn .se42-badge {
  position: absolute; top: 0.3rem; right: 22%;
  background: var(--se42-crimson); color: #fff;
  font-size: 0.85rem; padding: 0 0.35rem;
  border-radius: 8px; font-weight: 700;
}

/* ---------- Back to top ---------- */
.se42-to-top {
  position: fixed; right: 1rem; bottom: 7.4rem;
  width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--se42-crimson), var(--se42-pink));
  color: #fff; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 999;
  box-shadow: 0 6px 18px rgba(220, 20, 60, 0.5);
}
.se42-to-top.se42-to-top-show { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Misc utilities ---------- */
.se42-mt { margin-top: 1.2rem; }
.se42-mb { margin-bottom: 1.2rem; }
.se42-center { text-align: center; }
.se42-row { display: flex; align-items: center; gap: 0.6rem; }
.se42-pill {
  display:inline-block; padding: 0.2rem 0.7rem; border-radius: 999px;
  background: rgba(255,105,180,0.18); color: var(--se42-pink);
  font-size: 1.05rem; font-weight: 700;
}
.se42-copied { outline: 2px solid var(--se42-gold); }
.se42-divider {
  height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  margin: 1.2rem 0;
}

/* ---------- Main padding for mobile nav clearance ---------- */
main { display: block; }
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* ---------- Desktop rules ---------- */
.se42-desktop-only { display: none; }
@media (min-width: 769px) {
  .se42-bottomnav { display: none; }
  .se42-desktop-only { display: block; }
  .se42-footer { padding-bottom: 2rem; }
  body { background: #060a1f; }
}
