/* ============================================================
 * nini gaming - theme-807c.css
 * All custom classes use the "w807c-" prefix.
 * Palette: #4DB6AC (mint) | #E8F5E8 (mint cream) | #008B8B (deep teal) | #1C2833 (dark slate)
 * Mobile-first. Root font 62.5% -> 1rem = 10px.
 * ============================================================ */

:root {
  --w807c-primary: #008B8B;
  --w807c-accent: #4DB6AC;
  --w807c-light: #E8F5E8;
  --w807c-dark: #1C2833;
  --w807c-gold: #FFD54F;
  --w807c-grad: linear-gradient(135deg, #008B8B 0%, #4DB6AC 100%);
  --w807c-radius: 14px;
  --w807c-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  --w807c-header-h: 6rem;
  --w807c-bottom-h: 6.4rem;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--w807c-dark);
  color: var(--w807c-light);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.w807c-wrapper { width: 100%; padding: 0 1.4rem; }

/* ===== Header ===== */
.w807c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28, 40, 51, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(77, 182, 172, 0.25);
}
.w807c-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--w807c-header-h);
  padding: 0 1.2rem;
}
.w807c-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--w807c-light);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.3px;
}
.w807c-logo img { width: 3rem; height: 3rem; border-radius: 8px; }
.w807c-logo span { background: var(--w807c-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w807c-header-actions { display: flex; align-items: center; gap: 0.7rem; }
.w807c-menu-btn {
  background: transparent;
  border: none;
  color: var(--w807c-accent);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Buttons ===== */
.w807c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 30px;
  padding: 1rem 1.8rem;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s;
  min-height: 44px;
  text-align: center;
}
.w807c-btn:active { transform: scale(0.96); }
.w807c-btn-primary { background: var(--w807c-grad); color: #fff; box-shadow: var(--w807c-shadow); }
.w807c-btn-primary:hover { opacity: 0.92; }
.w807c-btn-ghost {
  background: transparent;
  color: var(--w807c-accent);
  border: 1.5px solid var(--w807c-accent);
}
.w807c-btn-gold { background: linear-gradient(135deg, #FFD54F, #FFA000); color: var(--w807c-dark); }
.w807c-btn-block { display: flex; width: 100%; }

/* ===== Mobile slide menu ===== */
.w807c-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;
}
.w807c-overlay-show { opacity: 1; pointer-events: auto; }
.w807c-mobile-menu {
  position: fixed;
  top: 0; right: -80%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--w807c-dark);
  border-left: 1px solid rgba(77, 182, 172, 0.3);
  z-index: 9999;
  padding: 2.4rem 1.6rem;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.w807c-menu-open { right: 0; }
.w807c-mobile-menu h3 {
  color: var(--w807c-accent);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 1.8rem 0 0.8rem;
}
.w807c-menu-link {
  display: block;
  padding: 1.1rem 1rem;
  border-radius: 10px;
  color: var(--w807c-light);
  font-size: 1.5rem;
  transition: background 0.18s, padding 0.18s;
}
.w807c-menu-link:hover, .w807c-menu-link:focus {
  background: rgba(77, 182, 172, 0.12);
  padding-left: 1.4rem;
}
.w807c-menu-close {
  background: transparent;
  border: none;
  color: var(--w807c-accent);
  font-size: 2.4rem;
  cursor: pointer;
  float: right;
}

/* ===== Layout ===== */
main { padding-top: var(--w807c-header-h); padding-bottom: var(--w807c-bottom-h); }
.w807c-section { padding: 2.4rem 1.4rem; }
.w807c-section-alt { background: rgba(0, 139, 139, 0.08); }

.w807c-h1 {
  font-size: 2.4rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1rem;
  font-weight: 800;
}
.w807c-h1 .hl { color: var(--w807c-gold); }
.w807c-h2 {
  font-size: 1.9rem;
  color: var(--w807c-accent);
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1.2rem;
}
.w807c-h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  background: var(--w807c-grad);
  border-radius: 4px;
}
.w807c-h3 { font-size: 1.6rem; color: #fff; margin: 1.2rem 0 0.6rem; font-weight: 700; }
.w807c-lead { color: var(--w807c-light); opacity: 0.9; margin-bottom: 1.4rem; }
.w807c-p { margin-bottom: 1.2rem; color: rgba(232, 245, 232, 0.92); }

/* ===== Hero / Carousel ===== */
.w807c-hero { padding: 1.4rem; }
.w807c-carousel {
  position: relative;
  border-radius: var(--w807c-radius);
  overflow: hidden;
  box-shadow: var(--w807c-shadow);
}
.w807c-slides { position: relative; }
.w807c-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.w807c-slide-active { display: block; }
.w807c-slide img { width: 100%; height: 200px; object-fit: cover; }
.w807c-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem;
  background: linear-gradient(transparent, rgba(28, 40, 51, 0.92));
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem;
}
.w807c-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 0;
}
.w807c-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.w807c-dot-active { background: var(--w807c-accent); transform: scale(1.25); }

/* ===== Game grid ===== */
.w807c-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.w807c-cat-head .label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: rgba(77, 182, 172, 0.14);
  color: var(--w807c-accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 1.25rem;
  font-weight: 700;
}
.w807c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}
.w807c-game {
  background: rgba(0, 139, 139, 0.1);
  border: 1px solid rgba(77, 182, 172, 0.2);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.w807c-game:hover {
  transform: translateY(-3px);
  border-color: var(--w807c-accent);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}
.w807c-game img {
  width: 100%; height: 88px; object-fit: cover;
}
.w807c-game-name {
  font-size: 1.15rem;
  color: var(--w807c-light);
  padding: 0.5rem 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

/* ===== Cards ===== */
.w807c-card {
  background: rgba(0, 139, 139, 0.09);
  border: 1px solid rgba(77, 182, 172, 0.22);
  border-radius: var(--w807c-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
}
.w807c-card-row {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px dashed rgba(77, 182, 172, 0.18);
}
.w807c-card-row:last-child { border-bottom: none; }
.w807c-card-row .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--w807c-grad);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}
.w807c-card-row .val { margin-left: auto; color: var(--w807c-gold); font-weight: 700; }

/* ===== Feature / step grid ===== */
.w807c-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}
.w807c-mini {
  background: rgba(0, 139, 139, 0.08);
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
}
.w807c-mini i { color: var(--w807c-accent); font-size: 2.4rem; margin-bottom: 0.5rem; }
.w807c-mini h4 { color: #fff; font-size: 1.35rem; margin-bottom: 0.3rem; }
.w807c-mini p { font-size: 1.2rem; color: rgba(232, 245, 232, 0.8); }

/* ===== Inline link list ===== */
.w807c-link-list { list-style: none; }
.w807c-link-list li {
  padding: 0.7rem 0;
  border-bottom: 1px dashed rgba(77, 182, 172, 0.18);
}
.w807c-link-list li:last-child { border-bottom: none; }

/* ===== Testimonial ===== */
.w807c-testi {
  background: rgba(0, 139, 139, 0.09);
  border-left: 4px solid var(--w807c-accent);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 0.9rem;
}
.w807c-testi .who { color: var(--w807c-gold); font-weight: 700; font-size: 1.3rem; margin-top: 0.5rem; }

/* ===== Promo inline link ===== */
.w807c-promo-link {
  color: var(--w807c-gold);
  font-weight: 700;
  cursor: pointer;
}
.w807c-promo-link:hover { text-decoration: underline; }

/* ===== CTA band ===== */
.w807c-cta {
  background: var(--w807c-grad);
  border-radius: var(--w807c-radius);
  padding: 2rem 1.4rem;
  text-align: center;
  color: #fff;
  margin: 1.4rem 0;
  box-shadow: var(--w807c-shadow);
}
.w807c-cta h2 { color: #fff; padding-left: 0; }
.w807c-cta h2::before { display: none; }
.w807c-cta p { color: rgba(255, 255, 255, 0.92); margin-bottom: 1.2rem; }

/* ===== Footer ===== */
.w807c-footer {
  background: #11181f;
  border-top: 1px solid rgba(77, 182, 172, 0.25);
  padding: 2.4rem 1.4rem;
  color: rgba(232, 245, 232, 0.75);
}
.w807c-footer h3 { color: var(--w807c-accent); font-size: 1.4rem; margin-bottom: 0.8rem; }
.w807c-footer p { font-size: 1.25rem; line-height: 1.6; margin-bottom: 1.2rem; }
.w807c-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1rem;
  margin-bottom: 1.4rem;
}
.w807c-footer-links a {
  color: var(--w807c-light);
  font-size: 1.25rem;
  text-decoration: underline;
}
.w807c-footer-links a:hover { color: var(--w807c-gold); }
.w807c-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.w807c-promo-row .w807c-btn { padding: 0.8rem 0.6rem; font-size: 1.2rem; }
.w807c-copy {
  text-align: center;
  font-size: 1.15rem;
  color: rgba(232, 245, 232, 0.55);
  padding-top: 1rem;
  border-top: 1px solid rgba(77, 182, 172, 0.15);
}

/* ===== Bottom nav ===== */
.w807c-bottom-nav {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w807c-bottom-h);
  background: rgba(17, 24, 31, 0.98);
  border-top: 1px solid rgba(77, 182, 172, 0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.35);
}
.w807c-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(232, 245, 232, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 60px;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  padding: 0.4rem 0;
}
.w807c-nav-btn i { font-size: 2.2rem; }
.w807c-nav-btn .material-icons,
.w807c-nav-btn .ion { font-size: 2.4rem; }
.w807c-nav-btn span { font-size: 1.05rem; }
.w807c-nav-btn:hover, .w807c-nav-btn.active { color: var(--w807c-accent); transform: translateY(-2px); }
.w807c-nav-btn:active { transform: scale(0.92); }
.w807c-nav-btn.is-promo { color: var(--w807c-gold); }
.w807c-nav-btn.is-promo i { filter: drop-shadow(0 0 6px rgba(255, 213, 79, 0.6)); }

/* ===== Desktop: hide bottom nav ===== */
@media (min-width: 769px) {
  .w807c-bottom-nav { display: none; }
  body, main { padding-bottom: 0; }
}

/* ===== Utility ===== */
.w807c-hide { display: none !important; }
.w807c-mt { margin-top: 1.4rem; }
.w807c-center { text-align: center; }
.w807c-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w807c-badge {
  background: rgba(77, 182, 172, 0.18);
  color: var(--w807c-accent);
  border-radius: 8px;
  padding: 0.3rem 0.8rem;
  font-size: 1.15rem;
  font-weight: 600;
}
