/* =========================================================
   Bunny Gaming - layout.css
   All custom classes use the g5d5- prefix.
   Palette: #4A4A4A | #0D1117 | #EE82EE | #8B008B | #E65100 | #6C757D
   Mobile-first. Root font 62.5% => 1rem = 10px.
   ========================================================= */

:root {
  --g5d5-bg:        #0D1117;
  --g5d5-surface:   #161b24;
  --g5d5-surface2:  #1f2630;
  --g5d5-text:      #f5f6f8;
  --g5d5-muted:     #6C757D;
  --g5d5-primary:   #EE82EE;
  --g5d5-accent:    #8B008B;
  --g5d5-orange:    #E65100;
  --g5d5-grey:      #4A4A4A;
  --g5d5-radius:    14px;
  --g5d5-shadow:    0 6px 22px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--g5d5-bg);
  color: var(--g5d5-text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 62.5%;            /* 1rem = 10px */
  line-height: 1.5rem;
  overflow-x: hidden;
}

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

/* ===== Layout containers ===== */
.g5d5-wrapper {
  width: 100%;
  max-width: 430px;             /* required literal */
  margin: 0 auto;
  position: relative;
}

.g5d5-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main.g5d5-main { padding-bottom: 9rem; }   /* clearance for fixed bottom nav */

/* ===== Header ===== */
.g5d5-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0D1117 0%, #1a0d22 60%, #2a0f33 100%);
  border-bottom: 1px solid rgba(238,130,238,.25);
  max-width: 430px;
  margin: 0 auto;
}

.g5d5-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.6rem;
  padding: 0 1.2rem;
}

.g5d5-brand {
  display: flex; align-items: center; gap: .8rem;
  color: var(--g5d5-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.g5d5-brand .g5d5-logo {
  width: 3.2rem; height: 3.2rem; border-radius: 9px;
  background: linear-gradient(135deg, var(--g5d5-primary), var(--g5d5-accent));
  display: grid; place-items: center; color: #fff;
}
.g5d5-brand .g5d5-logo i { font-size: 2rem; }
.g5d5-brand span { background: linear-gradient(90deg,#EE82EE,#E65100); -webkit-background-clip: text; background-clip: text; color: transparent; }

.g5d5-header-actions { display: flex; align-items: center; gap: .6rem; }
.g5d5-menu-btn {
  background: transparent; border: 0; color: var(--g5d5-text);
  font-size: 2.2rem; cursor: pointer; padding: .4rem;
  min-width: 44px; min-height: 44px;
}

/* ===== Auth buttons ===== */
.g5d5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 4rem; padding: 0 1.4rem;
  border-radius: 999px;
  font-size: 1.4rem; font-weight: 700;
  border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  text-decoration: none;
}
.g5d5-btn:active { transform: scale(.96); }
.g5d5-btn-register {
  background: linear-gradient(90deg, var(--g5d5-orange), #ff8a3d);
  color: #fff;
  box-shadow: 0 4px 14px rgba(230,81,0,.45);
}
.g5d5-btn-login {
  background: linear-gradient(90deg, var(--g5d5-primary), var(--g5d5-accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(139,0,139,.45);
}
.g5d5-btn-block { display: flex; width: 100%; }

/* ===== Mobile expandable menu ===== */
.g5d5-mobile-menu {
  position: fixed;
  top: 5.6rem; left: 0; right: 0;
  background: var(--g5d5-surface);
  border-bottom: 1px solid rgba(238,130,238,.2);
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
  max-width: 430px; margin: 0 auto;
}
.g5d5-mobile-menu.g5d5-menu-open { max-height: 460px; }
.g5d5-mobile-menu a {
  display: block; padding: 1.4rem 1.6rem;
  color: var(--g5d5-text); font-size: 1.45rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.g5d5-mobile-menu a:active { background: var(--g5d5-surface2); }

/* ===== Hero / Carousel ===== */
.g5d5-hero {
  margin-top: 5.6rem;
  position: relative;
  width: 100%;
  overflow: hidden;
}
.g5d5-carousel { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.g5d5-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
  cursor: pointer;
}
.g5d5-slide img { width: 100%; height: 100%; object-fit: cover; }
.g5d5-slide.g5d5-slide-active { opacity: 1; }
.g5d5-carousel-dots {
  position: absolute; bottom: .8rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .5rem;
}
.g5d5-carousel-dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: 0; cursor: pointer; padding: 0;
}

/* ===== Sections ===== */
.g5d5-section { padding: 2.4rem 0 1rem; }
.g5d5-section-title {
  font-size: 1.8rem; font-weight: 800;
  margin: 0 0 1.2rem;
  display: flex; align-items: center; gap: .6rem;
}
.g5d5-section-title i { color: var(--g5d5-primary); }

.g5d5-h1 {
  font-size: 2.2rem; font-weight: 800; line-height: 2.6rem;
  margin: 1.6rem 0 1rem;
  background: linear-gradient(90deg,#EE82EE,#E65100);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.g5d5-lead {
  font-size: 1.35rem; color: #c8cdd6; margin-bottom: 1.4rem; line-height: 1.55;
}
.g5d5-text-muted { color: var(--g5d5-muted); }
.g5d5-text-orange { color: var(--g5d5-orange); font-weight: 700; }
.g5d5-promo-text { color: var(--g5d5-primary); font-weight: 700; cursor: pointer; }

/* ===== Game grid (compact tiles) ===== */
.g5d5-cat-head {
  font-size: 1.45rem; font-weight: 700; margin: 1.6rem 0 1rem;
  display: flex; align-items: center; gap: .6rem;
  border-left: 4px solid var(--g5d5-orange);
  padding-left: .8rem;
}
.g5d5-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
}
.g5d5-game {
  background: var(--g5d5-surface);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--g5d5-radius);
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.g5d5-game:hover { transform: translateY(-3px); box-shadow: var(--g5d5-shadow); }
.g5d5-game img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #000; }
.g5d5-game-name {
  font-size: 1.05rem; font-weight: 600; color: var(--g5d5-text);
  padding: .5rem .3rem; line-height: 1.2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Cards ===== */
.g5d5-card {
  background: var(--g5d5-surface);
  border-radius: var(--g5d5-radius);
  padding: 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255,255,255,.06);
}
.g5d5-card h2, .g5d5-card h3 { margin-top: 0; }
.g5d5-card h2 { font-size: 1.6rem; }
.g5d5-card h3 { font-size: 1.35rem; }
.g5d5-card p { font-size: 1.25rem; color: #c8cdd6; line-height: 1.55; }

/* FAQ accordion */
.g5d5-faq-item { background: var(--g5d5-surface); border-radius: 12px; margin-bottom: .8rem; overflow: hidden; }
.g5d5-faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 1.3rem 1.4rem; color: var(--g5d5-text); font-size: 1.3rem; font-weight: 700;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.g5d5-faq-q .g5d5-caret { transition: transform .2s; color: var(--g5d5-primary); }
.g5d5-faq-item.g5d5-open .g5d5-caret { transform: rotate(180deg); }
.g5d5-faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
  padding: 0 1.4rem; color: #c8cdd6; font-size: 1.2rem; line-height: 1.5;
}
.g5d5-faq-item.g5d5-open .g5d5-faq-a { max-height: 320px; padding: 0 1.4rem 1.3rem; }

/* Features / tricks / list */
.g5d5-feature-list { list-style: none; padding: 0; margin: 0; }
.g5d5-feature-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0; border-bottom: 1px dashed rgba(255,255,255,.07);
  font-size: 1.25rem; color: #d4d8df;
}
.g5d5-feature-list li i { color: var(--g5d5-orange); font-size: 1.7rem; margin-top: .2rem; }
.g5d5-feature-list li:last-child { border-bottom: 0; }

/* RTP compact table */
.g5d5-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.g5d5-rtp-table th, .g5d5-rtp-table td {
  padding: .8rem .6rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,.07);
}
.g5d5-rtp-table th { color: var(--g5d5-primary); font-weight: 700; }
.g5d5-rtp-table td.g5d5-pct { color: var(--g5d5-orange); font-weight: 700; text-align: right; }

/* Testimonials */
.g5d5-testi {
  background: var(--g5d5-surface); border-radius: 12px; padding: 1.3rem;
  margin-bottom: .9rem; border-left: 3px solid var(--g5d5-primary);
}
.g5d5-testi p { margin: 0 0 .6rem; font-size: 1.2rem; color: #d4d8df; }
.g5d5-testi .g5d5-author { font-size: 1.1rem; color: var(--g5d5-orange); font-weight: 700; }

/* Winners strip */
.g5d5-winners {
  display: flex; gap: .8rem; overflow-x: auto; padding-bottom: .8rem;
  scrollbar-width: thin;
}
.g5d5-winner {
  flex: 0 0 auto; width: 16rem; background: var(--g5d5-surface);
  border-radius: 12px; padding: 1rem; border: 1px solid rgba(255,255,255,.06);
}
.g5d5-winner .g5d5-wname { font-weight: 700; font-size: 1.2rem; }
.g5d5-winner .g5d5-wgame { font-size: 1.1rem; color: var(--g5d5-muted); }
.g5d5-winner .g5d5-wamt { font-size: 1.4rem; color: var(--g5d5-orange); font-weight: 800; }

/* Payment chips */
.g5d5-pay-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.g5d5-pay {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--g5d5-surface); border: 1px solid rgba(255,255,255,.08);
  padding: .8rem 1.2rem; border-radius: 999px; font-size: 1.15rem;
}
.g5d5-pay i { color: var(--g5d5-primary); }

/* CTA */
.g5d5-cta {
  background: linear-gradient(135deg, rgba(139,0,139,.35), rgba(230,81,0,.25));
  border: 1px solid rgba(238,130,238,.35);
  border-radius: var(--g5d5-radius);
  padding: 2rem 1.6rem; text-align: center; margin: 1.6rem 0;
}
.g5d5-cta h2 { margin-top: 0; color: #fff; }
.g5d5-cta p { color: #e9d8f0; font-size: 1.25rem; }

/* App download box */
.g5d5-appbox {
  display: flex; gap: 1.2rem; align-items: center;
  background: var(--g5d5-surface); padding: 1.4rem; border-radius: var(--g5d5-radius);
}
.g5d5-appbox .g5d5-appicon {
  width: 5.5rem; height: 5.5rem; border-radius: 14px;
  background: linear-gradient(135deg, var(--g5d5-primary), var(--g5d5-accent));
  display: grid; place-items: center; color: #fff; font-size: 2.6rem;
}

/* ===== Footer ===== */
.g5d5-footer {
  background: #0a0e14;
  border-top: 1px solid rgba(238,130,238,.2);
  padding: 2.4rem 0 7rem;
}
.g5d5-footer-brand { font-size: 1.25rem; color: #aab0ba; margin-bottom: 1.2rem; line-height: 1.5; }
.g5d5-footer-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin-bottom: 1.4rem;
}
.g5d5-footer-links a {
  font-size: 1.15rem; color: #c8cdd6; padding: .3rem 0;
}
.g5d5-footer-links a:active { color: var(--g5d5-primary); }
.g5d5-promo-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.g5d5-promo-buttons .g5d5-btn { flex: 1 1 auto; min-height: 3.6rem; font-size: 1.25rem; padding: 0 1rem; }
.g5d5-copyright { font-size: 1.1rem; color: var(--g5d5-muted); text-align: center; margin-top: 1.2rem; }

/* ===== Mobile bottom navigation (fixed) ===== */
.g5d5-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 6.2rem;
  background: linear-gradient(180deg, #1a0d22 0%, #0D1117 100%);
  border-top: 1px solid rgba(238,130,238,.3);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000;
  max-width: 430px; margin: 0 auto;
}
.g5d5-bottomnav-btn {
  flex: 1;
  background: none; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem;
  min-width: 60px; min-height: 60px;
  color: var(--g5d5-muted);
  cursor: pointer;
  padding: .4rem;
  transition: color .15s ease, transform .15s ease;
}
.g5d5-bottomnav-btn:active { transform: scale(.92); }
.g5d5-bottomnav-btn i { font-size: 2.2rem; }
.g5d5-bottomnav-btn .g5d5-bottomnav-label { font-size: 1rem; line-height: 1.1rem; }
.g5d5-bottomnav-btn.g5d5-bottomnav-active { color: var(--g5d5-primary); }
.g5d5-bottomnav-btn.g5d5-bottomnav-promo { color: var(--g5d5-orange); }
.g5d5-bottomnav-btn.g5d5-bottomnav-promo i { font-size: 2.4rem; }

/* ===== Desktop: hide bottom nav, expand layout ===== */
@media (min-width: 769px) {
  .g5d5-bottomnav { display: none; }
  main.g5d5-main { padding-bottom: 3rem; }
  .g5d5-wrapper, .g5d5-container, .g5d5-header, .g5d5-mobile-menu { max-width: 760px; }
  .g5d5-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (min-width: 481px) and (max-width: 768px) {
  .g5d5-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Utility */
.g5d5-center { text-align: center; }
.g5d5-mt { margin-top: 1.6rem; }
.g5d5-mb { margin-bottom: 1.6rem; }
