/*!
 * wg777.click stylesheet
 * All custom classes use the w8d63- prefix for namespace isolation.
 * Palette: #FF8000 | #FAFAD2 | #FFD700 | #F0E68C | #E9ECEF | #141414
 */

:root {
  --w8d63-primary: #FF8000;
  --w8d63-secondary: #FFD700;
  --w8d63-accent: #FAFAD2;
  --w8d63-bg: #141414;
  --w8d63-bg-2: #1d1d1d;
  --w8d63-bg-3: #262422;
  --w8d63-text: #FAFAD2;
  --w8d63-muted: #F0E68C;
  --w8d63-soft: #E9ECEF;
  --w8d63-border: rgba(255, 215, 0, 0.18);
  --w8d63-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
  --w8d63-radius: 14px;
}

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

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

body {
  background: radial-gradient(circle at top, #20180f 0%, var(--w8d63-bg) 60%);
  color: var(--w8d63-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  overflow-x: hidden;
  padding-top: 64px;
}

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

.w8d63-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.w8d63-wrapper { padding: 18px 14px; }

/* ===== Header ===== */
.w8d63-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0e0e0e 100%);
  border-bottom: 1px solid var(--w8d63-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.w8d63-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}
.w8d63-brand { display: flex; align-items: center; gap: 10px; }
.w8d63-brand img { width: 30px; height: 30px; border-radius: 6px; }
.w8d63-brand-name {
  font-size: 2.0rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, var(--w8d63-primary), var(--w8d63-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.w8d63-header-actions { display: flex; align-items: center; gap: 8px; }
.w8d63-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 22px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.w8d63-btn:active { transform: scale(0.95); }
.w8d63-btn--login {
  background: transparent;
  color: var(--w8d63-muted);
  border: 1px solid var(--w8d63-border);
}
.w8d63-btn--register {
  background: linear-gradient(90deg, var(--w8d63-primary), #ff9a3c);
  color: #141414;
  box-shadow: 0 4px 14px rgba(255, 128, 0, 0.35);
}
.w8d63-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w8d63-text);
  font-size: 2.0rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ===== Mobile menu (slide-down) ===== */
.w8d63-mobile-menu {
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: #141414;
  border-bottom: 1px solid var(--w8d63-border);
  transform: translateY(-130%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 14px;
  max-height: 70vh;
  overflow-y: auto;
}
.w8d63-menu--open { transform: translateY(0); }
.w8d63-mobile-menu a {
  display: block;
  padding: 12px 14px;
  color: var(--w8d63-text);
  border-radius: 8px;
  border-bottom: 1px solid rgba(255,215,0,.08);
  font-size: 1.45rem;
}
.w8d63-mobile-menu a:hover { background: rgba(255, 215, 0, 0.08); }
.w8d63-no-scroll { overflow: hidden; }

/* ===== Carousel ===== */
.w8d63-carousel {
  position: relative;
  border-radius: var(--w8d63-radius);
  overflow: hidden;
  margin: 14px 0;
  box-shadow: var(--w8d63-shadow);
}
.w8d63-carousel-track { position: relative; height: 180px; }
.w8d63-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.w8d63-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.w8d63-carousel-slide--active { opacity: 1; }
.w8d63-carousel-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
}
.w8d63-carousel-overlay h2 { font-size: 1.7rem; margin-bottom: 4px; }
.w8d63-carousel-dots {
  position: absolute;
  bottom: 10px; right: 12px;
  display: flex; gap: 6px;
}
.w8d63-carousel-dot {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.45);
  border-radius: 50%;
  cursor: pointer;
}
.w8d63-carousel-dot--active { background: var(--w8d63-secondary); }

/* ===== Sections ===== */
.w8d63-section { padding: 18px 0; }
.w8d63-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.8rem;
  color: var(--w8d63-secondary);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--w8d63-border);
}
.w8d63-section-title .material-icons,
.w8d63-section-title i { font-size: 22px; color: var(--w8d63-primary); }

/* ===== Game grid (compact) ===== */
.w8d63-game-scroller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.w8d63-game-card {
  background: var(--w8d63-bg-3);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  padding: 8px 6px;
  transition: transform .15s ease, box-shadow .15s ease;
  border: 1px solid transparent;
}
.w8d63-game-card:hover, .w8d63-game-card:active {
  transform: translateY(-3px);
  border-color: var(--w8d63-primary);
  box-shadow: 0 8px 18px rgba(255, 128, 0, 0.25);
}
.w8d63-game-card img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 4px;
}
.w8d63-game-card span {
  display: block;
  font-size: 1.1rem;
  color: var(--w8d63-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Cards / panels ===== */
.w8d63-card {
  background: var(--w8d63-bg-2);
  border: 1px solid var(--w8d63-border);
  border-radius: var(--w8d63-radius);
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: var(--w8d63-shadow);
}
.w8d63-card h3 { color: var(--w8d63-secondary); font-size: 1.5rem; margin-bottom: 6px; }
.w8d63-card p { color: var(--w8d63-soft); font-size: 1.35rem; line-height: 1.5; }

/* ===== Promo CTA strip ===== */
.w8d63-cta {
  background: linear-gradient(135deg, var(--w8d63-primary), #ffb347);
  border-radius: var(--w8d63-radius);
  padding: 16px;
  text-align: center;
  color: #141414;
  margin: 14px 0;
}
.w8d63-cta h3 { font-size: 1.7rem; margin-bottom: 4px; }
.w8d63-cta p { font-size: 1.3rem; margin-bottom: 10px; }
.w8d63-cta .w8d63-btn--register { background: #141414; color: var(--w8d63-secondary); }

/* ===== RTP bars ===== */
.w8d63-rtp-row { margin-bottom: 10px; }
.w8d63-rtp-row span { display: block; font-size: 1.25rem; color: var(--w8d63-muted); margin-bottom: 4px; }
.w8d63-rtp-track { background: rgba(255,255,255,.08); border-radius: 6px; overflow: hidden; height: 10px; }
.w8d63-rtp-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--w8d63-primary), var(--w8d63-secondary)); transition: width 1.2s ease; }

/* ===== Testimonial ===== */
.w8d63-testimonial {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(255,215,0,.1);
}
.w8d63-testimonial:last-child { border-bottom: none; }
.w8d63-testimonial-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--w8d63-primary), var(--w8d63-secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #141414; font-weight: 800; font-size: 1.3rem;
  flex-shrink: 0;
}
.w8d63-testimonial-text { font-size: 1.3rem; color: var(--w8d63-soft); }
.w8d63-testimonial-text strong { color: var(--w8d63-secondary); display: block; }

/* ===== Payment methods ===== */
.w8d63-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w8d63-payment-item {
  background: var(--w8d63-bg-3);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--w8d63-muted);
  border: 1px solid var(--w8d63-border);
}
.w8d63-payment-item i, .w8d63-payment-item .material-icons { font-size: 24px; color: var(--w8d63-secondary); margin-bottom: 4px; }

/* ===== Winner ticker ===== */
.w8d63-ticker {
  background: linear-gradient(90deg, #2a1a05, #141414);
  border: 1px solid var(--w8d63-border);
  border-radius: 10px;
  overflow: hidden;
  padding: 8px 12px;
  margin-bottom: 12px;
}
.w8d63-ticker-track { display: flex; gap: 24px; }
.w8d63-ticker-item { font-size: 1.2rem; color: var(--w8d63-muted); white-space: nowrap; }
.w8d63-ticker-item strong { color: var(--w8d63-secondary); }

/* ===== Footer ===== */
.w8d63-footer {
  background: #0e0e0e;
  border-top: 1px solid var(--w8d63-border);
  padding: 20px 14px 30px;
  margin-top: 20px;
}
.w8d63-footer-brand { font-size: 1.4rem; color: var(--w8d63-soft); margin-bottom: 12px; line-height: 1.5; }
.w8d63-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.w8d63-footer-links a {
  font-size: 1.25rem;
  color: var(--w8d63-muted);
  padding: 4px 0;
}
.w8d63-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.w8d63-footer-promo a {
  flex: 1 1 45%;
  text-align: center;
  background: linear-gradient(90deg, var(--w8d63-primary), #ff9a3c);
  color: #141414;
  padding: 8px;
  border-radius: 18px;
  font-size: 1.25rem;
  font-weight: 700;
}
.w8d63-footer-copy { font-size: 1.15rem; color: #777; text-align: center; padding-top: 8px; border-top: 1px solid rgba(255,215,0,.06); }

/* ===== Mobile bottom nav ===== */
.w8d63-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  border-top: 1px solid var(--w8d63-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.w8d63-bottomnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w8d63-muted);
  cursor: pointer;
  transition: transform .15s ease, color .15s ease;
  text-decoration: none;
}
.w8d63-bottomnav-btn:active { transform: scale(0.9); }
.w8d63-bottomnav-btn i,
.w8d63-bottomnav-btn .material-icons { font-size: 22px; }
.w8d63-bottomnav-btn span { font-size: 1.05rem; }
.w8d63-bottomnav-btn--promo { color: var(--w8d63-secondary); }
.w8d63-bottomnav-btn--active { color: var(--w8d63-primary); }
.w8d63-bottomnav-badge {
  position: absolute;
  top: 6px; right: 18px;
  background: #ff3b3b;
  color: #fff;
  font-size: .9rem;
  border-radius: 50%;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Reveal animation ===== */
.w8d63-reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.w8d63-reveal--visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .w8d63-bottomnav { display: none; }
  body { padding-bottom: 0; }
  .w8d63-container { max-width: 720px; }
  .w8d63-game-scroller { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .w8d63-game-scroller { grid-template-columns: repeat(3, 1fr); }
  .w8d63-footer-links { grid-template-columns: 1fr; }
}
