/* ============================================================
   jiliko com - core stylesheet
   Class prefix: g505-  | Function prefix: webc50
   Palette: #0D1117 bg | #F5F5F5 text | #CD853F accent | #E0FFFF highlight
   Mobile-first, max-width 430px. Root font 62.5% (1rem = 10px).
   ============================================================ */

:root {
  --g505-primary:   #CD853F;
  --g505-bg:        #0D1117;
  --g505-bg-2:      #161B22;
  --g505-bg-3:      #1F2630;
  --g505-text:      #F5F5F5;
  --g505-muted:     #9AA4B2;
  --g505-highlight: #E0FFFF;
  --g505-gold:      #FFD27A;
  --g505-danger:    #FF5C5C;
  --g505-success:   #43C678;
  --g505-radius:    14px;
  --g505-shadow:    0 6px 18px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--g505-bg);
  color: var(--g505-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  overflow-x: hidden;
}

a { color: var(--g505-highlight); text-decoration: none; }
a:hover { color: var(--g505-gold); }
img { max-width: 100%; display: block; }

.g505-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.g505-wrapper { padding-bottom: 8px; }

/* ---------- Header ---------- */
.g505-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #11161D 0%, #0D1117 100%);
  border-bottom: 1px solid rgba(205,133,63,.28);
  box-shadow: 0 2px 10px rgba(0,0,0,.45);
}
.g505-header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; gap: 8px;
}
.g505-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.g505-brand img { width: 28px; height: 28px; border-radius: 6px; }
.g505-brand b {
  font-size: 1.5rem; color: var(--g505-gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g505-brand small { color: var(--g505-muted); font-size: 1.05rem; }
.g505-head-actions { display: flex; align-items: center; gap: 6px; }

/* ---------- Buttons ---------- */
.g505-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 0 12px;
  font-size: 1.25rem; font-weight: 700;
  border: 0; border-radius: 999px;
  cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.g505-btn:hover { filter: brightness(1.08); }
.g505-btn:active { transform: scale(.96); }
.g505-btn-login {
  background: transparent; color: var(--g505-highlight);
  border: 1px solid var(--g505-primary);
}
.g505-btn-register {
  background: linear-gradient(135deg, #CD853F 0%, #FFD27A 100%);
  color: #0D1117; box-shadow: 0 4px 12px rgba(205,133,63,.45);
}
.g505-btn-cta {
  background: linear-gradient(135deg, #FFD27A 0%, #CD853F 100%);
  color: #0D1117; padding: 10px 22px; font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(205,133,63,.5);
}
.g505-link-text {
  color: var(--g505-gold); font-weight: 700; border-bottom: 1px dashed rgba(255,210,122,.4);
}

/* ---------- Hamburger / Mobile Menu ---------- */
.g505-menu-btn {
  width: 34px; height: 34px; border: 0; background: transparent;
  color: var(--g505-highlight); font-size: 1.9rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.g505-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px;
  height: 100vh; z-index: 9999;
  background: #11171F; padding: 60px 16px 24px;
  transition: right .25s ease;
  border-left: 1px solid rgba(205,133,63,.25);
  overflow-y: auto;
}
.g505-mobile-menu.g505-menu-open { right: 0; }
.g505-menu-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.55); display: none;
}
.g505-menu-overlay.g505-menu-open { display: block; }
.g505-menu-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border: 0; background: transparent;
  color: var(--g505-highlight); font-size: 1.8rem; cursor: pointer;
}
.g505-mobile-menu h4 {
  color: var(--g505-gold); font-size: 1.35rem; margin: 14px 0 8px;
  letter-spacing: .5px; text-transform: uppercase;
}
.g505-mobile-menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--g505-text); font-size: 1.35rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.g505-mobile-menu a:hover { background: rgba(205,133,63,.12); color: var(--g505-gold); }

/* ---------- Carousel ---------- */
.g505-carousel {
  position: relative; border-radius: var(--g505-radius);
  overflow: hidden; margin: 10px 0; box-shadow: var(--g505-shadow);
}
.g505-slide {
  display: none; position: relative; cursor: pointer;
}
.g505-slide.g505-slide-active { display: block; }
.g505-slide img { width: 100%; height: 170px; object-fit: cover; }
.g505-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 14px 12px;
  background: linear-gradient(0deg, rgba(13,17,23,.92) 0%, rgba(13,17,23,0) 100%);
  color: var(--g505-highlight); font-size: 1.3rem; font-weight: 600;
}
.g505-slide-cap b { color: var(--g505-gold); display: block; font-size: 1.5rem; margin-bottom: 2px; }
.g505-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(13,17,23,.65); color: var(--g505-highlight);
  border: 0; font-size: 1.4rem; cursor: pointer; z-index: 2;
}
.g505-carousel-arrow:hover { background: var(--g505-primary); }
.g505-arrow-prev { left: 8px; }
.g505-arrow-next { right: 8px; }
.g505-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px; z-index: 2;
}
.g505-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(245,245,245,.45); cursor: pointer; padding: 0; border: 0;
}
.g505-dot.g505-dot-active { background: var(--g505-gold); width: 18px; border-radius: 4px; }

/* ---------- Sections / Headings ---------- */
.g505-section { padding: 14px 0 6px; }
.g505-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.65rem; color: var(--g505-gold);
  margin: 0 0 10px; font-weight: 800; letter-spacing: .3px;
}
.g505-section-title i, .g505-section-title span.material-icons,
.g505-section-title span.tabler-icon { font-size: 1.9rem; color: var(--g505-primary); }
.g505-section-title small {
  margin-left: auto; font-size: 1.1rem; color: var(--g505-muted); font-weight: 500;
}
.g505-lead { color: var(--g505-muted); font-size: 1.3rem; margin: 0 0 10px; line-height: 1.6; }
.g505-prose p { margin: 0 0 10px; line-height: 1.6; color: var(--g505-text); }
.g505-prose b { color: var(--g505-gold); }

/* ---------- Filter tabs ---------- */
.g505-filters {
  display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.g505-filter-tab {
  flex: 0 0 auto; padding: 6px 14px; border-radius: 999px;
  background: var(--g505-bg-2); color: var(--g505-muted);
  font-size: 1.2rem; border: 1px solid transparent; cursor: pointer;
  white-space: nowrap;
}
.g505-filter-tab.g505-filter-active {
  background: linear-gradient(135deg, #CD853F 0%, #FFD27A 100%);
  color: #0D1117; font-weight: 700;
}

/* ---------- Game grid ---------- */
.g505-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.g505-card {
  background: var(--g505-bg-2); border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(205,133,63,.12); cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.g505-card:hover { transform: translateY(-2px); border-color: var(--g505-primary); }
.g505-card img { width: 100%; height: 84px; object-fit: cover; background: #000; }
.g505-card-name {
  padding: 4px 6px; font-size: 1.05rem; text-align: center; color: var(--g505-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g505-card-tag {
  display: inline-block; padding: 2px 6px; border-radius: 4px;
  background: rgba(205,133,63,.18); color: var(--g505-gold);
  font-size: .95rem; text-transform: uppercase; letter-spacing: .5px;
}

/* ---------- Generic cards / panels ---------- */
.g505-panel {
  background: var(--g505-bg-2); border-radius: var(--g505-radius);
  padding: 14px; margin-bottom: 12px;
  border: 1px solid rgba(205,133,63,.18);
}
.g505-panel-tight { padding: 10px; }
.g505-feature-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
}
.g505-feature-row:last-child { border-bottom: 0; }
.g505-feature-row .g505-ic {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 8px;
  background: rgba(205,133,63,.18); color: var(--g505-gold);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.g505-feature-row b { color: var(--g505-gold); font-size: 1.25rem; }
.g505-feature-row p { margin: 2px 0 0; font-size: 1.15rem; color: var(--g505-muted); }

/* ---------- RTP / stat compact ---------- */
.g505-stat-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.g505-stat {
  background: var(--g505-bg-3); border-radius: 10px; padding: 10px;
  border-left: 3px solid var(--g505-primary);
}
.g505-stat b { display: block; font-size: 1.7rem; color: var(--g505-gold); }
.g505-stat span { font-size: 1.1rem; color: var(--g505-muted); }

/* ---------- Testimonials ---------- */
.g505-quote {
  background: var(--g505-bg-2); border-radius: 10px; padding: 10px 12px;
  margin-bottom: 8px; border-left: 3px solid var(--g505-primary);
}
.g505-quote-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.g505-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #CD853F, #FFD27A);
  color: #0D1117; font-weight: 800; font-size: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.g505-quote b { color: var(--g505-gold); font-size: 1.25rem; }
.g505-stars { color: #FFC53D; font-size: 1.1rem; margin-left: auto; }
.g505-quote p { margin: 0; font-size: 1.15rem; color: var(--g505-text); line-height: 1.5; }

/* ---------- Payment / winners ---------- */
.g505-pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.g505-pill {
  padding: 4px 10px; border-radius: 999px; font-size: 1.1rem;
  background: var(--g505-bg-3); color: var(--g505-highlight);
  border: 1px solid rgba(205,133,63,.25);
}

.g505-winner {
  display: flex; align-items: center; gap: 8px; padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,.06);
  font-size: 1.15rem;
}
.g505-winner:last-child { border-bottom: 0; }
.g505-winner b { color: var(--g505-gold); }
.g505-winner span { margin-left: auto; color: var(--g505-success); font-weight: 700; }

/* ---------- Steps ---------- */
.g505-steps { counter-reset: step; padding: 0; list-style: none; margin: 0; }
.g505-steps li {
  position: relative; padding: 8px 8px 8px 34px; margin-bottom: 6px;
  background: var(--g505-bg-2); border-radius: 8px; font-size: 1.2rem;
  border-left: 3px solid var(--g505-primary);
}
.g505-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--g505-primary); color: #0D1117;
  font-size: 1rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- FAQ ---------- */
.g505-faq { margin-bottom: 8px; }
.g505-faq summary {
  cursor: pointer; font-size: 1.3rem; font-weight: 700; color: var(--g505-gold);
  padding: 8px 0; list-style: none;
}
.g505-faq summary::-webkit-details-marker { display: none; }
.g505-faq summary::before { content: "+ "; color: var(--g505-primary); }
.g505-faq[open] summary::before { content: "- "; }
.g505-faq p { margin: 0 0 8px; font-size: 1.2rem; color: var(--g505-text); line-height: 1.55; }

/* ---------- CTA banner ---------- */
.g505-cta {
  background: linear-gradient(135deg, #1F2630 0%, #2A2014 100%);
  border: 1px solid rgba(205,133,63,.35);
  border-radius: var(--g505-radius); padding: 14px; text-align: center;
  margin-bottom: 12px;
}
.g505-cta h3 { color: var(--g505-gold); margin: 0 0 6px; font-size: 1.5rem; }
.g505-cta p { color: var(--g505-muted); font-size: 1.2rem; margin: 0 0 10px; }

/* ---------- Footer ---------- */
.g505-footer {
  background: #0A0E14; padding: 18px 12px 90px;
  border-top: 1px solid rgba(205,133,63,.25);
}
.g505-footer-brand { font-size: 1.2rem; color: var(--g505-muted); margin-bottom: 12px; line-height: 1.55; }
.g505-footer-brand b { color: var(--g505-gold); }
.g505-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px;
}
.g505-footer-links a {
  flex: 1 1 30%; min-width: 90px; padding: 8px 6px; text-align: center;
  background: var(--g505-bg-2); border-radius: 6px; font-size: 1.1rem;
  border: 1px solid rgba(205,133,63,.15);
}
.g505-footer-links a:hover { background: rgba(205,133,63,.18); color: var(--g505-gold); }
.g505-footer-copy {
  font-size: 1.05rem; color: var(--g505-muted); text-align: center;
  border-top: 1px solid rgba(255,255,255,.06); padding-top: 10px;
}

/* ---------- Mobile Bottom Nav ---------- */
.g505-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  height: 60px;
  background: linear-gradient(180deg, #161B22 0%, #0D1117 100%);
  border-top: 1px solid rgba(205,133,63,.35);
  display: flex; justify-content: space-around; align-items: stretch;
  padding: 0; box-shadow: 0 -4px 14px rgba(0,0,0,.45);
}
.g505-bottombtn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--g505-muted); font-size: 1rem;
  transition: color .15s ease, transform .12s ease;
}
.g505-bottombtn i, .g505-bottombtn span.material-icons,
.g505-bottombtn span.tabler-icon { font-size: 22px; }
.g505-bottombtn:hover { color: var(--g505-highlight); }
.g505-bottombtn:active { transform: scale(.92); }
.g505-bottombtn-active { color: var(--g505-gold); }
.g505-bottombtn-promo {
  background: linear-gradient(135deg, #CD853F 0%, #FFD27A 100%);
  color: #0D1117; font-weight: 800;
  border-radius: 999px 999px 0 0;
  margin: -10px 4px 0; padding-top: 4px;
  box-shadow: 0 -4px 10px rgba(205,133,63,.45);
}
.g505-bottombtn-promo i { font-size: 24px; }

/* ---------- Utility ---------- */
.g505-hide-mobile { display: none; }
.g505-center { text-align: center; }
.g505-mt8 { margin-top: 8px; }
.g505-mt12 { margin-top: 12px; }
.g505-row { display: flex; align-items: center; gap: 8px; }
.g505-spacer { height: 8px; }

/* ---------- Desktop (>= 769px) ---------- */
@media (min-width: 769px) {
  body { background: #0D1117; }
  .g505-container { max-width: 1100px; padding: 0 20px; }
  .g505-grid { grid-template-columns: repeat(6, 1fr); }
  .g505-card img { height: 120px; }
  .g505-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .g505-bottomnav { display: none; }
  .g505-footer { padding-bottom: 24px; }
  .g505-hide-mobile { display: block; }
  .g505-slide img { height: 340px; }
}

/* ---------- Mobile bottom-padding clearance ---------- */
@media (max-width: 768px) {
  main.g505-main { padding-bottom: 80px; }
}
