/*!
 * me777 login - core stylesheet (theme-3481.css)
 * All custom classes use s348- prefix for namespace isolation
 * Palette: #800080 (purple) | #C71585 (magenta) | #0A0A0A (dark bg)
 * Mobile-first design, max-width 430px optimized
 * Comments in English only
 */

:root {
  --s348-primary: #800080;
  --s348-accent: #C71585;
  --s348-bg: #0A0A0A;
  --s348-bg-alt: #161016;
  --s348-card: #1a1420;
  --s348-text: #f5f0f7;
  --s348-text-muted: #b8a8c0;
  --s348-border: rgba(199, 21, 133, 0.35);
  --s348-gold: #ffcf4d;
  --s348-success: #36d399;
}

/* Base reset */
* { 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(--s348-bg);
  background-image: radial-gradient(circle at 20% 0%, rgba(128,0,128,0.25), transparent 55%),
                    radial-gradient(circle at 90% 30%, rgba(199,21,133,0.18), transparent 50%);
  background-attachment: fixed;
  color: var(--s348-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 76px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--s348-accent); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ============ Header ============ */
.s348-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: linear-gradient(135deg, rgba(15,5,20,0.95), rgba(40,10,40,0.95));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s348-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.s348-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}
.s348-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--s348-primary), var(--s348-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(199,21,133,0.4);
}
.s348-brand-name {
  font-weight: 800;
  font-size: 1.7rem;
  color: #fff;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.s348-brand-name span { color: var(--s348-gold); }
.s348-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.s348-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 9px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 36px;
}
.s348-btn:active { transform: scale(0.94); }
.s348-btn-login {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.s348-btn-register {
  background: linear-gradient(135deg, var(--s348-primary), var(--s348-accent));
  color: #fff;
  box-shadow: 0 3px 12px rgba(199,21,133,0.5);
}
.s348-btn-promo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--s348-primary), var(--s348-accent));
  color: #fff;
  padding: 1rem 1.6rem;
  border-radius: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(199,21,133,0.45);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.s348-btn-promo:active { transform: scale(0.96); }
.s348-menu-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
}

/* ============ Mobile slide-down menu ============ */
.s348-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 9999;
  background: rgba(10,5,12,0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--s348-border);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  padding: 5.5rem 1rem 1.2rem;
}
.s348-mobile-menu.s348-menu-open { transform: translateY(0); }
.s348-mobile-menu a {
  display: block;
  padding: 1rem 0.8rem;
  border-radius: 8px;
  color: var(--s348-text);
  font-size: 1.4rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.s348-mobile-menu a:active { background: rgba(199,21,133,0.18); }

/* ============ Layout ============ */
main { padding-top: 6rem; }
.s348-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}
.s348-section { padding: 2rem 0; }
.s348-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.s348-section-title i { color: var(--s348-gold); font-size: 2.2rem; }
.s348-subtitle {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--s348-gold);
  margin: 1.2rem 0 0.6rem;
}

/* ============ Carousel ============ */
.s348-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.s348-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.s348-slide.s348-active { display: block; }
.s348-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.s348-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(10,10,10,0.85), transparent);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}
.s348-dots {
  position: absolute;
  bottom: 0.6rem;
  right: 0.8rem;
  display: flex;
  gap: 0.4rem;
}
.s348-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.s348-dot.s348-active { background: var(--s348-gold); width: 18px; border-radius: 4px; }

/* ============ H1 hero ============ */
.s348-h1 {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  text-align: center;
  margin: 0.5rem 0 1rem;
}
.s348-h1 span { color: var(--s348-gold); }
.s348-lead {
  text-align: center;
  color: var(--s348-text-muted);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

/* ============ Game grid ============ */
.s348-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.s348-card {
  background: var(--s348-card);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.s348-card:active { transform: scale(0.95); border-color: var(--s348-accent); }
.s348-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
}
.s348-card-name {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  padding: 0.4rem 0.3rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s348-card-tag {
  display: inline-block;
  font-size: 1rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: rgba(199,21,133,0.25);
  color: var(--s348-gold);
  margin-bottom: 0.5rem;
}

/* ============ Generic content card ============ */
.s348-panel {
  background: var(--s348-card);
  border-radius: 12px;
  padding: 1.4rem;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 1.2rem;
}
.s348-panel p { color: var(--s348-text-muted); margin-bottom: 0.8rem; font-size: 1.35rem; }
.s348-panel strong { color: var(--s348-gold); }

.s348-list { list-style: none; }
.s348-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  color: var(--s348-text-muted);
  font-size: 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.s348-list li::before {
  content: "\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--s348-gold);
}

/* RTP compact table */
.s348-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}
.s348-table th, .s348-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.s348-table th { color: var(--s348-gold); font-weight: 700; }
.s348-table td { color: var(--s348-text-muted); }
.s348-bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.s348-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--s348-primary), var(--s348-accent));
}

/* Promo inline link */
.s348-link {
  color: var(--s348-gold);
  font-weight: 700;
  text-decoration: underline;
}

/* Footer */
.s348-footer {
  background: #070508;
  border-top: 1px solid var(--s348-border);
  padding: 2rem 1rem 1rem;
  margin-top: 2rem;
  color: var(--s348-text-muted);
  font-size: 1.3rem;
}
.s348-footer-brand { color: #fff; font-weight: 700; margin-bottom: 0.6rem; }
.s348-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.8rem 0;
}
.s348-footer-links a { color: var(--s348-text-muted); font-size: 1.2rem; }
.s348-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}
.s348-footer-promos .s348-btn { font-size: 1.15rem; padding: 0.5rem 0.9rem; }
.s348-copyright {
  font-size: 1.15rem;
  color: #6a5a72;
  text-align: center;
  margin-top: 1rem;
}

/* ============ Bottom navigation (mobile) ============ */
.s348-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 64px;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(180deg, rgba(20,8,22,0.98), rgba(8,4,10,0.99));
  border-top: 1px solid var(--s348-border);
  box-shadow: 0 -3px 14px rgba(0,0,0,0.4);
}
.s348-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: transparent;
  border: none;
  color: var(--s348-text-muted);
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform 0.15s ease, color 0.15s ease;
}
.s348-bottomnav-btn i, .s348-bottomnav-btn .material-icons-outlined,
.s348-bottomnav-btn ion-icon { font-size: 24px; }
.s348-bottomnav-btn:active { transform: scale(0.88); color: var(--s348-gold); }
.s348-bottomnav-btn.s348-active { color: var(--s348-gold); }
.s348-bottomnav-btn.s348-active::after {
  content: "";
  position: absolute;
  margin-top: 50px;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--s348-accent);
}

/* Reveal animation */
.s348-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.s348-reveal.s348-visible { opacity: 1; transform: translateY(0); }

/* ============ Mobile media query ============ */
@media (max-width: 430px) {
  body { padding-bottom: 80px; }
  .s348-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .s348-h1 { font-size: 2.1rem; }
  .s348-section-title { font-size: 1.85rem; }
  .s348-btn { padding: 0.6rem 0.9rem; font-size: 1.2rem; }
  .s348-brand-name { font-size: 1.5rem; }
}

@media (min-width: 769px) {
  .s348-bottomnav { display: none; }
  body { padding-bottom: 0; }
}
