/*!
 * open8.sbs - Core Stylesheet
 * Class prefix: w7f30-
 * Palette: #333333 | #20B2AA | #FF1493 | #BAE1FF | #FF6347
 * Mobile-first, max-width 430px, rem units (root font 62.5%)
 * Comments in English
 */

:root {
  --w7f30-bg: #333333;
  --w7f30-bg-deep: #262626;
  --w7f30-bg-soft: #3c3c3c;
  --w7f30-primary: #20b2aa;
  --w7f30-accent: #ff1493;
  --w7f30-accent-soft: #ff6347;
  --w7f30-light: #bae1ff;
  --w7f30-text: #f3f6f8;
  --w7f30-text-muted: #c7d2dc;
  --w7f30-border: rgba(186, 225, 255, 0.18);
  --w7f30-radius: 1.2rem;
  --w7f30-shadow: 0 0.4rem 1.8rem rgba(0, 0, 0, 0.45);
  --w7f30-header-h: 6rem;
  --w7f30-nav-h: 6.2rem;
  --w7f30-maxw: 430px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--w7f30-bg);
  color: var(--w7f30-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: var(--w7f30-maxw);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--w7f30-light);
  text-decoration: none;
}

.w7f30-container {
  width: 100%;
  max-width: var(--w7f30-maxw);
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ============ Header ============ */
.w7f30-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: var(--w7f30-maxw);
  margin: 0 auto;
  height: var(--w7f30-header-h);
  background: linear-gradient(135deg, #1f1f1f 0%, #2b2b2b 100%);
  border-bottom: 0.2rem solid var(--w7f30-primary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.5);
}

.w7f30-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.w7f30-brand img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.w7f30-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w7f30-light);
  letter-spacing: 0.05rem;
  white-space: nowrap;
}
.w7f30-brand-name span {
  color: var(--w7f30-primary);
}

.w7f30-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w7f30-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.4rem;
  padding: 0 1.2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}
.w7f30-btn:active {
  transform: scale(0.94);
}

.w7f30-btn-register {
  background: linear-gradient(135deg, var(--w7f30-accent) 0%, var(--w7f30-accent-soft) 100%);
  color: #fff;
  box-shadow: 0 0.4rem 1rem rgba(255, 20, 147, 0.35);
}
.w7f30-btn-login {
  background: transparent;
  color: var(--w7f30-light);
  border: 0.15rem solid var(--w7f30-primary);
}

.w7f30-menu-btn {
  background: transparent;
  border: 0.15rem solid var(--w7f30-border);
  border-radius: 0.8rem;
  width: 3.4rem;
  height: 3.4rem;
  color: var(--w7f30-light);
  font-size: 1.8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============ Mobile menu ============ */
.w7f30-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.w7f30-menu-overlay.w7f30-menu-open {
  opacity: 1;
  visibility: visible;
}

.w7f30-mobile-menu {
  position: fixed;
  top: 0;
  right: -82%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--w7f30-bg-deep);
  z-index: 9999;
  padding: var(--w7f30-header-h) 1.4rem 2rem;
  overflow-y: auto;
  transition: right 0.28s ease;
  border-left: 0.2rem solid var(--w7f30-primary);
}
.w7f30-mobile-menu.w7f30-menu-open {
  right: 0;
}

.w7f30-mobile-menu h3 {
  font-size: 1.5rem;
  color: var(--w7f30-primary);
  margin: 1.4rem 0 0.8rem;
  letter-spacing: 0.04rem;
}

.w7f30-mobile-menu a,
.w7f30-mobile-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: 0.8rem;
  background: var(--w7f30-bg-soft);
  color: var(--w7f30-text);
  font-size: 1.35rem;
  border: 0.1rem solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.w7f30-mobile-menu a:hover,
.w7f30-mobile-menu button:hover {
  background: #454545;
  border-color: var(--w7f30-primary);
}

.w7f30-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
  background: transparent;
  color: var(--w7f30-light);
  font-size: 1.6rem;
  border: 0.15rem solid var(--w7f30-border);
  cursor: pointer;
}

/* ============ Main content ============ */
.w7f30-main {
  padding-top: calc(var(--w7f30-header-h) + 1.2rem);
  padding-bottom: 1.5rem;
}

.w7f30-section {
  margin: 2rem 0;
  padding: 1.6rem 1.2rem;
  background: var(--w7f30-bg-deep);
  border-radius: var(--w7f30-radius);
  border: 0.1rem solid var(--w7f30-border);
  box-shadow: var(--w7f30-shadow);
}

.w7f30-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--w7f30-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.w7f30-section-title i,
.w7f30-section-title .material-icons-outlined {
  color: var(--w7f30-primary);
  font-size: 2rem;
}

.w7f30-section p {
  color: var(--w7f30-text-muted);
  margin-bottom: 0.8rem;
  line-height: 1.6rem;
}

/* ============ Hero / Carousel ============ */
.w7f30-carousel {
  position: relative;
  margin: 1.2rem 0;
  border-radius: var(--w7f30-radius);
  overflow: hidden;
  box-shadow: var(--w7f30-shadow);
  background: #111;
}
.w7f30-carousel-track {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.w7f30-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.w7f30-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.w7f30-carousel-slide.w7f30-slide-active {
  opacity: 1;
}
.w7f30-carousel-caption {
  position: absolute;
  left: 1rem;
  bottom: 1.2rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
}
.w7f30-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1rem;
  display: flex;
  gap: 0.5rem;
}
.w7f30-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
}
.w7f30-carousel-dot.w7f30-dot-active {
  background: var(--w7f30-primary);
}

.w7f30-hero-cta {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.w7f30-hero-cta .w7f30-btn {
  flex: 1 1 auto;
}

/* ============ H1 ============ */
.w7f30-h1 {
  font-size: 2.1rem;
  font-weight: 900;
  color: #fff;
  text-align: center;
  margin: 1.4rem 0 0.6rem;
  line-height: 2.4rem;
  padding: 0 0.4rem;
}
.w7f30-h1 span {
  color: var(--w7f30-primary);
}
.w7f30-sub {
  text-align: center;
  color: var(--w7f30-text-muted);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* ============ Filter chips ============ */
.w7f30-filter-bar {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.6rem 0.2rem 1rem;
  -webkit-overflow-scrolling: touch;
}
.w7f30-filter-chip {
  flex: 0 0 auto;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  background: var(--w7f30-bg-soft);
  color: var(--w7f30-text-muted);
  font-size: 1.25rem;
  font-weight: 600;
  border: 0.12rem solid var(--w7f30-border);
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.w7f30-filter-chip.w7f30-chip-active {
  background: var(--w7f30-primary);
  color: #fff;
  border-color: var(--w7f30-primary);
}

/* ============ Game grid ============ */
.w7f30-game-group {
  margin-bottom: 2rem;
}
.w7f30-group-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--w7f30-light);
  margin-bottom: 1rem;
  border-left: 0.3rem solid var(--w7f30-primary);
  padding-left: 0.8rem;
}
.w7f30-group-head .w7f30-group-tag {
  margin-left: auto;
  font-size: 1.05rem;
  color: var(--w7f30-accent);
  font-weight: 700;
}

.w7f30-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.w7f30-card {
  background: var(--w7f30-bg-soft);
  border-radius: 0.8rem;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  border: 0.1rem solid transparent;
  transition: transform 0.18s ease, border-color 0.18s ease;
  overflow: hidden;
}
.w7f30-card:active {
  transform: scale(0.93);
  border-color: var(--w7f30-primary);
}
.w7f30-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
}
.w7f30-card-name {
  font-size: 1.05rem;
  color: var(--w7f30-text);
  line-height: 1.3rem;
  height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ============ Info / feature lists ============ */
.w7f30-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.w7f30-feature {
  background: var(--w7f30-bg-soft);
  border-radius: 0.8rem;
  padding: 1rem;
  border: 0.1rem solid var(--w7f30-border);
}
.w7f30-feature i,
.w7f30-feature .material-icons-outlined {
  font-size: 1.8rem;
  color: var(--w7f30-accent);
}
.w7f30-feature h4 {
  font-size: 1.25rem;
  margin: 0.4rem 0 0.3rem;
  color: var(--w7f30-light);
}
.w7f30-feature p {
  font-size: 1.15rem;
  color: var(--w7f30-text-muted);
  margin: 0;
  line-height: 1.5rem;
}

.w7f30-step-list {
  list-style: none;
  counter-reset: step;
}
.w7f30-step-list li {
  counter-increment: step;
  position: relative;
  padding: 0.8rem 0.8rem 0.8rem 3.2rem;
  margin-bottom: 0.6rem;
  background: var(--w7f30-bg-soft);
  border-radius: 0.8rem;
  font-size: 1.25rem;
  color: var(--w7f30-text-muted);
}
.w7f30-step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  background: var(--w7f30-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
}

.w7f30-faq-item {
  background: var(--w7f30-bg-soft);
  border-radius: 0.8rem;
  margin-bottom: 0.7rem;
  padding: 1rem 1.2rem;
  border: 0.1rem solid var(--w7f30-border);
}
.w7f30-faq-item h4 {
  font-size: 1.3rem;
  color: var(--w7f30-light);
  margin-bottom: 0.4rem;
}
.w7f30-faq-item p {
  font-size: 1.2rem;
  color: var(--w7f30-text-muted);
  margin: 0;
  line-height: 1.5rem;
}

/* ============ RTP / data bars ============ */
.w7f30-rtp-row {
  margin-bottom: 0.9rem;
}
.w7f30-rtp-row .w7f30-rtp-head {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  color: var(--w7f30-text-muted);
  margin-bottom: 0.3rem;
}
.w7f30-rtp-bar {
  height: 0.8rem;
  background: #1c1c1c;
  border-radius: 1rem;
  overflow: hidden;
}
.w7f30-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--w7f30-primary), var(--w7f30-accent));
  border-radius: 1rem;
}

/* ============ Testimonials / winners ============ */
.w7f30-testi {
  background: var(--w7f30-bg-soft);
  border-radius: 0.8rem;
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
  border-left: 0.3rem solid var(--w7f30-accent);
}
.w7f30-testi .w7f30-testi-name {
  font-size: 1.25rem;
  color: var(--w7f30-light);
  font-weight: 700;
}
.w7f30-testi .w7f30-testi-text {
  font-size: 1.2rem;
  color: var(--w7f30-text-muted);
  margin-top: 0.3rem;
  line-height: 1.5rem;
}

.w7f30-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--w7f30-bg-soft);
  border-radius: 0.8rem;
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
}
.w7f30-winner .w7f30-winner-amount {
  margin-left: auto;
  color: var(--w7f30-accent-soft);
  font-weight: 800;
  font-size: 1.3rem;
}
.w7f30-winner small {
  color: var(--w7f30-text-muted);
  font-size: 1.1rem;
}

/* ============ Payment / app CTA ============ */
.w7f30-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.w7f30-pay-chip {
  background: var(--w7f30-bg-soft);
  border: 0.1rem solid var(--w7f30-border);
  border-radius: 0.8rem;
  padding: 0.6rem 1rem;
  font-size: 1.15rem;
  color: var(--w7f30-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.w7f30-app-cta {
  background: linear-gradient(135deg, #14302e 0%, #2b2b2b 100%);
  border-radius: var(--w7f30-radius);
  padding: 1.6rem 1.2rem;
  text-align: center;
  border: 0.1rem solid var(--w7f30-primary);
}
.w7f30-app-cta h3 {
  font-size: 1.6rem;
  color: var(--w7f30-light);
  margin-bottom: 0.6rem;
}
.w7f30-app-cta p {
  color: var(--w7f30-text-muted);
  margin-bottom: 1rem;
}

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

/* ============ Footer ============ */
.w7f30-footer {
  background: var(--w7f30-bg-deep);
  border-top: 0.2rem solid var(--w7f30-primary);
  padding: 2rem 1.2rem 8.5rem;
  margin-top: 2rem;
}
.w7f30-footer-brand {
  font-size: 1.35rem;
  color: var(--w7f30-text-muted);
  line-height: 1.7rem;
  margin-bottom: 1.2rem;
}
.w7f30-footer-brand span {
  color: var(--w7f30-primary);
  font-weight: 700;
}
.w7f30-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}
.w7f30-footer-links a {
  background: var(--w7f30-bg-soft);
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  font-size: 1.2rem;
  text-align: center;
  border: 0.1rem solid var(--w7f30-border);
}
.w7f30-footer-links a:hover {
  border-color: var(--w7f30-primary);
  color: var(--w7f30-primary);
}
.w7f30-footer-copy {
  text-align: center;
  font-size: 1.1rem;
  color: var(--w7f30-text-muted);
  border-top: 0.1rem solid var(--w7f30-border);
  padding-top: 1rem;
}

/* ============ Back to top ============ */
.w7f30-top-btn {
  position: fixed;
  right: 1.2rem;
  bottom: calc(var(--w7f30-nav-h) + 1rem);
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--w7f30-primary);
  color: #fff;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 998;
  box-shadow: var(--w7f30-shadow);
}
.w7f30-top-btn.w7f30-top-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============ Mobile bottom nav ============ */
.w7f30-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: var(--w7f30-maxw);
  margin: 0 auto;
  height: var(--w7f30-nav-h);
  background: linear-gradient(180deg, #2b2b2b 0%, #1a1a1a 100%);
  border-top: 0.2rem solid var(--w7f30-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0, 0, 0, 0.5);
}
.w7f30-nav-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(--w7f30-text-muted);
  font-size: 1.05rem;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: color 0.18s ease, transform 0.18s ease;
}
.w7f30-nav-btn i,
.w7f30-nav-btn ion-icon,
.w7f30-nav-btn .material-icons-outlined,
.w7f30-nav-btn .material-icons,
.w7f30-nav-btn .material-icons-two-tone {
  font-size: 2.2rem;
  width: 2.4rem;
  height: 2.4rem;
  transition: transform 0.18s ease, color 0.18s ease;
}
.w7f30-nav-btn:active {
  transform: scale(0.92);
}
.w7f30-nav-btn.w7f30-nav-current {
  color: var(--w7f30-primary);
}
.w7f30-nav-btn.w7f30-nav-current::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2.4rem;
  height: 0.25rem;
  background: var(--w7f30-primary);
  border-radius: 0 0 0.3rem 0.3rem;
}
.w7f30-nav-promo {
  color: var(--w7f30-accent);
}
.w7f30-nav-badge {
  position: absolute;
  top: 0.5rem;
  right: 1.4rem;
  background: var(--w7f30-accent-soft);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.35rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Desktop: hide bottom nav and top button positioned for desktop */
@media (min-width: 769px) {
  .w7f30-bottom-nav {
    display: none;
  }
  .w7f30-footer {
    padding-bottom: 2rem;
  }
}

/* Mobile: pad main so bottom nav never covers content */
@media (max-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .w7f30-main {
    padding-bottom: calc(var(--w7f30-nav-h) + 1.2rem);
  }
}

/* Very small screens: tighten grid to 3 columns */
@media (max-width: 359px) {
  .w7f30-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
