/* ============================================================
   jljl55 play - Core base stylesheet
   All custom classes use the w4245- prefix.
   Palette: #F08080 #262626 #C71585 #FF7F50 #40E0D0 #FFFFFF
   Mobile-first layout, max-width 430px for primary container.
   ============================================================ */

:root {
  --w4245-primary: #F08080;
  --w4245-bg: #262626;
  --w4245-bg-soft: #1c1c1c;
  --w4245-accent: #C71585;
  --w4245-warm: #FF7F50;
  --w4245-mint: #40E0D0;
  --w4245-white: #FFFFFF;
  --w4245-muted: #b9b3b8;
  --w4245-line: rgba(255, 255, 255, 0.08);
  --w4245-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
}

/* ---------- Reset / base ---------- */
* { 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(--w4245-bg);
  color: var(--w4245-white);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}
a { color: var(--w4245-mint); text-decoration: none; }
a:hover { color: var(--w4245-warm); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.w4245-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.w4245-container { padding: 0 1.2rem; }
main { display: block; }
@media (max-width: 768px) { main { padding-bottom: 88px; } }

/* ---------- Header ---------- */
.w4245-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, #1c1c1c 0%, #3a1d2e 100%);
  border-bottom: 2px solid var(--w4245-accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}
.w4245-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0.6rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
}
.w4245-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--w4245-white); }
.w4245-logo img { width: 28px; height: 28px; border-radius: 6px; }
.w4245-logo-text { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.3px; }
.w4245-logo-text span { color: var(--w4245-primary); }
.w4245-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.w4245-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer; font-weight: 700; font-size: 1.25rem;
  padding: 0.55rem 1rem; border-radius: 999px; transition: transform .15s, box-shadow .2s;
  min-height: 36px;
}
.w4245-btn-login { background: transparent; color: var(--w4245-white); border: 1.5px solid var(--w4245-mint); }
.w4245-btn-login:hover { background: rgba(64,224,208,0.15); }
.w4245-btn-register { background: linear-gradient(135deg, var(--w4245-primary), var(--w4245-warm)); color: #1a1a1a; box-shadow: 0 3px 10px rgba(240,128,128,0.45); }
.w4245-btn-register:hover { transform: translateY(-1px); }
.w4245-menu-btn {
  background: transparent; border: none; color: var(--w4245-white); cursor: pointer;
  font-size: 1.6rem; padding: 0.4rem 0.6rem; border-radius: 8px;
}
.w4245-menu-btn:hover { background: rgba(255,255,255,0.08); }

/* ---------- Mobile menu ---------- */
.w4245-mobile-menu {
  position: fixed; top: 0; right: -80%; width: 80%; height: 100vh; z-index: 9999;
  background: linear-gradient(160deg, #1c1c1c, #2d1424);
  padding: 5rem 1.5rem 2rem; transform: translateX(0);
  transition: right .28s ease; overflow-y: auto;
}
.w4245-mobile-menu.w4245-menu-visible { right: 0; }
.w4245-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.w4245-menu-overlay.w4245-menu-visible { opacity: 1; pointer-events: auto; }
.w4245-mobile-menu h3 { color: var(--w4245-primary); font-size: 1.4rem; margin: 1.2rem 0 0.6rem; text-transform: uppercase; letter-spacing: 1px; }
.w4245-mobile-menu a {
  display: block; padding: 0.7rem 0.8rem; color: var(--w4245-white);
  border-bottom: 1px solid var(--w4245-line); font-size: 1.35rem;
}
.w4245-mobile-menu a:hover { background: rgba(199,21,133,0.18); color: var(--w4245-white); }
.w4245-menu-close { position: absolute; top: 1rem; right: 1.2rem; background: transparent; border: none; color: var(--w4245-white); font-size: 1.8rem; cursor: pointer; }

/* ---------- Hero carousel ---------- */
.w4245-hero { position: relative; margin-top: 56px; overflow: hidden; }
.w4245-hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity var(--w4245-carousel-fade, 600ms) ease;
  pointer-events: none;
}
.w4245-hero-slide.w4245-hero-active { opacity: 1; position: relative; pointer-events: auto; }
.w4245-hero-slide img { width: 100%; height: 200px; object-fit: cover; border-radius: 0 0 14px 14px; }
.w4245-hero-cta {
  position: absolute; left: 1.2rem; bottom: 1.4rem; z-index: 2;
  background: linear-gradient(135deg, var(--w4245-primary), var(--w4245-accent));
  color: #fff; padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 800; font-size: 1.3rem;
  box-shadow: 0 4px 14px rgba(199,21,133,0.5);
}
.w4245-hero-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.w4245-hero-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.4); border: none; cursor: pointer; }
.w4245-hero-dot.w4245-hero-dot-active { background: var(--w4245-primary); width: 18px; border-radius: 4px; }

/* ---------- Section / titles ---------- */
.w4245-section { padding: 1.6rem 1.2rem; }
.w4245-section-title {
  display: flex; align-items: center; gap: 0.6rem; font-size: 1.6rem; font-weight: 800;
  color: var(--w4245-white); margin-bottom: 1rem; padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--w4245-accent);
}
.w4245-section-title i, .w4245-section-title span.material-icons { color: var(--w4245-primary); }
.w4245-section-title .w4245-more { margin-left: auto; font-size: 1.2rem; color: var(--w4245-mint); font-weight: 600; }

.w4245-h1 { font-size: 1.9rem; font-weight: 800; line-height: 1.35; color: var(--w4245-white); margin: 1.2rem 0 0.8rem; }
.w4245-h1 span { color: var(--w4245-primary); }
.w4245-lead { color: var(--w4245-muted); font-size: 1.35rem; margin-bottom: 1rem; }

/* ---------- Game grid ---------- */
.w4245-cat-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.4rem 0 1rem; scrollbar-width: none; }
.w4245-cat-tabs::-webkit-scrollbar { display: none; }
.w4245-cat-tab {
  flex: 0 0 auto; padding: 0.45rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.06);
  color: var(--w4245-white); font-size: 1.2rem; font-weight: 600; border: 1px solid var(--w4245-line);
  cursor: pointer;
}
.w4245-cat-tab:hover { background: var(--w4245-accent); color: #fff; }

.w4245-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.w4245-game-card { display: block; background: linear-gradient(160deg, #2a2a2a, #1c1c1c); border-radius: 10px; overflow: hidden; border: 1px solid var(--w4245-line); transition: transform .15s, box-shadow .2s; cursor: pointer; }
.w4245-game-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(240,128,128,0.3); border-color: var(--w4245-primary); }
.w4245-game-card img { width: 100%; height: 92px; object-fit: cover; }
.w4245-game-name { padding: 0.4rem 0.35rem; font-size: 1.05rem; text-align: center; color: var(--w4245-white); font-weight: 600; line-height: 1.25; min-height: 32px; }

/* ---------- Promo banner / CTA ---------- */
.w4245-cta {
  display: block; margin: 1.2rem 0; padding: 1.1rem 1.2rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--w4245-accent), var(--w4245-warm));
  color: #fff; text-align: center; font-weight: 800; font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(199,21,133,0.4); cursor: pointer; border: none; width: 100%;
}
.w4245-cta:hover { filter: brightness(1.08); }
.w4245-inline-link { color: var(--w4245-primary); font-weight: 700; }
.w4245-inline-link:hover { color: var(--w4245-warm); text-decoration: underline; }

/* ---------- Cards / modules ---------- */
.w4245-card {
  background: linear-gradient(160deg, #2a2a2a, #1a1a1a); border-radius: 12px; padding: 1.1rem;
  border: 1px solid var(--w4245-line); margin-bottom: 1rem;
}
.w4245-card-title { color: var(--w4245-primary); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.w4245-card p { color: var(--w4245-muted); margin-bottom: 0.6rem; font-size: 1.3rem; }
.w4245-card ul { padding-left: 1.2rem; }
.w4245-card ul li { color: var(--w4245-muted); margin-bottom: 0.4rem; font-size: 1.25rem; list-style: disc; }

/* ---------- RTP mini table ---------- */
.w4245-rtp-row { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid var(--w4245-line); font-size: 1.25rem; }
.w4245-rtp-row span:first-child { color: var(--w4245-white); }
.w4245-rtp-row span:last-child { color: var(--w4245-mint); font-weight: 700; }

/* ---------- Accordion ---------- */
.w4245-acc { border: 1px solid var(--w4245-line); border-radius: 10px; overflow: hidden; margin-bottom: 0.7rem; background: #1f1f1f; }
.w4245-acc-head { padding: 0.8rem 1rem; cursor: pointer; font-weight: 700; color: var(--w4245-white); display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; font-size: 1.3rem; background: rgba(199,21,133,0.15); }
.w4245-acc-head i { color: var(--w4245-primary); }
.w4245-acc-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 1rem; color: var(--w4245-muted); font-size: 1.2rem; }
.w4245-acc-open .w4245-acc-body { max-height: 360px; padding: 0.8rem 1rem 1rem; }

/* ---------- Testimonials / winners ---------- */
.w4245-rot-item { display: none; padding: 0.9rem 1rem; background: #1f1f1f; border-radius: 10px; border-left: 3px solid var(--w4245-primary); margin-bottom: 0.7rem; }
.w4245-rot-item.w4245-rot-active { display: block; }
.w4245-rot-item strong { color: var(--w4245-mint); }

/* ---------- Payment / app grid ---------- */
.w4245-chip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.w4245-chip { background: #1f1f1f; border: 1px solid var(--w4245-line); border-radius: 8px; padding: 0.6rem 0.2rem; text-align: center; font-size: 1rem; color: var(--w4245-muted); }
.w4245-chip i, .w4245-chip span.material-icons { font-size: 1.6rem; color: var(--w4245-mint); display: block; margin-bottom: 0.2rem; }

.w4245-app-row { display: flex; gap: 0.8rem; align-items: center; }
.w4245-app-row .w4245-btn { flex: 1; }

/* ---------- Footer ---------- */
.w4245-footer { background: #161616; padding: 1.6rem 1.2rem 2rem; border-top: 2px solid var(--w4245-accent); }
.w4245-footer h4 { color: var(--w4245-primary); font-size: 1.3rem; margin: 1rem 0 0.5rem; }
.w4245-footer p { color: var(--w4245-muted); font-size: 1.2rem; margin-bottom: 0.8rem; }
.w4245-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.8rem; margin-bottom: 1rem; }
.w4245-footer-links a { color: var(--w4245-muted); font-size: 1.15rem; }
.w4245-footer-links a:hover { color: var(--w4245-primary); }
.w4245-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.w4245-footer-promos button { flex: 1 1 45%; }
.w4245-footer-copy { text-align: center; color: #6a6a6a; font-size: 1.1rem; padding-top: 0.8rem; border-top: 1px solid var(--w4245-line); }

/* ---------- Bottom nav (mobile only) ---------- */
.w4245-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; height: 62px;
  background: linear-gradient(180deg, #1c1c1c, #0e0e0e);
  border-top: 2px solid var(--w4245-accent);
  display: flex; justify-content: space-around; align-items: stretch;
}
.w4245-bottomnav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--w4245-muted); cursor: pointer;
  font-size: 1rem; gap: 2px; min-width: 60px; min-height: 60px; transition: color .15s, transform .15s;
}
.w4245-bottomnav-btn i, .w4245-bottomnav-btn span.material-icons { font-size: 22px; }
.w4245-bottomnav-btn:hover { color: var(--w4245-primary); transform: translateY(-1px); }
.w4245-bottomnav-btn.w4245-nav-active { color: var(--w4245-primary); }
.w4245-bottomnav-btn.w4245-nav-active i, .w4245-bottomnav-btn.w4245-nav-active span.material-icons { color: var(--w4245-warm); }
.w4245-bottomnav-badge {
  position: absolute; top: 6px; right: calc(50% - 24px); background: var(--w4245-accent); color: #fff;
  font-size: 0.9rem; padding: 0 5px; border-radius: 999px; line-height: 1.4;
}
@media (min-width: 769px) {
  .w4245-bottomnav { display: none; }
  .w4245-menu-btn { display: none; }
}

/* ---------- Back to top ---------- */
.w4245-back-top {
  position: fixed; right: 14px; bottom: 76px; z-index: 900; width: 42px; height: 42px;
  background: var(--w4245-accent); color: #fff; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.6rem;
  opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: var(--w4245-shadow);
}
.w4245-back-top.w4245-backtop-show { opacity: 1; pointer-events: auto; }

/* ---------- Desktop tweaks ---------- */
@media (min-width: 769px) {
  .w4245-wrapper { max-width: 960px; }
  .w4245-hero-slide img { height: 340px; }
  .w4245-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w4245-footer-links { grid-template-columns: repeat(4, 1fr); }
}
