/* ============================================================
   jilib.homes - layout stylesheet (layout-2f4e.css)
   All classes use prefix "w2f4e-".
   Palette: #00FF00 (primary) | #3A3A3A (dark base)
   Mobile-first. Max viewport 430px on phones.
   ============================================================ */

:root {
  --w2f4e-primary: #00FF00;
  --w2f4e-primary-soft: #2bd72b;
  --w2f4e-primary-glow: rgba(0, 255, 0, 0.35);
  --w2f4e-bg: #3A3A3A;
  --w2f4e-bg-deep: #2a2a2a;
  --w2f4e-bg-card: #424242;
  --w2f4e-bg-footer: #1f1f1f;
  --w2f4e-text: #ffffff;
  --w2f4e-text-muted: #d6d6d6;
  --w2f4e-text-dim: #a0a0a0;
  --w2f4e-border: rgba(0, 255, 0, 0.18);
  --w2f4e-gold: #ffd34d;
  --w2f4e-radius: 10px;
  --w2f4e-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --w2f4e-transition: 0.25s ease;
}

* { 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", Arial, sans-serif;
  background: var(--w2f4e-bg);
  color: var(--w2f4e-text);
  line-height: 1.5;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--w2f4e-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.w2f4e-header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(180deg, #2c2c2c 0%, #3A3A3A 100%);
  border-bottom: 2px solid var(--w2f4e-primary);
  padding: 8px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.w2f4e-brand { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.w2f4e-brand img { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--w2f4e-primary); }
.w2f4e-brand-name {
  font-size: 1.8rem; font-weight: 800; color: var(--w2f4e-primary);
  letter-spacing: 0.4px; text-transform: lowercase;
}
.w2f4e-brand-name span { color: var(--w2f4e-text); font-weight: 600; }
.w2f4e-header-actions { display: flex; align-items: center; gap: 6px; }

.w2f4e-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 34px; padding: 6px 12px; border-radius: 8px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  border: none; transition: var(--w2f4e-transition); white-space: nowrap;
}
.w2f4e-btn-primary {
  background: linear-gradient(135deg, #00FF00, #2bd72b);
  color: #0a0a0a; box-shadow: 0 3px 10px var(--w2f4e-primary-glow);
}
.w2f4e-btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.w2f4e-btn-ghost { background: transparent; color: var(--w2f4e-primary); border: 1px solid var(--w2f4e-primary); }
.w2f4e-btn-ghost:hover { background: rgba(0, 255, 0, 0.1); }

.w2f4e-menu-toggle {
  background: transparent; border: none; color: var(--w2f4e-primary);
  font-size: 2rem; cursor: pointer; width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center; border-radius: 6px;
}
.w2f4e-menu-toggle:hover { background: rgba(0, 255, 0, 0.1); }

/* ---------- Mobile / drawer menu ---------- */
.w2f4e-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none; transition: var(--w2f4e-transition); z-index: 9998;
}
.w2f4e-menu-overlay.w2f4e-active { opacity: 1; pointer-events: auto; }
.w2f4e-mobile-menu {
  position: fixed; top: 0; right: -85%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--w2f4e-bg-deep); padding: 22px 18px;
  z-index: 9999; transition: right 0.3s ease; overflow-y: auto;
  border-left: 1px solid var(--w2f4e-border);
}
.w2f4e-mobile-menu.w2f4e-active { right: 0; }
.w2f4e-mobile-menu h3 {
  color: var(--w2f4e-primary); font-size: 1.5rem; margin-bottom: 10px;
  text-transform: uppercase; letter-spacing: 1px;
}
.w2f4e-mobile-menu ul { list-style: none; }
.w2f4e-mobile-menu li { border-bottom: 1px solid rgba(0, 255, 0, 0.08); }
.w2f4e-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 8px; color: var(--w2f4e-text);
  font-size: 1.5rem; font-weight: 600;
}
.w2f4e-mobile-menu a:hover { color: var(--w2f4e-primary); text-decoration: none; }
.w2f4e-mobile-menu .material-icons,
.w2f4e-mobile-menu i { color: var(--w2f4e-primary); font-size: 20px; }
.w2f4e-menu-cta { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Main / sections ---------- */
main { padding-bottom: 80px; }
.w2f4e-section { padding: 22px 14px; }
.w2f4e-section-title {
  font-size: 2rem; font-weight: 800; color: var(--w2f4e-primary);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.w2f4e-section-title i { font-size: 22px; }
.w2f4e-section-sub { color: var(--w2f4e-text-muted); font-size: 1.4rem; margin-bottom: 14px; }
.w2f4e-card {
  background: var(--w2f4e-bg-card); border-radius: var(--w2f4e-radius);
  padding: 14px; border: 1px solid var(--w2f4e-border); box-shadow: var(--w2f4e-shadow);
}

/* ---------- Carousel ---------- */
.w2f4e-carousel {
  position: relative; overflow: hidden; border-radius: 12px;
  margin: 12px; box-shadow: var(--w2f4e-shadow);
  border: 1px solid var(--w2f4e-border);
}
.w2f4e-carousel-track { display: flex; transition: transform 0.5s ease; }
.w2f4e-carousel-slide { position: relative; min-width: 100%; cursor: pointer; }
.w2f4e-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.w2f4e-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 12px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: #fff;
}
.w2f4e-carousel-cap h2 { font-size: 1.6rem; color: var(--w2f4e-primary); margin-bottom: 4px; }
.w2f4e-carousel-cap p { font-size: 1.3rem; }
.w2f4e-carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 6px 0; background: var(--w2f4e-bg-deep);
}
.w2f4e-carousel-dot {
  width: 8px; height: 8px; background: #666;
  border-radius: 50%; cursor: pointer; transition: var(--w2f4e-transition);
}
.w2f4e-carousel-dot.w2f4e-active { background: var(--w2f4e-primary); transform: scale(1.3); }

/* ---------- Game grid ---------- */
.w2f4e-game-block { margin-bottom: 18px; }
.w2f4e-cat-title {
  font-size: 1.7rem; color: var(--w2f4e-primary); font-weight: 700;
  margin: 16px 0 10px; display: flex; align-items: center; gap: 8px;
  border-left: 4px solid var(--w2f4e-primary); padding-left: 8px;
}
.w2f4e-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 380px) { .w2f4e-game-grid { grid-template-columns: repeat(4, 1fr); } }

.w2f4e-game-card {
  background: var(--w2f4e-bg-card); border-radius: 8px; overflow: hidden;
  cursor: pointer; border: 1px solid transparent; transition: var(--w2f4e-transition);
  display: block; text-decoration: none;
}
.w2f4e-game-card:hover {
  border-color: var(--w2f4e-primary); transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--w2f4e-primary-glow); text-decoration: none;
}
.w2f4e-game-card img { width: 100%; height: 78px; object-fit: cover; background: #2a2a2a; }
.w2f4e-game-card .w2f4e-game-name {
  padding: 4px 6px; font-size: 1.1rem; text-align: center;
  color: var(--w2f4e-text); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; font-weight: 600;
}

/* ---------- Info / list ---------- */
.w2f4e-list { list-style: none; padding-left: 0; }
.w2f4e-list li {
  padding: 8px 0; border-bottom: 1px dashed rgba(0, 255, 0, 0.12);
  display: flex; align-items: flex-start; gap: 8px;
  color: var(--w2f4e-text-muted); font-size: 1.4rem;
}
.w2f4e-list li i { color: var(--w2f4e-primary); margin-top: 2px; }

.w2f4e-step-list { counter-reset: step; list-style: none; padding-left: 0; }
.w2f4e-step-list li {
  counter-increment: step; padding: 10px 10px 10px 42px;
  position: relative; margin-bottom: 8px;
  background: var(--w2f4e-bg-card); border-radius: 8px;
  border-left: 3px solid var(--w2f4e-primary);
}
.w2f4e-step-list li::before {
  content: counter(step); position: absolute; left: 8px; top: 8px;
  width: 24px; height: 24px; background: var(--w2f4e-primary);
  color: #0a0a0a; border-radius: 50%; font-size: 1.3rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- RTP table ---------- */
.w2f4e-rtp-table {
  width: 100%; border-collapse: collapse; font-size: 1.3rem;
  background: var(--w2f4e-bg-card); border-radius: 8px; overflow: hidden;
}
.w2f4e-rtp-table th, .w2f4e-rtp-table td {
  padding: 8px 10px; text-align: left;
  border-bottom: 1px solid rgba(0, 255, 0, 0.1);
}
.w2f4e-rtp-table th { background: #2a2a2a; color: var(--w2f4e-primary); font-weight: 700; }
.w2f4e-rtp-table tr:last-child td { border-bottom: none; }
.w2f4e-rtp-badge {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: 1.1rem; font-weight: 700;
  background: rgba(0, 255, 0, 0.15); color: var(--w2f4e-primary);
}

/* ---------- Pills / winners / quotes ---------- */
.w2f4e-pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.w2f4e-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: var(--w2f4e-bg-card);
  border: 1px solid var(--w2f4e-border); border-radius: 20px;
  font-size: 1.3rem; font-weight: 600; color: var(--w2f4e-text);
}
.w2f4e-pill i { color: var(--w2f4e-primary); }

.w2f4e-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.w2f4e-winner-card {
  background: var(--w2f4e-bg-card); padding: 10px; border-radius: 8px;
  border: 1px solid var(--w2f4e-border);
}
.w2f4e-winner-card .w2f4e-winner-name { font-size: 1.3rem; color: var(--w2f4e-primary); font-weight: 700; }
.w2f4e-winner-card .w2f4e-winner-game { font-size: 1.2rem; color: var(--w2f4e-text-muted); }
.w2f4e-winner-card .w2f4e-winner-amount { font-size: 1.4rem; color: var(--w2f4e-gold); font-weight: 800; margin-top: 4px; }

.w2f4e-quote {
  background: var(--w2f4e-bg-card); padding: 12px;
  border-left: 3px solid var(--w2f4e-primary); border-radius: 6px; margin-bottom: 8px;
}
.w2f4e-quote p { font-size: 1.35rem; color: var(--w2f4e-text-muted); font-style: italic; }
.w2f4e-quote .w2f4e-quote-author { font-size: 1.2rem; color: var(--w2f4e-primary); margin-top: 6px; font-weight: 700; }

/* ---------- CTA banner ---------- */
.w2f4e-cta-banner {
  background: linear-gradient(135deg, #00FF00, #1eb31e);
  color: #0a0a0a; border-radius: 12px; padding: 18px;
  text-align: center; margin: 18px 14px;
  box-shadow: 0 6px 18px var(--w2f4e-primary-glow);
}
.w2f4e-cta-banner h2 { font-size: 1.9rem; margin-bottom: 6px; }
.w2f4e-cta-banner p { font-size: 1.35rem; margin-bottom: 12px; }
.w2f4e-cta-banner .w2f4e-btn { background: #0a0a0a; color: var(--w2f4e-primary); font-size: 1.5rem; padding: 10px 22px; }

/* ---------- Footer ---------- */
.w2f4e-footer { background: var(--w2f4e-bg-footer); padding: 22px 14px 30px; color: var(--w2f4e-text-muted); }
.w2f4e-footer-brand { font-size: 1.4rem; margin-bottom: 12px; line-height: 1.6; }
.w2f4e-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 12px 0; }
.w2f4e-footer-links a { color: var(--w2f4e-text-muted); font-size: 1.3rem; padding: 4px 0; }
.w2f4e-footer-links a:hover { color: var(--w2f4e-primary); }
.w2f4e-footer-cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.w2f4e-footer-cta-row .w2f4e-btn { flex: 1; min-width: 110px; }
.w2f4e-copyright {
  font-size: 1.2rem; text-align: center; color: var(--w2f4e-text-dim);
  margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 12px;
}

/* ---------- Bottom nav ---------- */
.w2f4e-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 62px;
  background: linear-gradient(180deg, #2f2f2f 0%, #1c1c1c 100%);
  border-top: 2px solid var(--w2f4e-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.4);
}
.w2f4e-bottom-nav-btn {
  flex: 1; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  background: transparent; border: none; color: var(--w2f4e-text-muted);
  font-size: 1.05rem; cursor: pointer; transition: var(--w2f4e-transition);
  min-width: 60px; text-decoration: none;
}
.w2f4e-bottom-nav-btn i,
.w2f4e-bottom-nav-btn .material-icons { font-size: 22px; transition: var(--w2f4e-transition); }
.w2f4e-bottom-nav-btn:hover { color: var(--w2f4e-primary); transform: translateY(-1px); text-decoration: none; }
.w2f4e-bottom-nav-btn:hover i,
.w2f4e-bottom-nav-btn:hover .material-icons { transform: scale(1.15); }
.w2f4e-bottom-nav-btn span { font-size: 1.05rem; font-weight: 600; }
.w2f4e-bottom-nav-btn.w2f4e-current { color: var(--w2f4e-primary); }
.w2f4e-bottom-nav-btn.w2f4e-current i,
.w2f4e-bottom-nav-btn.w2f4e-current .material-icons { text-shadow: 0 0 8px var(--w2f4e-primary-glow); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body { max-width: 430px; border-left: 1px solid #222; border-right: 1px solid #222; min-height: 100vh; }
  .w2f4e-bottom-nav { display: none; }
  main { padding-bottom: 30px; }
}

/* ---------- Utility ---------- */
.w2f4e-text-link { color: var(--w2f4e-primary); font-weight: 700; }
.w2f4e-mt-8 { margin-top: 8px; }
.w2f4e-mt-16 { margin-top: 16px; }
.w2f4e-center { text-align: center; }
.w2f4e-hidden { display: none !important; }
