/* ============================================================
   wowowin.homes - Core Stylesheet
   All classes use the w3077- prefix to avoid collisions.
   Palette: #006400 | #00FF7F | #34495E | #ADFF2F | #F8F9FA
   ============================================================ */

:root {
  --w3077-primary: #006400;
  --w3077-primary-dark: #003d00;
  --w3077-primary-light: #00a838;
  --w3077-accent: #00FF7F;
  --w3077-slate: #34495E;
  --w3077-highlight: #ADFF2F;
  --w3077-text: #F8F9FA;
  --w3077-text-dim: #c7d0cc;
  --w3077-bg: #04210a;
  --w3077-bg-alt: #08310f;
  --w3077-card: #0d3f17;
  --w3077-border: rgba(0, 255, 127, 0.22);
  --w3077-gold: #ffcf3f;
  --w3077-red: #ff4d5e;
  --w3077-radius: 14px;
  --w3077-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --w3077-maxw: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at 50% 0%, #0a3d18 0%, var(--w3077-bg) 55%, #021004 100%);
  color: var(--w3077-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
  min-height: 100vh;
}

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

.w3077-container {
  width: 100%;
  max-width: var(--w3077-maxw);
  margin: 0 auto;
  padding: 0 12px;
}

.w3077-wrapper { width: 100%; }

/* ----------------- Header ----------------- */
.w3077-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(0,40,12,0.96), rgba(2,30,8,0.96));
  border-bottom: 1px solid var(--w3077-border);
  backdrop-filter: blur(8px);
}
.w3077-header-inner {
  max-width: var(--w3077-maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.w3077-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--w3077-text);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.3px;
}
.w3077-logo img { width: 30px; height: 30px; border-radius: 8px; }
.w3077-logo b { color: var(--w3077-accent); }

.w3077-header-actions { display: flex; align-items: center; gap: 8px; }
.w3077-menu-btn {
  background: transparent;
  border: 1px solid var(--w3077-border);
  color: var(--w3077-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
}

.w3077-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.4rem;
  padding: 9px 14px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  text-align: center;
}
.w3077-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.w3077-btn-login {
  background: linear-gradient(180deg, var(--w3077-highlight), #8fd80c);
  color: #1a3d00;
  box-shadow: 0 4px 12px rgba(173,255,47,0.35);
}
.w3077-btn-register {
  background: linear-gradient(180deg, var(--w3077-accent), var(--w3077-primary-light));
  color: #003d00;
  box-shadow: 0 4px 12px rgba(0,255,127,0.4);
}
.w3077-btn-cta {
  background: linear-gradient(180deg, var(--w3077-gold), #ff9a00);
  color: #2a1500;
  padding: 12px 22px;
  font-size: 1.5rem;
  box-shadow: 0 6px 16px rgba(255,180,0,0.4);
}
.w3077-text-link {
  color: var(--w3077-accent);
  font-weight: 700;
  cursor: pointer;
  border-bottom: 1px dashed rgba(0,255,127,0.5);
}
.w3077-text-link:hover { color: var(--w3077-highlight); }

/* ----------------- Mobile Menu Drawer ----------------- */
.w3077-mobile-menu {
  position: fixed;
  top: 0; right: -82%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #07360f, #021807);
  z-index: 9999;
  padding: 80px 16px 24px;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--w3077-border);
}
.w3077-mobile-menu.w3077-menu-open { right: 0; }
.w3077-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.w3077-menu-overlay.w3077-overlay-show { opacity: 1; pointer-events: auto; }
.w3077-mobile-menu h3 {
  font-size: 1.4rem;
  color: var(--w3077-accent);
  margin: 14px 0 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.w3077-mobile-menu a, .w3077-mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--w3077-text);
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 6px;
  font-size: 1.5rem;
  cursor: pointer;
}
.w3077-mobile-menu a:hover { color: var(--w3077-accent); }

/* ----------------- Main / Hero ----------------- */
.w3077-main { padding-top: 60px; padding-bottom: 80px; }
.w3077-hero {
  position: relative;
  margin: 12px 0;
  border-radius: var(--w3077-radius);
  overflow: hidden;
  box-shadow: var(--w3077-shadow);
}
.w3077-carousel { position: relative; }
.w3077-carousel-track { position: relative; height: 200px; }
.w3077-carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.w3077-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.w3077-carousel-slide.w3077-slide-active { opacity: 1; }
.w3077-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.w3077-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer; padding: 0;
}
.w3077-carousel-dot.w3077-dot-active { background: var(--w3077-highlight); width: 22px; border-radius: 5px; }

/* ----------------- Headings & Sections ----------------- */
.w3077-section { margin: 22px 0; }
.w3077-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.25;
  background: linear-gradient(90deg, var(--w3077-accent), var(--w3077-highlight));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 8px 0;
}
.w3077-h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w3077-text);
  margin: 18px 0 10px;
  padding-left: 10px;
  border-left: 4px solid var(--w3077-accent);
}
.w3077-h3 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--w3077-highlight);
  margin: 14px 0 6px;
}
.w3077-lead { color: var(--w3077-text-dim); font-size: 1.45rem; margin-bottom: 8px; }
.w3077-p { margin-bottom: 10px; color: var(--w3077-text-dim); }

/* ----------------- Game grid ----------------- */
.w3077-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w3077-game-card {
  background: var(--w3077-card);
  border: 1px solid var(--w3077-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  text-align: center;
}
.w3077-game-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,255,127,0.25); }
.w3077-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.w3077-game-card span {
  display: block;
  padding: 6px 4px;
  font-size: 1.15rem;
  color: var(--w3077-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w3077-cat-tag {
  display: inline-block;
  background: rgba(0,255,127,0.15);
  color: var(--w3077-accent);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ----------------- Cards / Modules ----------------- */
.w3077-card {
  background: var(--w3077-card);
  border: 1px solid var(--w3077-border);
  border-radius: var(--w3077-radius);
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--w3077-shadow);
}
.w3077-card-row { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.w3077-card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(173,255,47,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--w3077-highlight);
  font-size: 2rem;
  flex-shrink: 0;
}

.w3077-faq-item { margin-bottom: 8px; border: 1px solid var(--w3077-border); border-radius: 10px; overflow: hidden; }
.w3077-faq-q {
  background: rgba(0,255,127,0.08);
  padding: 10px 12px;
  font-weight: 700;
  color: var(--w3077-accent);
  font-size: 1.35rem;
  cursor: pointer;
}
.w3077-faq-a { padding: 10px 12px; color: var(--w3077-text-dim); font-size: 1.35rem; }

.w3077-stat-row { display: flex; gap: 8px; flex-wrap: wrap; }
.w3077-stat {
  flex: 1 1 45%;
  background: rgba(0,0,0,0.25);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
}
.w3077-stat b { display: block; color: var(--w3077-highlight); font-size: 2rem; font-weight: 800; }
.w3077-stat span { color: var(--w3077-text-dim); font-size: 1.2rem; }

.w3077-badge {
  display: inline-block;
  background: var(--w3077-gold);
  color: #2a1500;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
  margin-left: 6px;
}

.w3077-testi { border-left: 3px solid var(--w3077-accent); padding: 4px 0 4px 12px; margin-bottom: 10px; }
.w3077-testi b { color: var(--w3077-highlight); }
.w3077-testi p { color: var(--w3077-text-dim); font-size: 1.35rem; font-style: italic; }
.w3077-stars { color: var(--w3077-gold); letter-spacing: 2px; }

.w3077-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.w3077-pay-row span {
  background: rgba(255,255,255,0.08);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.25rem;
  color: var(--w3077-text);
  border: 1px solid var(--w3077-border);
}

/* ----------------- Footer ----------------- */
.w3077-footer {
  background: linear-gradient(180deg, #062b0e, #021005);
  border-top: 1px solid var(--w3077-border);
  padding: 22px 12px 18px;
  margin-top: 18px;
}
.w3077-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.w3077-footer-links a {
  display: block;
  color: var(--w3077-text-dim);
  padding: 6px 0;
  font-size: 1.3rem;
}
.w3077-footer-links a:hover { color: var(--w3077-accent); }
.w3077-footer-copy {
  margin-top: 12px;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 1.15rem;
}

/* ----------------- Mobile bottom nav ----------------- */
.w3077-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #062b0e, #021004);
  border-top: 1px solid var(--w3077-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
}
.w3077-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w3077-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  padding: 4px 2px;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.2s ease, transform 0.15s ease;
  font-size: 1.05rem;
  font-weight: 600;
}
.w3077-bottom-nav-btn i,
.w3077-bottom-nav-btn .material-icons-outlined,
.w3077-bottom-nav-btn ion-icon { font-size: 24px; }
.w3077-bottom-nav-btn:hover { color: var(--w3077-accent); transform: translateY(-2px); }
.w3077-bottom-nav-btn.w3077-nav-current { color: var(--w3077-highlight); }
.w3077-bottom-nav-btn.w3077-nav-current::after {
  content: ''; width: 24px; height: 3px;
  background: var(--w3077-highlight);
  border-radius: 3px; margin-top: 2px;
}
.w3077-nav-badge {
  background: var(--w3077-red);
  color: #fff;
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0 5px;
  margin-left: -4px;
  align-self: center;
}

/* ----------------- Desktop: hide bottom nav, widen container ----------------- */
@media (min-width: 769px) {
  .w3077-bottom-nav { display: none; }
  .w3077-main { padding-bottom: 24px; }
  .w3077-container { max-width: 720px; }
  .w3077-carousel-track { height: 320px; }
  .w3077-carousel-slide img { height: 320px; }
  .w3077-grid { grid-template-columns: repeat(5, 1fr); }
  .w3077-footer-promos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .w3077-main { padding-bottom: 88px; }
}
