/* ============================================================
 * fairplay gaming - theme.css
 * Palette: #EEE8AA | #CED4DA | #FFCC33 | #2C2C2C | #FF0000 | #FAFAD2
 * All custom classes use the g516- prefix for isolation.
 * Mobile-first; root font-size 62.5% => 1rem = 10px.
 * ============================================================ */

:root {
  --g516-bg: #2C2C2C;
  --g516-bg-soft: #1c1c1c;
  --g516-bg-card: #3a3a3a;
  --g516-text: #FAFAD2;
  --g516-text-soft: #EEE8AA;
  --g516-muted: #CED4DA;
  --g516-primary: #FFCC33;
  --g516-primary-dark: #d9a800;
  --g516-accent: #FF0000;
  --g516-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --g516-radius: 10px;
  --g516-radius-lg: 16px;
  --g516-max-width: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Helvetica Neue", "Segoe UI", "Roboto", "Arial", sans-serif;
  background: var(--g516-bg);
  color: var(--g516-text);
  line-height: 1.5rem; font-size: 1.5rem;
  max-width: var(--g516-max-width);
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--g516-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

.g516-hidden { display: none !important; }
.g516-container { width: 100%; max-width: var(--g516-max-width); margin: 0 auto; padding: 0 1.2rem; }

/* ---------- Header ---------- */
.g516-header {
  position: fixed; top: 0; left: 0; right: 0; margin: 0 auto;
  max-width: var(--g516-max-width);
  height: 5.6rem;
  background: linear-gradient(180deg, #1c1c1c 0%, #2C2C2C 100%);
  border-bottom: 2px solid var(--g516-primary);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; z-index: 1000;
  box-shadow: var(--g516-shadow);
}
.g516-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--g516-text); }
.g516-logo img { width: 3rem; height: 3rem; border-radius: 6px; }
.g516-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--g516-primary); letter-spacing: 0.3px; }
.g516-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.g516-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.4rem; padding: 0 1.2rem;
  border: none; border-radius: 999px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  text-decoration: none; white-space: nowrap;
}
.g516-btn:hover { text-decoration: none; transform: translateY(-1px); }
.g516-btn-primary { background: linear-gradient(135deg, var(--g516-accent) 0%, #b30000 100%); color: #fff; box-shadow: 0 3px 8px rgba(255, 0, 0, 0.35); }
.g516-btn-secondary { background: linear-gradient(135deg, var(--g516-primary) 0%, #e6b800 100%); color: #2C2C2C; box-shadow: 0 3px 8px rgba(255, 204, 51, 0.3); }
.g516-btn-ghost { background: transparent; color: var(--g516-text); border: 1px solid var(--g516-muted); min-height: 3.2rem; padding: 0 1rem; }
.g516-menu-btn { background: transparent; border: none; color: var(--g516-text); font-size: 2.2rem; width: 3.2rem; height: 3.2rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Mobile menu ---------- */
.g516-menu-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); opacity: 0; visibility: hidden; transition: opacity 0.25s ease; z-index: 9998; }
.g516-backdrop-show { opacity: 1; visibility: visible; }
.g516-mobile-menu {
  position: fixed; top: 0; right: -85%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--g516-bg-soft);
  padding: 6rem 1.5rem 2rem;
  transition: right 0.3s ease;
  z-index: 9999; overflow-y: auto;
  border-left: 2px solid var(--g516-primary);
}
.g516-menu-open { right: 0; }
.g516-menu-close { position: absolute; top: 1.2rem; right: 1.2rem; background: transparent; border: none; color: var(--g516-text); font-size: 2.4rem; cursor: pointer; }
.g516-menu-title { color: var(--g516-primary); font-size: 1.4rem; font-weight: 700; margin: 1rem 0 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.g516-menu-list { list-style: none; }
.g516-menu-list li { border-bottom: 1px solid rgba(206, 212, 218, 0.15); }
.g516-menu-list a { display: block; padding: 1rem 0.4rem; color: var(--g516-text); font-size: 1.4rem; }
.g516-menu-list a:hover { color: var(--g516-primary); text-decoration: none; }

/* ---------- Main ---------- */
.g516-main { padding-top: 5.6rem; padding-bottom: 7.5rem; min-height: 100vh; }

/* ---------- Carousel ---------- */
.g516-carousel { position: relative; width: 100%; overflow: hidden; background: #111; border-radius: 0 0 var(--g516-radius-lg) var(--g516-radius-lg); }
.g516-slide { display: none; position: relative; width: 100%; }
.g516-slide-active { display: block; }
.g516-slide img { width: 100%; height: 200px; object-fit: cover; }
.g516-slide-overlay { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(0deg, rgba(0,0,0,0.85) 30%, transparent 100%); padding: 1.2rem; color: #fff; }
.g516-slide-title { font-size: 1.7rem; font-weight: 800; color: var(--g516-primary); margin-bottom: 0.3rem; }
.g516-slide-text { font-size: 1.2rem; color: var(--g516-text-soft); margin-bottom: 0.6rem; }
.g516-carousel-dots { position: absolute; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; z-index: 2; }
.g516-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(250, 250, 210, 0.4); border: none; cursor: pointer; }
.g516-dot-active { background: var(--g516-primary); width: 18px; border-radius: 4px; }

/* ---------- Sections & typography ---------- */
.g516-section { padding: 2rem 1.2rem; }
.g516-section-alt { background: var(--g516-bg-soft); }
.g516-h1 { font-size: 2.4rem; font-weight: 900; line-height: 1.25; color: var(--g516-text); margin-bottom: 0.8rem; }
.g516-h1 span { color: var(--g516-primary); }
.g516-h2 { font-size: 1.9rem; font-weight: 800; color: var(--g516-primary); margin-bottom: 0.8rem; border-left: 4px solid var(--g516-accent); padding-left: 0.8rem; }
.g516-h3 { font-size: 1.5rem; font-weight: 700; color: var(--g516-text-soft); margin: 1rem 0 0.5rem; }
.g516-text-soft { color: var(--g516-text-soft); }
.g516-text-muted { color: var(--g516-muted); }
.g516-p { margin-bottom: 0.9rem; color: var(--g516-text); }
.g516-p b, .g516-link-inline { color: var(--g516-primary); font-weight: 700; }
.g516-link-inline:hover { color: var(--g516-accent); text-decoration: underline; }
.g516-lead { font-size: 1.5rem; color: var(--g516-text-soft); margin-bottom: 1rem; }

/* ---------- Filter bar ---------- */
.g516-filter-bar { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.6rem 1.2rem; background: var(--g516-bg-soft); position: sticky; top: 5.6rem; z-index: 5; scrollbar-width: none; }
.g516-filter-bar::-webkit-scrollbar { display: none; }
.g516-filter-btn { flex: 0 0 auto; padding: 0.7rem 1.2rem; border-radius: 999px; border: 1px solid var(--g516-muted); background: transparent; color: var(--g516-text); font-size: 1.3rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.g516-filter-active { background: var(--g516-primary); color: #2C2C2C; border-color: var(--g516-primary); }

/* ---------- Games grid ---------- */
.g516-game-group { padding: 1rem 1.2rem 2rem; }
.g516-game-group-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.g516-game-group-header h2 { font-size: 1.6rem; color: var(--g516-primary); margin: 0; border: none; padding: 0; }
.g516-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.g516-game-card { background: var(--g516-bg-card); border-radius: var(--g516-radius); overflow: hidden; text-align: center; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease; border: 1px solid rgba(255, 204, 51, 0.08); }
.g516-game-card:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(255, 204, 51, 0.25); border-color: var(--g516-primary); }
.g516-game-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #111; }
.g516-game-name { padding: 0.4rem 0.3rem; font-size: 1.1rem; color: var(--g516-text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }

/* ---------- Cards / modules ---------- */
.g516-card { background: var(--g516-bg-card); border-radius: var(--g516-radius-lg); padding: 1.5rem; margin-bottom: 1rem; border: 1px solid rgba(255, 204, 51, 0.12); box-shadow: var(--g516-shadow); }
.g516-card-title { color: var(--g516-primary); font-size: 1.6rem; font-weight: 800; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem; }
.g516-card-title i { color: var(--g516-accent); }
.g516-feature-list { list-style: none; }
.g516-feature-list li { padding: 0.6rem 0 0.6rem 2.2rem; position: relative; color: var(--g516-text); border-bottom: 1px dashed rgba(206, 212, 218, 0.18); }
.g516-feature-list li:last-child { border-bottom: none; }
.g516-feature-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--g516-primary); position: absolute; left: 0; top: 0.6rem; }

/* ---------- Steps ---------- */
.g516-steps { counter-reset: step; list-style: none; }
.g516-steps li { position: relative; padding: 0.7rem 0 0.7rem 3.4rem; margin-bottom: 0.6rem; background: rgba(255, 204, 51, 0.05); border-radius: var(--g516-radius); }
.g516-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0.6rem; top: 0.6rem; width: 2.2rem; height: 2.2rem; background: var(--g516-primary); color: #2C2C2C; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; }

/* ---------- FAQ ---------- */
.g516-faq-item { background: var(--g516-bg-card); border-radius: var(--g516-radius); margin-bottom: 0.7rem; overflow: hidden; border: 1px solid rgba(206, 212, 218, 0.12); }
.g516-faq-question { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem; font-weight: 700; color: var(--g516-text); cursor: pointer; font-size: 1.4rem; }
.g516-faq-question i { color: var(--g516-primary); transition: transform 0.2s ease; }
.g516-faq-answer { max-height: 0; overflow: hidden; padding: 0 1.2rem; color: var(--g516-text-soft); transition: max-height 0.3s ease, padding 0.3s ease; }
.g516-faq-open .g516-faq-answer { max-height: 360px; padding: 0 1.2rem 1.2rem; }
.g516-faq-open .g516-faq-question i { transform: rotate(45deg); }

/* ---------- Testimonials ---------- */
.g516-testi { background: var(--g516-bg-card); padding: 1.2rem; border-radius: var(--g516-radius-lg); margin-bottom: 0.8rem; border-left: 4px solid var(--g516-primary); }
.g516-testi-stars { color: var(--g516-primary); margin-bottom: 0.4rem; font-size: 1.1rem; }
.g516-testi-text { color: var(--g516-text); font-style: italic; margin-bottom: 0.5rem; }
.g516-testi-author { color: var(--g516-muted); font-size: 1.2rem; font-weight: 600; }

/* ---------- Chips / winners / RTP ---------- */
.g516-chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g516-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--g516-bg-card); padding: 0.6rem 1rem; border-radius: 999px; font-size: 1.2rem; color: var(--g516-text-soft); border: 1px solid rgba(255, 204, 51, 0.18); }
.g516-chip i { color: var(--g516-primary); }
.g516-winner-row { display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0; border-bottom: 1px dashed rgba(206, 212, 218, 0.18); }
.g516-winner-row:last-child { border: none; }
.g516-winner-name { color: var(--g516-text); font-weight: 700; }
.g516-winner-game { color: var(--g516-muted); font-size: 1.2rem; }
.g516-winner-amount { color: var(--g516-primary); font-weight: 800; }
.g516-rtp-row { margin-bottom: 0.8rem; }
.g516-rtp-head { display: flex; justify-content: space-between; font-size: 1.2rem; margin-bottom: 0.3rem; }
.g516-rtp-bar { height: 0.7rem; background: #111; border-radius: 999px; overflow: hidden; }
.g516-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--g516-primary), var(--g516-accent)); border-radius: 999px; }

/* ---------- Promo banner ---------- */
.g516-promo { background: linear-gradient(135deg, var(--g516-accent) 0%, #7a0000 100%); color: #fff; border-radius: var(--g516-radius-lg); padding: 1.4rem; text-align: center; margin: 1rem 0; }
.g516-promo h3 { color: var(--g516-primary); font-size: 1.8rem; margin-bottom: 0.4rem; }
.g516-promo p { color: #fff; margin-bottom: 1rem; }

/* ---------- Footer ---------- */
.g516-footer { background: var(--g516-bg-soft); padding: 2rem 1.2rem 6.5rem; border-top: 2px solid var(--g516-primary); }
.g516-footer h4 { color: var(--g516-primary); font-size: 1.4rem; margin: 1rem 0 0.5rem; text-transform: uppercase; }
.g516-footer p { color: var(--g516-text-soft); font-size: 1.3rem; margin-bottom: 0.6rem; }
.g516-footer-links { display: flex; flex-direction: column; gap: 0.3rem; }
.g516-footer-links a { color: var(--g516-text); font-size: 1.3rem; }
.g516-footer-links a:hover { color: var(--g516-primary); }
.g516-footer-buttons { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.g516-copyright { color: var(--g516-muted); font-size: 1.1rem; text-align: center; margin-top: 1rem; }

/* ---------- Bottom nav (mobile only) ---------- */
.g516-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; margin: 0 auto;
  max-width: var(--g516-max-width);
  height: 6rem;
  background: linear-gradient(180deg, #1c1c1c 0%, #000 100%);
  border-top: 2px solid var(--g516-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
}
.g516-bottom-nav-btn { flex: 1; min-width: 60px; min-height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; color: var(--g516-muted); background: transparent; border: none; text-decoration: none; transition: transform 0.15s ease, color 0.2s ease; cursor: pointer; }
.g516-bottom-nav-btn:hover { text-decoration: none; transform: translateY(-2px); color: var(--g516-primary); }
.g516-bottom-nav-btn i, .g516-bottom-nav-btn span.material-icons, .g516-bottom-nav-btn ion-icon { font-size: 2.2rem; }
.g516-bottom-nav-btn span.g516-nav-label { font-size: 1rem; font-weight: 600; letter-spacing: 0.2px; }
.g516-bottom-nav-btn.g516-nav-promo { color: var(--g516-primary); }
.g516-bottom-nav-btn.g516-nav-promo i, .g516-bottom-nav-btn.g516-nav-promo .material-icons { color: var(--g516-accent); }
.g516-nav-current { color: var(--g516-primary) !important; }
.g516-nav-current i, .g516-nav-current .material-icons { color: var(--g516-primary) !important; }

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  body { max-width: 430px; box-shadow: 0 0 30px rgba(0, 0, 0, 0.4); }
  .g516-bottom-nav { display: none; }
  .g516-footer { padding-bottom: 2rem; }
  .g516-main { padding-bottom: 2rem; }
}
@media (max-width: 360px) {
  .g516-game-grid { grid-template-columns: repeat(2, 1fr); }
  .g516-h1 { font-size: 2rem; }
  .g516-logo-text { font-size: 1.3rem; }
}
