/* ============================================================
 * Playtime Gaming - Core Stylesheet (layout-f8da.css)
 * All classes use the sf8d- prefix. Mobile-first, max-width 430px.
 * Palette: #2E4057 bg | #FDF5E6 text | #1E90FF primary
 *          #E0FFFF bright | #ADD8E6 soft | #999999 muted
 * ============================================================ */

:root {
  --sf8d-primary: #1E90FF;
  --sf8d-primary-deep: #0f6fc7;
  --sf8d-bg: #2E4057;
  --sf8d-bg-deep: #1f2d3d;
  --sf8d-bg-card: #364a61;
  --sf8d-bg-card-2: #2b3c52;
  --sf8d-text: #FDF5E6;
  --sf8d-text-bright: #E0FFFF;
  --sf8d-accent-soft: #ADD8E6;
  --sf8d-muted: #999999;
  --sf8d-gold: #FFD580;
  --sf8d-gold-deep: #FF9D2E;
  --sf8d-success: #3FBF7F;
  --sf8d-radius: 12px;
  --sf8d-radius-sm: 8px;
  --sf8d-radius-lg: 18px;
  --sf8d-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  --sf8d-shadow-glow: 0 0 18px rgba(30, 144, 255, 0.45);
  --sf8d-transition: 0.25s ease;
}

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

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

body {
  font-family: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  background-color: var(--sf8d-bg);
  color: var(--sf8d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sf8d-accent-soft); text-decoration: none; transition: color var(--sf8d-transition); }
a:hover { color: var(--sf8d-primary); }
h1, h2, h3 { color: var(--sf8d-text-bright); line-height: 1.3; }

/* ---------- Layout ---------- */
.sf8d-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.sf8d-wrapper { min-height: 100vh; padding-bottom: 8rem; background: var(--sf8d-bg); }
main.sf8d-main { padding-top: 5.6rem; }

/* ---------- Header ---------- */
.sf8d-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; z-index: 1000;
  background: linear-gradient(180deg, #1f2d3d 0%, #2E4057 100%);
  border-bottom: 1px solid rgba(30, 144, 255, 0.28);
  box-shadow: var(--sf8d-shadow);
}
.sf8d-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.2rem; height: 5.6rem;
}
.sf8d-logo { display: flex; align-items: center; gap: 0.6rem; }
.sf8d-logo-icon {
  width: 3rem; height: 3rem; border-radius: 0.8rem; object-fit: cover;
  box-shadow: var(--sf8d-shadow-glow); border: 1px solid rgba(173, 216, 230, 0.35);
}
.sf8d-logo-name { font-size: 1.55rem; font-weight: 800; color: var(--sf8d-text-bright); letter-spacing: 0.01em; }
.sf8d-logo-name span { color: var(--sf8d-primary); }
.sf8d-header-actions { display: flex; align-items: center; gap: 0.5rem; }

/* ---------- Buttons ---------- */
.sf8d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.7rem 1.2rem; border: none; border-radius: 2rem;
  font-size: 1.25rem; font-weight: 700; cursor: pointer; min-height: 3.6rem; line-height: 1;
  transition: transform var(--sf8d-transition), box-shadow var(--sf8d-transition), background var(--sf8d-transition);
}
.sf8d-btn:active { transform: scale(0.95); }
.sf8d-btn-register {
  background: linear-gradient(135deg, #FFD580 0%, #FF9D2E 100%);
  color: #1f2d3d; box-shadow: 0 4px 12px rgba(255, 157, 46, 0.4);
}
.sf8d-btn-login {
  background: linear-gradient(135deg, #1E90FF 0%, #0f6fc7 100%);
  color: #fff; box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}
.sf8d-btn-sm { padding: 0.55rem 0.9rem; font-size: 1.15rem; min-height: 3.2rem; }
.sf8d-menu-btn {
  width: 3.6rem; height: 3.6rem; border: 1px solid rgba(173, 216, 230, 0.3);
  background: transparent; color: var(--sf8d-accent-soft); border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.8rem;
}
.sf8d-cta-band {
  display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; margin: 1.6rem 0;
}
.sf8d-link-bold { color: var(--sf8d-gold); font-weight: 700; }
.sf8d-link-bold:hover { color: var(--sf8d-primary); text-decoration: underline; }

/* ---------- Mobile drawer menu ---------- */
.sf8d-menu-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55);
  z-index: 1500; opacity: 0; visibility: hidden; transition: opacity var(--sf8d-transition);
}
.sf8d-menu-overlay.sf8d-active { opacity: 1; visibility: visible; }
.sf8d-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px; height: 100vh;
  background: var(--sf8d-bg-deep); z-index: 9999; transition: right 0.3s ease;
  padding: 1.5rem 1.2rem; overflow-y: auto; box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}
.sf8d-mobile-menu.sf8d-menu-open { right: 0; }
.sf8d-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.sf8d-menu-title { font-size: 1.6rem; color: var(--sf8d-text-bright); font-weight: 800; }
.sf8d-menu-close {
  width: 3.2rem; height: 3.2rem; border: 1px solid rgba(173,216,230,0.3); background: transparent;
  color: var(--sf8d-accent-soft); border-radius: 0.6rem; font-size: 1.6rem; cursor: pointer;
}
.sf8d-menu-section-label {
  font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sf8d-primary); margin: 1.2rem 0 0.5rem; font-weight: 700;
}
.sf8d-menu-list { list-style: none; }
.sf8d-menu-item {
  display: flex; align-items: center; gap: 0.8rem; padding: 1rem 0.6rem;
  border-bottom: 1px solid rgba(173, 216, 230, 0.12); color: var(--sf8d-text); font-size: 1.35rem;
}
.sf8d-menu-item i { color: var(--sf8d-gold); width: 2rem; text-align: center; }
.sf8d-menu-item:hover { background: rgba(30, 144, 255, 0.1); color: var(--sf8d-text-bright); }

/* ---------- Carousel ---------- */
.sf8d-carousel { position: relative; margin: 1rem 0 0.4rem; border-radius: var(--sf8d-radius-lg); overflow: hidden; }
.sf8d-slides { position: relative; }
.sf8d-slide {
  position: relative; display: none; cursor: pointer;
}
.sf8d-slide.sf8d-slide-active { display: block; }
.sf8d-slide img { width: 100%; height: 17rem; object-fit: cover; }
.sf8d-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(31, 45, 61, 0.92));
  color: var(--sf8d-text-bright);
}
.sf8d-slide-cap h3 { font-size: 1.5rem; margin-bottom: 0.2rem; }
.sf8d-slide-cap p { font-size: 1.1rem; color: var(--sf8d-accent-soft); }
.sf8d-dots { display: flex; gap: 0.5rem; justify-content: center; padding: 0.6rem 0; }
.sf8d-dot {
  width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(173, 216, 230, 0.35);
  border: none; cursor: pointer; transition: background var(--sf8d-transition);
}
.sf8d-dot.sf8d-dot-active { background: var(--sf8d-primary); }

/* ---------- Sections ---------- */
.sf8d-section { padding: 1.6rem 0; }
.sf8d-section-head { text-align: center; margin-bottom: 1.2rem; }
.sf8d-section-title { font-size: 1.7rem; font-weight: 800; }
.sf8d-section-title .sf8d-hl { color: var(--sf8d-primary); }
.sf8d-section-sub { font-size: 1.2rem; color: var(--sf8d-muted); margin-top: 0.3rem; }

/* ---------- Hero / intro ---------- */
.sf8d-hero { padding: 1rem 0 0.4rem; text-align: center; }
.sf8d-hero h1 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.sf8d-hero p { color: var(--sf8d-accent-soft); font-size: 1.3rem; }

/* ---------- Game grid ---------- */
.sf8d-game-cat { margin: 1.4rem 0; }
.sf8d-cat-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.sf8d-cat-icon {
  width: 3rem; height: 3rem; border-radius: 0.7rem; display: flex; align-items: center;
  justify-content: center; background: rgba(30, 144, 255, 0.15); color: var(--sf8d-gold); font-size: 1.6rem;
}
.sf8d-cat-title { font-size: 1.45rem; color: var(--sf8d-text-bright); font-weight: 700; }
.sf8d-cat-title small { color: var(--sf8d-muted); font-weight: 400; font-size: 1.1rem; }
.sf8d-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.sf8d-game-card {
  background: var(--sf8d-bg-card); border-radius: var(--sf8d-radius-sm); overflow: hidden;
  cursor: pointer; border: 1px solid rgba(173, 216, 230, 0.1);
  transition: transform var(--sf8d-transition), box-shadow var(--sf8d-transition), border-color var(--sf8d-transition);
}
.sf8d-game-card:hover { transform: translateY(-3px); border-color: rgba(30, 144, 255, 0.5); box-shadow: var(--sf8d-shadow); }
.sf8d-game-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.sf8d-game-name {
  font-size: 1.05rem; text-align: center; padding: 0.4rem 0.3rem; color: var(--sf8d-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Cards / features / grid ---------- */
.sf8d-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.sf8d-card {
  background: var(--sf8d-bg-card); border-radius: var(--sf8d-radius); padding: 1.1rem;
  border: 1px solid rgba(30, 144, 255, 0.12);
}
.sf8d-card i { color: var(--sf8d-gold); font-size: 1.8rem; margin-bottom: 0.4rem; }
.sf8d-card h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.sf8d-card p { font-size: 1.1rem; color: var(--sf8d-accent-soft); line-height: 1.45rem; }
.sf8d-feature-row {
  display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.8rem 0;
  border-bottom: 1px solid rgba(173, 216, 230, 0.1);
}
.sf8d-feature-row:last-child { border-bottom: none; }
.sf8d-feature-row i { color: var(--sf8d-primary); font-size: 1.7rem; flex-shrink: 0; margin-top: 0.2rem; }
.sf8d-feature-row p { font-size: 1.2rem; }

/* ---------- RTP bars ---------- */
.sf8d-rtp-row { padding: 0.5rem 0; }
.sf8d-rtp-top { display: flex; justify-content: space-between; font-size: 1.15rem; margin-bottom: 0.3rem; }
.sf8d-rtp-top span:last-child { color: var(--sf8d-gold); font-weight: 700; }
.sf8d-rtp-track { height: 0.7rem; background: var(--sf8d-bg-deep); border-radius: 1rem; overflow: hidden; }
.sf8d-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--sf8d-primary), var(--sf8d-gold)); border-radius: 1rem; }

/* ---------- Steps ---------- */
.sf8d-steps { list-style: none; counter-reset: step; }
.sf8d-step-item {
  position: relative; padding: 0.7rem 0 0.7rem 3.4rem; counter-increment: step; border-bottom: 1px solid rgba(173,216,230,0.1);
}
.sf8d-step-item::before {
  content: counter(step); position: absolute; left: 0; top: 0.6rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--sf8d-primary);
  color: #fff; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
.sf8d-step-item h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.sf8d-step-item p { font-size: 1.1rem; color: var(--sf8d-accent-soft); }

/* ---------- Testimonials ---------- */
.sf8d-testi {
  background: var(--sf8d-bg-card-2); border-radius: var(--sf8d-radius); padding: 1rem;
  margin-bottom: 0.8rem; border-left: 3px solid var(--sf8d-gold);
}
.sf8d-testi-stars { color: var(--sf8d-gold); font-size: 1.1rem; margin-bottom: 0.3rem; }
.sf8d-testi p { font-size: 1.15rem; }
.sf8d-testi-author { font-size: 1.05rem; color: var(--sf8d-muted); margin-top: 0.3rem; }

/* ---------- Winners / payments ---------- */
.sf8d-winner-row {
  display: flex; justify-content: space-between; align-items: center; padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(173, 216, 230, 0.15); font-size: 1.15rem;
}
.sf8d-winner-row:last-child { border-bottom: none; }
.sf8d-winner-name { color: var(--sf8d-text-bright); font-weight: 600; }
.sf8d-winner-amt { color: var(--sf8d-success); font-weight: 700; }
.sf8d-pay-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
.sf8d-pay-item {
  background: var(--sf8d-bg-card); border-radius: var(--sf8d-radius-sm); padding: 0.6rem 1rem;
  font-size: 1.1rem; color: var(--sf8d-accent-soft); border: 1px solid rgba(173,216,230,0.15);
  display: flex; align-items: center; gap: 0.4rem;
}
.sf8d-pay-item i { color: var(--sf8d-primary); }

/* ---------- FAQ ---------- */
.sf8d-faq-item { background: var(--sf8d-bg-card); border-radius: var(--sf8d-radius-sm); margin-bottom: 0.6rem; overflow: hidden; }
.sf8d-faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--sf8d-text-bright);
  font-size: 1.25rem; font-weight: 600; padding: 1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 0.6rem;
}
.sf8d-faq-q i { color: var(--sf8d-primary); transition: transform var(--sf8d-transition); }
.sf8d-faq-item.sf8d-faq-open .sf8d-faq-q i { transform: rotate(180deg); }
.sf8d-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1rem; color: var(--sf8d-accent-soft); font-size: 1.15rem; }
.sf8d-faq-item.sf8d-faq-open .sf8d-faq-a { max-height: 30rem; padding: 0 1rem 1rem; }

/* ---------- Promo / app banner ---------- */
.sf8d-app-band {
  background: linear-gradient(135deg, #0f6fc7 0%, #2E4057 100%);
  border-radius: var(--sf8d-radius-lg); padding: 1.3rem; text-align: center; margin: 1.2rem 0;
  border: 1px solid rgba(30, 144, 255, 0.3);
}
.sf8d-app-band h3 { color: var(--sf8d-gold); font-size: 1.5rem; margin-bottom: 0.3rem; }
.sf8d-app-band p { font-size: 1.15rem; color: var(--sf8d-accent-soft); margin-bottom: 0.8rem; }
.sf8d-trust-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 0.6rem; }
.sf8d-trust-pill {
  background: rgba(63, 191, 127, 0.15); color: var(--sf8d-success); border: 1px solid rgba(63,191,127,0.3);
  border-radius: 1rem; padding: 0.3rem 0.8rem; font-size: 1.05rem; display: flex; align-items: center; gap: 0.3rem;
}

/* ---------- Footer ---------- */
.sf8d-footer { background: var(--sf8d-bg-deep); padding: 1.8rem 1.2rem 1.2rem; margin-top: 1.2rem; border-top: 2px solid var(--sf8d-primary); }
.sf8d-footer-brand p { font-size: 1.15rem; color: var(--sf8d-accent-soft); margin: 0.6rem 0 1rem; line-height: 1.6rem; }
.sf8d-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.sf8d-footer-promos button { flex: 1 1 45%; }
.sf8d-footer-col-title { font-size: 1.2rem; color: var(--sf8d-text-bright); font-weight: 700; margin: 0.8rem 0 0.4rem; }
.sf8d-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 0.8rem; }
.sf8d-footer-links a { font-size: 1.1rem; color: var(--sf8d-accent-soft); }
.sf8d-footer-links a:hover { color: var(--sf8d-primary); }
.sf8d-copyright { text-align: center; font-size: 1.05rem; color: var(--sf8d-muted); margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(173,216,230,0.12); }

/* ---------- Bottom nav ---------- */
.sf8d-bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: 6.2rem; z-index: 1000;
  background: linear-gradient(180deg, #364a61 0%, #1f2d3d 100%);
  border-top: 1px solid rgba(30, 144, 255, 0.3);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}
.sf8d-navbtn {
  flex: 1; height: 100%; background: none; border: none; color: var(--sf8d-accent-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  cursor: pointer; position: relative; min-width: 60px; transition: color var(--sf8d-transition);
}
.sf8d-navbtn .sf8d-nav-icon { font-size: 2.2rem; line-height: 1; }
.sf8d-navbtn .sf8d-nav-label { font-size: 1rem; line-height: 1; }
.sf8d-navbtn:active { transform: scale(0.92); }
.sf8d-navbtn.sf8d-navbtn-active { color: var(--sf8d-gold); }
.sf8d-navbtn.sf8d-navbtn-active::before {
  content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px;
  background: var(--sf8d-gold); border-radius: 0 0 0.4rem 0.4rem;
}
.sf8d-nav-badge {
  position: absolute; top: 0.6rem; right: 28%; min-width: 1.5rem; height: 1.5rem; padding: 0 0.3rem;
  background: var(--sf8d-gold-deep); color: #fff; font-size: 0.95rem; font-weight: 700;
  border-radius: 1rem; display: flex; align-items: center; justify-content: center;
}

/* ---------- Reveal animation ---------- */
.sf8d-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.sf8d-reveal.sf8d-revealed { opacity: 1; transform: translateY(0); }

/* ---------- Desktop: hide bottom nav, widen container ---------- */
@media (min-width: 769px) {
  .sf8d-bottom-nav { display: none; }
  .sf8d-wrapper { padding-bottom: 2rem; }
}

/* ---------- Small screens tighten ---------- */
@media (max-width: 360px) {
  .sf8d-game-grid { grid-template-columns: repeat(2, 1fr); }
  .sf8d-card-grid { grid-template-columns: 1fr; }
  .sf8d-hero h1 { font-size: 1.7rem; }
}
