/* ===========================================================
   phwin 23 - Shared stylesheet
   Class prefix: wf506-
   Palette: #2F2F2F | #1E90FF | #1A1A1A | #ADD8E6 | #A9A9A9 | #808080
   Mobile-first, max 430px design width
   =========================================================== */

:root {
  --wf506-bg: #1A1A1A;
  --wf506-bg-soft: #2F2F2F;
  --wf506-primary: #1E90FF;
  --wf506-primary-dark: #0f6fc2;
  --wf506-accent: #ADD8E6;
  --wf506-text: #ffffff;
  --wf506-muted: #A9A9A9;
  --wf506-faint: #808080;
  --wf506-gold: #ffcf55;
  --wf506-radius: 12px;
  --wf506-shadow: 0 6px 18px rgba(0,0,0,0.45);
  --wf506-maxw: 430px;
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #22364d 0%, var(--wf506-bg) 55%);
  color: var(--wf506-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
}

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

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

.wf506-wrapper { padding-bottom: 8rem; }

main { display: block; }

/* ---------- Header ---------- */
.wf506-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26,26,26,0.98), rgba(26,26,26,0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(30,144,255,0.25);
}
.wf506-header-inner {
  max-width: var(--wf506-maxw);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.wf506-brand {
  display: flex; align-items: center; gap: 0.6rem;
  min-width: 0;
}
.wf506-brand img {
  width: 2.6rem; height: 2.6rem; border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(30,144,255,0.4);
}
.wf506-brand-name {
  font-weight: 800; font-size: 1.5rem; letter-spacing: 0.2px;
  white-space: nowrap;
}
.wf506-brand-name span { color: var(--wf506-primary); }

.wf506-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.wf506-btn {
  border: 0; cursor: pointer;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.25rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.4rem;
  transition: transform .15s ease, filter .15s ease;
  min-height: 3.6rem;
}
.wf506-btn:active { transform: scale(0.96); }
.wf506-btn-primary {
  background: linear-gradient(180deg, var(--wf506-primary), var(--wf506-primary-dark));
  color: #fff; box-shadow: 0 4px 12px rgba(30,144,255,0.45);
}
.wf506-btn-ghost {
  background: rgba(173,216,230,0.12);
  color: var(--wf506-accent);
  border: 1px solid rgba(173,216,230,0.35);
}
.wf506-btn-gold {
  background: linear-gradient(180deg, var(--wf506-gold), #d99a1f);
  color: #2a1c00;
}
.wf506-btn-block {
  width: 100%; justify-content: center;
  padding: 1rem; font-size: 1.4rem;
}
.wf506-link-text {
  color: var(--wf506-primary); font-weight: 700;
  border-bottom: 1px dashed rgba(30,144,255,0.5);
}

/* Hamburger */
.wf506-burger {
  width: 3.6rem; height: 3.6rem;
  background: rgba(173,216,230,0.1);
  border: 1px solid rgba(173,216,230,0.3);
  border-radius: 10px; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile menu drawer ---------- */
.wf506-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  z-index: 9999;
  width: 80%; max-width: 320px; height: 100%;
  background: #181818;
  border-left: 1px solid rgba(30,144,255,0.3);
  transform: translateX(110%);
  transition: transform .28s ease;
  padding: 7rem 1.2rem 2rem;
  overflow-y: auto;
}
.wf506-mobile-menu.wf506-menu-open { transform: translateX(0); }
.wf506-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  color: #fff; font-weight: 600;
}
.wf506-mobile-menu a:hover { color: var(--wf506-primary); }
.wf506-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  display: none;
}
.wf506-overlay.wf506-menu-open { display: block; }

/* ---------- Hero ---------- */
.wf506-hero {
  margin-top: 6.2rem;
  padding: 1rem 0 0;
}
.wf506-carousel {
  position: relative;
  border-radius: var(--wf506-radius);
  overflow: hidden;
  box-shadow: var(--wf506-shadow);
}
.wf506-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.wf506-slide img { width: 100%; height: 18rem; object-fit: cover; }
.wf506-slide-active { display: block; animation: wf506Fade .6s ease; }
@keyframes wf506Fade { from {opacity:.4} to {opacity:1} }
.wf506-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem; background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
  font-weight: 700;
}

/* ---------- Section ---------- */
.wf506-section {
  padding: 2rem 0 0.5rem;
}
.wf506-section h2 {
  font-size: 1.7rem; margin: 0 0 0.4rem;
  display:flex; align-items:center; gap:.5rem;
}
.wf506-section h3 { font-size: 1.4rem; margin: 1.2rem 0 0.4rem; color: var(--wf506-accent); }
.wf506-eyebrow {
  color: var(--wf506-primary); font-weight: 700;
  font-size: 1.2rem; letter-spacing: 1px; text-transform: uppercase;
}
.wf506-muted { color: var(--wf506-muted); }
.wf506-lead { color: #e8e8e8; font-size: 1.4rem; }

/* ---------- Game grid ---------- */
.wf506-cat-title {
  margin: 1.6rem 0 0.8rem;
  font-size: 1.5rem;
  color: var(--wf506-gold);
  display: flex; align-items: center; gap: 0.5rem;
}
.wf506-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.wf506-game {
  background: linear-gradient(180deg, #242424, #181818);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--wf506-radius);
  overflow: hidden;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.wf506-game:active { transform: scale(0.95); box-shadow: 0 0 0 2px var(--wf506-primary); }
.wf506-game img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.wf506-game-name {
  display: block; padding: 0.5rem 0.3rem; font-size: 1.05rem;
  color: #f0f0f0; min-height: 2.8rem;
}

/* ---------- Cards ---------- */
.wf506-card {
  background: rgba(47,47,47,0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--wf506-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}
.wf506-card-row {
  display:flex; align-items:center; gap:.8rem;
  padding: .6rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.07);
}
.wf506-card-row:last-child { border-bottom: 0; }
.wf506-stat {
  display:flex; flex-direction:column; gap:.2rem;
}
.wf506-stat strong { font-size: 1.6rem; color: var(--wf506-gold); }
.wf506-stat span { font-size: 1.1rem; color: var(--wf506-muted); }

/* ---------- Testimonials ---------- */
.wf506-testi {
  background: #202020; padding: 1rem; border-radius: var(--wf506-radius);
  border-left: 3px solid var(--wf506-primary);
  margin-bottom: .8rem;
}
.wf506-testi b { color: var(--wf506-accent); }
.wf506-testi .wf506-stars { color: var(--wf506-gold); }

/* ---------- Payment / winners ---------- */
.wf506-chip-row { display:flex; flex-wrap:wrap; gap:.5rem; }
.wf506-chip {
  background: rgba(173,216,230,0.1);
  border: 1px solid rgba(173,216,230,0.3);
  padding: .5rem .9rem; border-radius: 999px;
  font-size: 1.15rem; color: #fff;
}
.wf506-winner {
  display:flex; justify-content:space-between; gap:.5rem;
  padding: .55rem .8rem; font-size: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wf506-winner b { color: var(--wf506-gold); }

/* ---------- Reveal animation ---------- */
.wf506-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.wf506-reveal.wf506-in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.wf506-footer {
  background: #111;
  border-top: 1px solid rgba(30,144,255,0.25);
  padding: 2rem 0 9rem;
  color: var(--wf506-muted);
}
.wf506-footer h4 { color: #fff; margin: 1.2rem 0 .6rem; font-size: 1.3rem; }
.wf506-footer a { color: #cfcfcf; display: inline-block; padding: .25rem 0; }
.wf506-footer a:hover { color: var(--wf506-primary); }
.wf506-foot-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: .3rem 1rem;
  margin-bottom: 1rem;
}
.wf506-copy {
  text-align: center; font-size: 1.1rem; color: var(--wf506-faint);
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 1rem; padding-top: 1rem;
}

/* ---------- Mobile bottom navigation ---------- */
.wf506-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 6.2rem;
  background: linear-gradient(180deg, #1f1f1f, #0f0f0f);
  border-top: 1px solid rgba(30,144,255,0.35);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.55);
}
.wf506-bottomnav-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 6rem; min-height: 6rem;
  color: var(--wf506-muted);
  background: transparent; border: 0;
  text-decoration: none;
  font-size: 1.05rem;
  gap: .2rem;
  position: relative;
  transition: color .15s ease, transform .15s ease;
}
.wf506-bottomnav-btn:active { transform: scale(0.92); }
.wf506-bottomnav-btn .material-icons,
.wf506-bottomnav-btn ion-icon,
.wf506-bottomnav-btn i { font-size: 2.2rem; line-height: 1; }
.wf506-bottomnav-btn span { font-size: 1.05rem; }
.wf506-bottomnav-active { color: var(--wf506-primary); }
.wf506-bottomnav-active::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%;
  height: 3px; background: var(--wf506-primary); border-radius: 0 0 4px 4px;
}
.wf506-bottomnav-badge {
  position: absolute; top: .6rem; right: 1.4rem;
  background: #e53935; color: #fff; border-radius: 999px;
  font-size: .9rem; padding: 0 .35rem; min-width: 1.6rem; text-align:center;
}

/* ---------- Desktop rules ---------- */
@media (min-width: 769px) {
  .wf506-bottomnav { display: none; }
  .wf506-burger { display: none; }
  .wf506-wrapper { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  main { padding-bottom: 8rem; }
}
@media (min-width: 600px) and (max-width: 768px) {
  .wf506-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Small phone fine tuning ---------- */
@media (max-width: 430px) {
  body { font-size: 1.35rem; }
  .wf506-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .wf506-game-name { font-size: 1rem; }
  .wf506-section h2 { font-size: 1.55rem; }
  .wf506-slide img { height: 15rem; }
  .wf506-header-inner { padding: 0.5rem 0.8rem; }
  .wf506-brand-name { font-size: 1.35rem; }
  .wf506-btn { padding: 0.6rem 1rem; font-size: 1.15rem; }
  .wf506-foot-links { grid-template-columns: 1fr; }
  .wf506-bottomnav-btn span { font-size: 1rem; }
}
