/* ===========================================================
   PHSKY core stylesheet (css/layout.css)
   Mobile-first gaming website layout.
   All custom classes use the w8776- prefix.
   Code comments in English only.
   =========================================================== */

:root {
  --w8776-bg: #2C2C2C;
  --w8776-bg-soft: #1c1f24;
  --w8776-bg-card: #353940;
  --w8776-primary: #00CED1;
  --w8776-accent: #00BFFF;
  --w8776-light: #87CEEB;
  --w8776-text: #f3f7fa;
  --w8776-text-soft: #b9c6d0;
  --w8776-border: rgba(135, 206, 235, 0.18);
  --w8776-radius: 14px;
  --w8776-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

/* Base reset */
* { box-sizing: border-box; }
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--w8776-bg);
  color: var(--w8776-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--w8776-light); text-decoration: none; }
a:hover { color: var(--w8776-primary); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 0.6rem; line-height: 1.4rem; color: var(--w8776-text); }
p { margin: 0 0 1rem; color: var(--w8776-text-soft); }

/* Layout containers */
.w8776-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
  position: relative;
}
.w8776-section {
  padding: 2.4rem 0 1.6rem;
  border-bottom: 1px solid var(--w8776-border);
}
.w8776-section:last-child { border-bottom: none; }
.w8776-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w8776-primary);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.w8776-section-title .w8776-title-accent {
  width: 6px;
  height: 22px;
  background: linear-gradient(180deg, var(--w8776-primary), var(--w8776-accent));
  border-radius: 3px;
  display: inline-block;
}
.w8776-subtitle {
  font-size: 1.55rem;
  color: var(--w8776-text-soft);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

/* ===== Header ===== */
.w8776-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1c1f24, #2C2C2C 60%, #1c1f24);
  border-bottom: 1px solid var(--w8776-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.w8776-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1rem;
}
.w8776-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--w8776-text);
}
.w8776-logo img { width: 30px; height: 30px; border-radius: 6px; }
.w8776-logo .w8776-brand { color: var(--w8776-primary); }
.w8776-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w8776-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  color: #06141a;
}
.w8776-btn:hover { transform: translateY(-1px); }
.w8776-btn-primary {
  background: linear-gradient(135deg, var(--w8776-primary), var(--w8776-accent));
  box-shadow: 0 4px 14px rgba(0, 207, 209, 0.35);
}
.w8776-btn-ghost {
  background: transparent;
  color: var(--w8776-light);
  border: 1px solid var(--w8776-light);
}
.w8776-btn-block {
  display: flex;
  width: 100%;
  padding: 1.1rem;
  font-size: 1.6rem;
}
.w8776-menu-btn {
  background: transparent;
  border: none;
  color: var(--w8776-light);
  font-size: 2rem;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
}

/* Mobile menu */
.w8776-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--w8776-bg-soft);
  border-top: 1px solid var(--w8776-border);
  transition: max-height 0.32s ease;
}
.w8776-mobile-menu.w8776-menu-open { max-height: 540px; }
.w8776-mobile-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 1rem 1.2rem 1.4rem;
}
.w8776-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: var(--w8776-bg-card);
  color: var(--w8776-text);
  font-size: 1.35rem;
  font-weight: 600;
}
.w8776-mobile-menu a span.material-symbols-outlined,
.w8776-mobile-menu a i { font-size: 1.6rem; color: var(--w8776-primary); }

/* ===== Hero / Carousel ===== */
.w8776-hero { padding: 1.4rem 0 0.4rem; }
.w8776-carousel {
  position: relative;
  border-radius: var(--w8776-radius);
  overflow: hidden;
  box-shadow: var(--w8776-shadow);
}
.w8776-slides { position: relative; }
.w8776-slide {
  display: none;
  position: relative;
}
.w8776-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.w8776-slide.w8776-slide-active { display: block; }
.w8776-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.78));
  color: #fff;
}
.w8776-slide-caption h2 { color: #fff; font-size: 1.8rem; margin-bottom: 0.4rem; }
.w8776-slide-caption p { color: #e7eef3; font-size: 1.25rem; margin: 0; }
.w8776-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.8rem 0;
}
.w8776-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(135, 206, 235, 0.35);
  cursor: pointer;
  border: none;
}
.w8776-dot.w8776-dot-active {
  background: var(--w8776-primary);
  width: 22px;
  border-radius: 6px;
}

/* ===== Hero CTA banner ===== */
.w8776-hero-cta {
  margin: 1.2rem 0 0.4rem;
  padding: 1.2rem;
  border-radius: var(--w8776-radius);
  background: linear-gradient(135deg, rgba(0,207,209,0.18), rgba(0,191,255,0.18));
  border: 1px solid var(--w8776-border);
  text-align: center;
}
.w8776-hero-cta h1 { color: var(--w8776-primary); font-size: 2.1rem; }
.w8776-hero-cta p { font-size: 1.3rem; }

/* ===== Game grid ===== */
.w8776-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.w8776-card {
  background: var(--w8776-bg-card);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
}
.w8776-card:hover {
  transform: translateY(-2px);
  border-color: var(--w8776-primary);
  box-shadow: 0 6px 16px rgba(0, 207, 209, 0.25);
}
.w8776-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #20242b;
}
.w8776-card-name {
  padding: 0.5rem 0.6rem 0.7rem;
  font-size: 1.15rem;
  text-align: center;
  color: var(--w8776-text);
  font-weight: 600;
  line-height: 1.3rem;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.w8776-card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--w7776-primary, var(--w8776-primary));
  color: #06141a;
  font-size: 1rem;
  padding: 0.1rem 0.5rem;
  border-radius: 6px;
  font-weight: 700;
}
.w8776-card-wrap { position: relative; }

/* ===== Category pills ===== */
.w8776-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}
.w8776-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--w8776-bg-card);
  color: var(--w8776-text-soft);
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid var(--w8776-border);
}
.w8776-pill a { color: inherit; }

/* ===== Info / feature blocks ===== */
.w8776-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.w8776-feature {
  flex: 1 1 130px;
  background: var(--w8776-bg-card);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--w8776-border);
}
.w8776-feature .w8776-feature-icon {
  font-size: 2.2rem;
  color: var(--w8776-primary);
  margin-bottom: 0.4rem;
}
.w8776-feature h3 { font-size: 1.45rem; color: var(--w8776-text); }
.w8776-feature p { font-size: 1.2rem; margin: 0; }

/* Steps list */
.w8776-steps { counter-reset: step; display: grid; gap: 0.8rem; }
.w8776-step {
  display: flex;
  gap: 0.8rem;
  background: var(--w8776-bg-card);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--w8776-border);
}
.w8776-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--w8776-primary), var(--w8776-accent));
  color: #06141a;
  font-weight: 800;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.w8776-step h4 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.w8776-step p { font-size: 1.2rem; margin: 0; }

/* RTP compact table */
.w8776-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--w8776-bg-card);
  border-radius: 12px;
  overflow: hidden;
  font-size: 1.25rem;
}
.w8776-table th, .w8776-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--w8776-border);
}
.w8776-table th { background: rgba(0, 191, 255, 0.12); color: var(--w8776-light); }
.w8776-table td:last-child { color: var(--w8776-primary); font-weight: 700; }

/* FAQ */
.w8776-faq-item {
  background: var(--w8776-bg-card);
  border: 1px solid var(--w8776-border);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.w8776-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--w8776-text);
  font-size: 1.35rem;
  font-weight: 700;
  padding: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}
.w8776-faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  color: var(--w8776-text-soft);
  font-size: 1.2rem;
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.w8776-faq-item.w8776-faq-open .w8776-faq-a {
  max-height: 320px;
  padding: 0 1rem 1rem;
}

/* Testimonials */
.w8776-testimonial {
  background: var(--w8776-bg-card);
  border-radius: 12px;
  padding: 1rem;
  border-left: 3px solid var(--w8776-primary);
  margin-bottom: 0.7rem;
}
.w8776-testimonial p { font-size: 1.25rem; margin: 0 0 0.5rem; }
.w8776-testimonial .w8776-author { font-size: 1.15rem; color: var(--w8776-light); font-weight: 700; }

/* Winners list */
.w8776-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0.9rem;
  background: var(--w8776-bg-card);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}
.w8776-winner span:last-child { color: var(--w8776-primary); font-weight: 800; }

/* Payment chips */
.w8776-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w8776-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--w8776-bg-card);
  border: 1px solid var(--w8776-border);
  border-radius: 999px;
  font-size: 1.2rem;
  color: var(--w8776-text);
}

/* Promo inline link */
.w8776-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--w8776-primary);
  font-weight: 700;
  cursor: pointer;
}
.w8776-cta-link:hover { color: var(--w8776-accent); }

/* App download banner */
.w8776-app-banner {
  background: linear-gradient(135deg, rgba(0,207,209,0.18), rgba(0,191,255,0.18));
  border: 1px solid var(--w8776-border);
  border-radius: var(--w8776-radius);
  padding: 1.2rem;
  text-align: center;
}
.w8776-app-banner h3 { color: var(--w8776-primary); font-size: 1.7rem; }
.w8776-app-row { display: flex; gap: 0.6rem; justify-content: center; margin-top: 0.8rem; }

/* ===== Footer ===== */
.w8776-footer {
  background: var(--w8776-bg-soft);
  border-top: 1px solid var(--w8776-border);
  padding: 2rem 0 7rem;
}
.w8776-footer p { font-size: 1.25rem; }
.w8776-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 1rem 0;
}
.w8776-footer-links a {
  padding: 0.6rem 0.8rem;
  background: var(--w8776-bg-card);
  border-radius: 8px;
  font-size: 1.2rem;
  text-align: center;
  color: var(--w8776-text);
}
.w8776-footer-copy {
  text-align: center;
  font-size: 1.15rem;
  color: var(--w8776-text-soft);
  margin-top: 1rem;
}

/* ===== Mobile bottom navigation ===== */
.w8776-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: linear-gradient(90deg, #1c1f24, #2C2C2C);
  border-top: 1px solid var(--w8776-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.45);
}
.w8776-bottom-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w8776-text-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, color 0.18s ease;
}
.w8776-bottom-btn i,
.w8776-bottom-btn span.material-symbols-outlined {
  font-size: 24px;
}
.w8776-bottom-btn:hover { transform: translateY(-1px); }
.w8776-bottom-btn.w8776-bottom-active { color: var(--w8776-primary); }
.w8776-bottom-btn.w8776-bottom-active::after {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--w8776-primary);
  margin-top: 2px;
}

/* Desktop: hide bottom nav, keep content centered */
@media (min-width: 769px) {
  .w8776-bottom-nav { display: none; }
  .w8776-footer { padding-bottom: 2rem; }
}

/* Mobile bottom padding so content is not hidden behind fixed nav */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
