/**
 * ph222 app - Layout stylesheet
 * Class prefix: w7f31-
 * Palette: #8FBC8F | #00FF7F | #1A1A2E | #FFB6C1 | #95A5A6
 * Mobile-first: target width <= 430px, progressive desktop layout.
 */

/* Design tokens */
:root {
  --w7f31-primary: #00FF7F;
  --w7f31-primary-dark: #8FBC8F;
  --w7f31-bg: #1A1A2E;
  --w7f31-bg-soft: #20203b;
  --w7f31-bg-card: #262648;
  --w7f31-text: #FFFFFF;
  --w7f31-text-soft: #95A5A6;
  --w7f31-accent: #FFB6C1;
  --w7f31-accent-soft: #ffd8de;
  --w7f31-border: rgba(255, 255, 255, 0.08);
  --w7f31-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.35);
  --w7f31-radius: 1rem;
  --w7f31-radius-sm: 0.6rem;
  --w7f31-max-width: 430px;
  --w7f31-header-h: 5.6rem;
  --w7f31-bottom-h: 6.4rem;
}

/* Reset & base */
* { 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, sans-serif;
  background: var(--w7f31-bg);
  color: var(--w7f31-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--w7f31-primary); text-decoration: none; }
a:hover, a:focus { color: var(--w7f31-accent); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Layout primitives */
.w7f31-wrapper { width: 100%; max-width: var(--w7f31-max-width); margin: 0 auto; padding: 0 1.2rem; }
.w7f31-section { padding: 2.4rem 0; }
.w7f31-section-title {
  font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.w7f31-section-title::before {
  content: ''; width: 0.4rem; height: 1.8rem;
  background: var(--w7f31-primary); border-radius: 0.4rem;
}
.w7f31-subtitle { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.8rem; color: var(--w7f31-accent); }
.w7f31-text { color: var(--w7f31-text-soft); line-height: 1.6rem; }
.w7f31-text strong { color: var(--w7f31-primary); font-weight: 700; }
.w7f31-hidden { display: none !important; }

/* Buttons */
.w7f31-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 4.4rem; padding: 0 1.6rem;
  border-radius: var(--w7f31-radius-sm);
  font-size: 1.4rem; font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.w7f31-btn-primary {
  background: linear-gradient(135deg, var(--w7f31-primary), var(--w7f31-primary-dark));
  color: #0b1f12; box-shadow: 0 0.3rem 0.8rem rgba(0, 255, 127, 0.35);
}
.w7f31-btn-primary:hover { transform: translateY(-0.1rem); color: #0b1f12; }
.w7f31-btn-secondary {
  background: transparent; color: var(--w7f31-text);
  border: 0.15rem solid var(--w7f31-primary);
}
.w7f31-btn-secondary:hover { background: rgba(0, 255, 127, 0.1); }
.w7f31-btn-accent {
  background: linear-gradient(135deg, var(--w7f31-accent), #ff85a2);
  color: #2a0d12; box-shadow: 0 0.3rem 0.8rem rgba(255, 182, 193, 0.35);
}
.w7f31-btn-accent:hover { transform: translateY(-0.1rem); color: #2a0d12; }
.w7f31-link-text {
  color: var(--w7f31-primary); font-weight: 700;
  border-bottom: 0.1rem dashed var(--w7f31-primary); padding-bottom: 0.1rem;
}
.w7f31-link-text:hover { color: var(--w7f31-accent); border-bottom-color: var(--w7f31-accent); }

/* Header */
.w7f31-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w7f31-header-h);
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(0.8rem);
  border-bottom: 0.1rem solid var(--w7f31-border);
  transition: background 0.25s ease;
}
.w7f31-header-solid { background: rgba(26, 26, 46, 0.98); }
.w7f31-header-inner {
  max-width: var(--w7f31-max-width); margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.2rem;
}
.w7f31-brand { display: flex; align-items: center; gap: 0.6rem; color: var(--w7f31-text); }
.w7f31-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.5rem; }
.w7f31-brand-text {
  font-size: 1.5rem; font-weight: 800; letter-spacing: 0.05rem;
  background: linear-gradient(135deg, var(--w7f31-primary), var(--w7f31-accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.w7f31-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w7f31-header-actions .w7f31-btn { min-height: 3.6rem; padding: 0 1.2rem; font-size: 1.3rem; }
.w7f31-menu-toggle {
  width: 4rem; height: 4rem; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: 0.4rem;
}
.w7f31-menu-toggle span {
  display: block; width: 2rem; height: 0.2rem;
  background: var(--w7f31-text); border-radius: 0.2rem;
}

/* Mobile menu */
.w7f31-mobile-menu {
  position: fixed; top: var(--w7f31-header-h); left: 0; right: 0;
  background: var(--w7f31-bg-soft);
  border-bottom: 0.1rem solid var(--w7f31-border);
  transform: translateY(-130%);
  transition: transform 0.3s ease;
  z-index: 9999; padding: 1rem 1.2rem 2rem;
}
.w7f31-mobile-menu.w7f31-menu-open { transform: translateY(0); }
.w7f31-mobile-menu a {
  display: block; padding: 1rem 0.6rem;
  border-bottom: 0.1rem solid var(--w7f31-border);
  font-size: 1.4rem; color: var(--w7f31-text);
}
.w7f31-mobile-menu a:hover { color: var(--w7f31-primary); padding-left: 1rem; }

/* Hero / carousel */
.w7f31-hero {
  margin-top: var(--w7f31-header-h);
  position: relative; overflow: hidden;
  border-radius: 0 0 1.6rem 1.6rem;
}
.w7f31-slides { position: relative; }
.w7f31-slide { position: relative; display: none; }
.w7f31-slide img { width: 100%; height: 18rem; object-fit: cover; border-radius: 0 0 1.6rem 1.6rem; }
.w7f31-slide.w7f31-slide-active { display: block; }
.w7f31-slide-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.6rem 1.6rem;
  background: linear-gradient(to top, rgba(26, 26, 46, 0.95), transparent);
}
.w7f31-slide-overlay h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.w7f31-slide-overlay p { font-size: 1.2rem; color: var(--w7f31-text-soft); margin-bottom: 0.8rem; }
.w7f31-dots {
  position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}
.w7f31-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255, 255, 255, 0.35); cursor: pointer; }
.w7f31-dot.w7f31-dot-active { background: var(--w7f31-primary); }

/* Filter tabs */
.w7f31-filter {
  display: flex; gap: 0.5rem; overflow-x: auto;
  padding: 0.5rem 0 1rem; -webkit-overflow-scrolling: touch;
}
.w7f31-filter::-webkit-scrollbar { display: none; }
.w7f31-filter-tab {
  flex: 0 0 auto; padding: 0.6rem 1.2rem; border-radius: 2rem;
  background: var(--w7f31-bg-card); color: var(--w7f31-text-soft);
  font-size: 1.2rem; font-weight: 600; white-space: nowrap; border: 0.1rem solid transparent;
}
.w7f31-filter-tab.w7f31-filter-active {
  background: linear-gradient(135deg, var(--w7f31-primary), var(--w7f31-primary-dark));
  color: #0b1f12; border-color: var(--w7f31-primary);
}

/* Game grid */
.w7f31-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
@media (min-width: 400px) { .w7f31-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.w7f31-game-card {
  background: var(--w7f31-bg-card);
  border-radius: var(--w7f31-radius-sm);
  overflow: hidden; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 0.1rem solid var(--w7f31-border);
}
.w7f31-game-card:hover { transform: translateY(-0.2rem); box-shadow: var(--w7f31-shadow); }
.w7f31-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.w7f31-game-card .w7f31-game-name {
  font-size: 1.1rem; padding: 0.4rem 0.3rem 0.6rem;
  color: var(--w7f31-text); font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cards / blocks */
.w7f31-card {
  background: var(--w7f31-bg-card);
  border-radius: var(--w7f31-radius);
  padding: 1.6rem;
  border: 0.1rem solid var(--w7f31-border);
  box-shadow: var(--w7f31-shadow);
}
.w7f31-card-row {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 0; border-bottom: 0.1rem solid var(--w7f31-border);
}
.w7f31-card-row:last-child { border-bottom: none; }
.w7f31-card-row .w7f31-card-icon {
  width: 4rem; height: 4rem; border-radius: 1rem; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  background: rgba(0, 255, 127, 0.12); color: var(--w7f31-primary);
}
.w7f31-card-row .w7f31-card-body h3 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.w7f31-card-row .w7f31-card-body p { font-size: 1.2rem; color: var(--w7f31-text-soft); }

/* Accordion */
.w7f31-acc-item {
  background: var(--w7f31-bg-card);
  border: 0.1rem solid var(--w7f31-border);
  border-radius: var(--w7f31-radius-sm);
  margin-bottom: 0.8rem; overflow: hidden;
}
.w7f31-acc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem 1.4rem; font-weight: 700; font-size: 1.4rem;
  width: 100%; text-align: left;
}
.w7f31-acc-head .w7f31-acc-icon { color: var(--w7f31-primary); font-size: 1.6rem; }
.w7f31-acc-body {
  max-height: 0; overflow: hidden; padding: 0 1.4rem;
  transition: max-height 0.25s ease, padding 0.25s ease;
  color: var(--w7f31-text-soft); font-size: 1.3rem;
}
.w7f31-acc-item.w7f31-acc-open .w7f31-acc-body { max-height: 30rem; padding: 0 1.4rem 1.2rem; }

/* RTP / stats / winners */
.w7f31-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.w7f31-stat-tile {
  background: var(--w7f31-bg-card);
  border: 0.1rem solid var(--w7f31-border);
  border-radius: var(--w7f31-radius-sm);
  padding: 1rem; text-align: center;
}
.w7f31-stat-tile .w7f31-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--w7f31-primary); }
.w7f31-stat-tile .w7f31-stat-label { font-size: 1.1rem; color: var(--w7f31-text-soft); }
.w7f31-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0; border-bottom: 0.1rem solid var(--w7f31-border);
}
.w7f31-winner-row:last-child { border-bottom: none; }
.w7f31-winner-name { font-weight: 700; color: var(--w7f31-text); }
.w7f31-winner-amount { color: var(--w7f31-primary); font-weight: 800; }

/* Testimonials */
.w7f31-testimonial {
  background: var(--w7f31-bg-card);
  border-radius: var(--w7f31-radius-sm);
  padding: 1.4rem; margin-bottom: 0.8rem;
  border-left: 0.3rem solid var(--w7f31-primary);
}
.w7f31-testimonial .w7f31-testi-text { font-size: 1.3rem; color: var(--w7f31-text); margin-bottom: 0.6rem; }
.w7f31-testimonial .w7f31-testi-meta { font-size: 1.1rem; color: var(--w7f31-text-soft); }

/* Payment methods */
.w7f31-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.w7f31-pay-tile {
  background: var(--w7f31-bg-card);
  border-radius: 0.6rem; padding: 1rem 0.4rem; text-align: center;
  border: 0.1rem solid var(--w7f31-border);
}
.w7f31-pay-tile i { font-size: 2.2rem; color: var(--w7f31-primary); }
.w7f31-pay-tile span { display: block; font-size: 1.05rem; color: var(--w7f31-text-soft); margin-top: 0.3rem; }

/* Footer */
.w7f31-footer {
  background: var(--w7f31-bg-soft);
  border-top: 0.1rem solid var(--w7f31-border);
  padding: 2.4rem 0 8.5rem; margin-top: 2rem;
}
.w7f31-footer h4 { font-size: 1.4rem; margin-bottom: 0.6rem; color: var(--w7f31-accent); }
.w7f31-footer p { color: var(--w7f31-text-soft); font-size: 1.2rem; margin-bottom: 0.8rem; }
.w7f31-footer-links {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1rem; margin: 1rem 0;
}
.w7f31-footer-links a { font-size: 1.2rem; color: var(--w7f31-text-soft); }
.w7f31-footer-links a:hover { color: var(--w7f31-primary); }
.w7f31-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.w7f31-footer-promos .w7f31-btn { min-height: 3.6rem; padding: 0 1rem; font-size: 1.2rem; }
.w7f31-copy {
  text-align: center; font-size: 1.1rem; color: var(--w7f31-text-soft);
  padding-top: 1rem; border-top: 0.1rem solid var(--w7f31-border); margin-top: 1rem;
}

/* Bottom navigation */
.w7f31-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--w7f31-bottom-h);
  background: linear-gradient(180deg, #20203b 0%, #15152a 100%);
  border-top: 0.15rem solid var(--w7f31-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -0.4rem 1.2rem rgba(0, 0, 0, 0.4);
}
.w7f31-bottom-nav-btn {
  flex: 1 1 0; min-width: 6rem; min-height: 6rem; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  color: var(--w7f31-text-soft); font-size: 1.05rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.w7f31-bottom-nav-btn i,
.w7f31-bottom-nav-btn span.material-icons-outlined,
.w7f31-bottom-nav-btn ion-icon { font-size: 2.4rem; }
.w7f31-bottom-nav-btn:hover { color: var(--w7f31-primary); transform: translateY(-0.1rem); }
.w7f31-bottom-nav-btn.w7f31-bottom-nav-active { color: var(--w7f31-primary); }
.w7f31-bottom-nav-btn.w7f31-bottom-nav-active ion-icon { color: var(--w7f31-accent); }
.w7f31-bottom-nav-btn .w7f31-nav-badge {
  position: absolute; transform: translate(0.8rem, -1rem);
  background: var(--w7f31-accent); color: #2a0d12;
  border-radius: 1rem; padding: 0 0.4rem; font-size: 0.9rem; font-weight: 800;
}

/* Utility */
.w7f31-text-center { text-align: center; }
.w7f31-mt-1 { margin-top: 0.6rem; }
.w7f31-mt-2 { margin-top: 1.2rem; }
.w7f31-mb-2 { margin-bottom: 1.2rem; }
.w7f31-row { display: flex; gap: 0.8rem; align-items: center; }
.w7f31-row-between { display: flex; justify-content: space-between; align-items: center; }
.w7f31-grow { flex: 1 1 auto; }
.w7f31-back-to-top {
  position: fixed; right: 1.2rem; bottom: calc(var(--w7f31-bottom-h) + 1rem);
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--w7f31-primary); color: #0b1f12;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
  box-shadow: var(--w7f31-shadow); z-index: 999;
}

/* Desktop layout */
@media (min-width: 769px) {
  body { background: #0f0f1e; }
  .w7f31-wrapper { max-width: 900px; padding: 0 2rem; }
  .w7f31-header-inner { max-width: 900px; }
  .w7f31-grid { grid-template-columns: repeat(6, 1fr); }
  .w7f31-pay-grid { grid-template-columns: repeat(8, 1fr); }
  .w7f31-footer-links { grid-template-columns: repeat(3, 1fr); }
  /* Hide the mobile bottom nav on desktop */
  .w7f31-bottom-nav { display: none; }
  .w7f31-footer { padding-bottom: 2.4rem; }
  .w7f31-back-to-top { display: none; }
}

/* Reserve space at the bottom so the fixed nav never overlaps content */
@media (max-width: 768px) {
  main.w7f31-main { padding-bottom: 8rem; }
}

/* Reduce motion for users who request it */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
