/* =========================================================
 * 234win 444 - layout.css
 * Mobile-first casino styles. Max mobile width: 430px.
 * All custom classes use the s5fc- prefix.
 * Color palette:
 *   #0E1621 dark background
 *   #FFAA00 primary gold
 *   #FF5722 accent orange
 *   #C0C0C0 muted silver text
 *   #FFCCDB soft pink highlight
 * =======================================================*/

:root {
  --s5fc-bg: #0E1621;
  --s5fc-bg-soft: #16202e;
  --s5fc-bg-card: #1c2738;
  --s5fc-primary: #FFAA00;
  --s5fc-accent: #FF5722;
  --s5fc-text: #C0C0C0;
  --s5fc-text-bright: #ffffff;
  --s5fc-pink: #FFCCDB;
  --s5fc-border: rgba(255, 170, 0, 0.18);
  --s5fc-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --s5fc-radius: 14px;
  --s5fc-radius-lg: 22px;
  --s5fc-header-h: 58px;
  --s5fc-bottom-h: 64px;
}

* { box-sizing: border-box; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: linear-gradient(180deg, #0E1621 0%, #111c2c 60%, #0b1320 100%);
  color: var(--s5fc-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--s5fc-primary); text-decoration: none; }
a:hover { color: var(--s5fc-pink); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--s5fc-text-bright); margin: 0 0 .6em; line-height: 1.25; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1em; }

/* ---------- Layout helpers ---------- */
.s5fc-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 14px; }
.s5fc-wrapper { padding-top: calc(var(--s5fc-header-h) + 8px); padding-bottom: 90px; }
.s5fc-section { padding: 22px 0; }
.s5fc-section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.8rem; color: var(--s5fc-text-bright);
  margin-bottom: 14px;
}
.s5fc-section-title i { color: var(--s5fc-primary); }
.s5fc-section-title .s5fc-pill {
  margin-left: auto; font-size: 1.2rem; color: #0E1621;
  background: var(--s5fc-primary); padding: 3px 10px; border-radius: 999px; font-weight: 700;
}

/* ---------- Header ---------- */
.s5fc-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--s5fc-header-h);
  background: rgba(14, 22, 33, 0.96);
  border-bottom: 1px solid var(--s5fc-border);
  backdrop-filter: blur(10px);
  transition: box-shadow .25s ease;
}
.s5fc-header.s5fc-scrolled { box-shadow: 0 6px 18px rgba(0,0,0,0.45); }
.s5fc-header-inner {
  height: 100%; display: flex; align-items: center; gap: 10px;
  max-width: 430px; margin: 0 auto; padding: 0 12px;
}
.s5fc-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--s5fc-text-bright); }
.s5fc-logo img { width: 30px; height: 30px; border-radius: 8px; }
.s5fc-logo span { font-size: 1.55rem; letter-spacing: .3px; }
.s5fc-logo b { color: var(--s5fc-primary); }

.s5fc-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.s5fc-menu-btn {
  background: transparent; border: 1px solid var(--s5fc-border);
  color: var(--s5fc-text-bright); width: 38px; height: 38px;
  border-radius: 10px; display: grid; place-items: center;
  cursor: pointer; font-size: 1.8rem;
}

.s5fc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  font-size: 1.35rem; font-weight: 700; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, filter .2s ease;
  text-decoration: none; line-height: 1;
}
.s5fc-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.s5fc-btn-primary { background: linear-gradient(135deg, #FFAA00, #FF5722); color: #0E1621; }
.s5fc-btn-ghost { background: transparent; color: var(--s5fc-text-bright); border-color: var(--s5fc-primary); }
.s5fc-btn-block { display: flex; width: 100%; padding: 12px; font-size: 1.5rem; }

/* ---------- Mobile slide-down menu ---------- */
.s5fc-mobile-menu {
  position: fixed; top: var(--s5fc-header-h); left: 0; right: 0; z-index: 9999;
  background: #0b1320; border-bottom: 1px solid var(--s5fc-border);
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  box-shadow: var(--s5fc-shadow);
}
.s5fc-mobile-menu.s5fc-menu-open { max-height: 80vh; overflow-y: auto; }
.s5fc-mobile-menu-inner { padding: 10px 14px 20px; display: grid; gap: 6px; }
.s5fc-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; color: var(--s5fc-text-bright);
  border-radius: 10px; background: var(--s5fc-bg-card);
  border: 1px solid rgba(255,255,255,0.05);
}
.s5fc-mobile-menu a:hover { background: #243046; color: var(--s5fc-primary); }
.s5fc-mobile-menu a i { color: var(--s5fc-primary); width: 22px; text-align: center; }
.s5fc-menu-promo-row { display: flex; gap: 8px; margin-top: 8px; }
.s5fc-menu-promo-row .s5fc-btn { flex: 1; }

/* ---------- Hero carousel ---------- */
.s5fc-carousel { position: relative; border-radius: var(--s5fc-radius-lg); overflow: hidden; box-shadow: var(--s5fc-shadow); }
.s5fc-slide {
  position: relative; display: none; cursor: pointer;
}
.s5fc-slide.s5fc-active { display: block; }
.s5fc-slide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.s5fc-slide-overlay {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: rgba(14, 22, 33, 0.78); border-radius: var(--s5fc-radius);
  padding: 10px 14px; color: var(--s5fc-text-bright);
}
.s5fc-slide-overlay b { color: var(--s5fc-primary); }
.s5fc-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.s5fc-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; border: 0; padding: 0; }
.s5fc-dot.s5fc-active { background: var(--s5fc-primary); width: 22px; border-radius: 999px; }

/* ---------- Category chips ---------- */
.s5fc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.s5fc-chips::-webkit-scrollbar { display: none; }
.s5fc-chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: var(--s5fc-bg-card); border: 1px solid var(--s5fc-border);
  color: var(--s5fc-text-bright); font-size: 1.3rem; font-weight: 600; cursor: pointer;
}
.s5fc-chip.s5fc-active { background: linear-gradient(135deg, #FFAA00, #FF5722); color: #0E1621; }

/* ---------- Game grid ---------- */
.s5fc-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.s5fc-game-card {
  background: var(--s5fc-bg-card); border-radius: var(--s5fc-radius);
  overflow: hidden; text-align: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.04); transition: transform .12s ease, box-shadow .2s ease;
  display: block; color: var(--s5fc-text);
}
.s5fc-game-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(255,170,0,.18); border-color: var(--s5fc-primary); }
.s5fc-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0b1320; }
.s5fc-game-name { display: block; padding: 6px 4px 8px; font-size: 1.15rem; color: var(--s5fc-text-bright); line-height: 1.2; min-height: 32px; }

/* ---------- Info / feature cards ---------- */
.s5fc-card {
  background: var(--s5fc-bg-card); border: 1px solid var(--s5fc-border);
  border-radius: var(--s5fc-radius); padding: 14px; margin-bottom: 12px;
}
.s5fc-card h3 { color: var(--s5fc-primary); }
.s5fc-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.s5fc-mini-card {
  background: var(--s5fc-bg-soft); border-radius: 12px; padding: 12px; text-align: center;
  border: 1px solid rgba(255,255,255,.04);
}
.s5fc-mini-card i { color: var(--s5fc-accent); font-size: 2.2rem; }
.s5fc-mini-card b { display: block; color: var(--s5fc-text-bright); margin-top: 4px; font-size: 1.3rem; }
.s5fc-mini-card span { font-size: 1.15rem; color: var(--s5fc-text); }

/* ---------- RTP table ---------- */
.s5fc-rtp-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.s5fc-rtp-row:last-child { border-bottom: 0; }
.s5fc-rtp-name { flex: 1; color: var(--s5fc-text-bright); font-weight: 600; }
.s5fc-rtp-bar { flex: 2; height: 8px; background: rgba(255,255,255,.07); border-radius: 999px; overflow: hidden; }
.s5fc-rtp-fill { display: block; height: 100%; background: linear-gradient(90deg, #FF5722, #FFAA00); border-radius: 999px; }
.s5fc-rtp-val { width: 56px; text-align: right; color: var(--s5fc-primary); font-weight: 700; }

/* ---------- Testimonials ---------- */
.s5fc-testimonials { display: grid; gap: 10px; }
.s5fc-testimonial { background: var(--s5fc-bg-soft); border-radius: 12px; padding: 12px; border-left: 3px solid var(--s5fc-primary); }
.s5fc-testimonial b { color: var(--s5fc-primary); }
.s5fc-stars { color: #FFAA00; letter-spacing: 2px; }

/* ---------- Payment grid ---------- */
.s5fc-payment-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.s5fc-payment { background: var(--s5fc-bg-soft); border-radius: 10px; padding: 8px 4px; text-align: center; font-size: 1.1rem; color: var(--s5fc-text-bright); border: 1px solid rgba(255,255,255,.04); }
.s5fc-payment i { font-size: 1.8rem; color: var(--s5fc-primary); display: block; margin-bottom: 4px; }

/* ---------- Winners ticker ---------- */
.s5fc-winner {
  display: flex; align-items: center; gap: 10px;
  background: var(--s5fc-bg-soft); border-radius: 10px; padding: 8px 10px; margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,.04);
}
.s5fc-winner-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, #FFAA00, #FF5722); display: grid; place-items: center; color: #0E1621; font-weight: 800; }
.s5fc-winner-name { flex: 1; color: var(--s5fc-text-bright); }
.s5fc-winner-amount { color: var(--s5fc-primary); font-weight: 800; }

/* ---------- Steps list ---------- */
.s5fc-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.s5fc-steps li { position: relative; padding: 8px 0 8px 40px; color: var(--s5fc-text-bright); }
.s5fc-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 6px; width: 28px; height: 28px;
  background: linear-gradient(135deg, #FFAA00, #FF5722); color: #0E1621;
  border-radius: 50%; font-weight: 800; text-align: center; line-height: 28px;
}

/* ---------- Accordion ---------- */
.s5fc-accordion-item { background: var(--s5fc-bg-card); border: 1px solid var(--s5fc-border); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.s5fc-accordion-head { width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 14px; color: var(--s5fc-text-bright); font-size: 1.4rem; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.s5fc-accordion-head i { color: var(--s5fc-primary); transition: transform .2s ease; }
.s5fc-accordion-item.s5fc-open .s5fc-accordion-head i { transform: rotate(180deg); }
.s5fc-accordion-body { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 14px; }
.s5fc-accordion-item.s5fc-open .s5fc-accordion-body { max-height: 320px; padding: 0 14px 12px; }

/* ---------- CTA banner ---------- */
.s5fc-cta {
  background: radial-gradient(circle at 30% 20%, rgba(255,87,34,.4), transparent 60%),
              linear-gradient(135deg, #1a2738, #0E1621);
  border: 1px solid var(--s5fc-primary);
  border-radius: var(--s5fc-radius-lg); padding: 18px; text-align: center;
}
.s5fc-cta h2 { color: var(--s5fc-primary); }
.s5fc-cta p { color: var(--s5fc-text); margin-bottom: 14px; }

/* ---------- Inline promo links ---------- */
.s5fc-promo-link { color: var(--s5fc-primary); font-weight: 800; cursor: pointer; }
.s5fc-promo-link:hover { color: var(--s5fc-pink); text-decoration: underline; }

/* ---------- Footer ---------- */
.s5fc-footer { background: #0b1320; border-top: 1px solid var(--s5fc-border); padding: 22px 0 100px; }
.s5fc-footer-brand { color: var(--s5fc-text); font-size: 1.3rem; margin-bottom: 12px; }
.s5fc-footer-brand b { color: var(--s5fc-primary); }
.s5fc-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.s5fc-footer-links a { font-size: 1.25rem; color: var(--s5fc-text-bright); }
.s5fc-footer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.s5fc-footer-buttons .s5fc-btn { flex: 1 1 45%; }
.s5fc-footer-copy { color: var(--s5fc-text); font-size: 1.15rem; text-align: center; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.05); }

/* ---------- Bottom nav ---------- */
.s5fc-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--s5fc-bottom-h);
  background: linear-gradient(180deg, #142035, #0b1320);
  border-top: 1px solid var(--s5fc-border);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0,0,0,.35);
}
.s5fc-bottom-nav-link {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--s5fc-text); text-decoration: none; cursor: pointer;
  font-size: 1.05rem; gap: 2px; padding: 4px 0; transition: color .15s ease, transform .15s ease;
  background: transparent; border: 0;
}
.s5fc-bottom-nav-link i { font-size: 2.2rem; }
.s5fc-bottom-nav-link:hover { color: var(--s5fc-primary); }
.s5fc-bottom-nav-link.s5fc-current { color: var(--s5fc-primary); }
.s5fc-bottom-nav-link.s5fc-current i { transform: translateY(-1px) scale(1.05); }
.s5fc-bottom-nav-link.s5fc-promo i { color: var(--s5fc-accent); }

/* ---------- Back to top ---------- */
.s5fc-back-top {
  position: fixed; right: 14px; bottom: calc(var(--s5fc-bottom-h) + 12px); z-index: 999;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #FFAA00, #FF5722); color: #0E1621;
  border: 0; cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--s5fc-shadow);
}
.s5fc-back-top.s5fc-visible { opacity: 1; pointer-events: auto; }

/* ---------- Desktop layout ---------- */
@media (min-width: 769px) {
  body { background: #0b1320; }
  .s5fc-container { max-width: 960px; }
  .s5fc-bottom-nav { display: none; }
  .s5fc-footer { padding-bottom: 30px; }
  .s5fc-wrapper { padding-bottom: 30px; }
  .s5fc-game-grid { grid-template-columns: repeat(6, 1fr); }
  .s5fc-card-grid { grid-template-columns: repeat(4, 1fr); }
  .s5fc-payment-grid { grid-template-columns: repeat(8, 1fr); }
  .s5fc-header-inner { max-width: 960px; }
}

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

/* ---------- Utility ---------- */
.s5fc-text-center { text-align: center; }
.s5fc-text-primary { color: var(--s5fc-primary); }
.s5fc-text-accent { color: var(--s5fc-accent); }
.s5fc-text-bright { color: var(--s5fc-text-bright); }
.s5fc-mt-8 { margin-top: 8px; } .s5fc-mt-16 { margin-top: 16px; }
.s5fc-mb-0 { margin-bottom: 0; }
.s5fc-hidden { display: none !important; }
.s5fc-divider { height: 1px; background: rgba(255,255,255,.06); margin: 14px 0; border: 0; }
