/* ============================================================
 * fun88 com - Core stylesheet
 * Class prefix: s060-
 * Palette: #FFB347 | #FFD700 | #FFAA00 | #CED4DA | #1A1A1A | #B22222
 * Mobile-first, max-width 430px
 * ============================================================ */

:root {
  --s060-primary: #FFB347;
  --s060-gold: #FFD700;
  --s060-amber: #FFAA00;
  --s060-light: #CED4DA;
  --s060-bg: #1A1A1A;
  --s060-bg2: #242021;
  --s060-card: #2c2728;
  --s060-red: #B22222;
  --s060-text: #f4ede4;
  --s060-muted: #b9b0a6;
  --s060-radius: 14px;
  --s060-shadow: 0 6px 18px rgba(0,0,0,.45);
}

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

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

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--s060-bg);
  color: var(--s060-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--s060-gold); text-decoration: none; }
a:hover, a:focus { color: var(--s060-primary); }
img { max-width: 100%; display: block; }

.s060-container { width: 100%; padding: 0 1.2rem; }
.s060-wrapper { padding: 1.4rem 1.2rem; }

/* ===== Header ===== */
.s060-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1A1A1A, #221c1d);
  border-bottom: 2px solid var(--s060-amber);
  box-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.s060-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  min-height: 52px;
}
.s060-logo {
  display: flex; align-items: center; gap: .6rem;
  color: var(--s060-gold);
  font-weight: 800;
  font-size: 1.7rem;
}
.s060-logo img { width: 28px; height: 28px; border-radius: 6px; }
.s060-logo span { color: var(--s060-gold); letter-spacing: .3px; }

.s060-header-actions { display: flex; align-items: center; gap: .5rem; }
.s060-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .65rem 1.1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform .15s ease, filter .15s ease;
}
.s060-btn:active { transform: scale(.94); }
.s060-btn-login {
  background: transparent;
  color: var(--s060-gold);
  border: 1.5px solid var(--s060-gold);
}
.s060-btn-register {
  background: linear-gradient(90deg, var(--s060-red), var(--s060-amber));
  color: #fff;
  box-shadow: 0 3px 10px rgba(178,34,34,.4);
}
.s060-menu-btn {
  background: transparent;
  border: none;
  color: var(--s060-gold);
  font-size: 2rem;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Mobile menu (slide down) ===== */
.s060-mobile-menu {
  max-width: 430px;
  margin: 0 auto;
  background: var(--s060-bg2);
  border-bottom: 2px solid var(--s060-amber);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.s060-mobile-menu.s060-menu-open { max-height: 520px; }
.s060-mobile-menu ul { list-style: none; padding: .6rem 1rem; }
.s060-mobile-menu li { border-bottom: 1px solid rgba(255,170,0,.15); }
.s060-mobile-menu li:last-child { border-bottom: none; }
.s060-mobile-menu a {
  display: block;
  padding: 1rem .4rem;
  color: var(--s060-text);
  font-size: 1.45rem;
}
.s060-mobile-menu a i { color: var(--s060-gold); margin-right: .6rem; }

/* ===== Main ===== */
.s060-main { padding-top: 64px; padding-bottom: 80px; }

/* ===== Carousel ===== */
.s060-carousel {
  position: relative;
  width: 100%;
  margin: 1rem 0 1.2rem;
  border-radius: var(--s060-radius);
  overflow: hidden;
  box-shadow: var(--s060-shadow);
}
.s060-carousel-track { position: relative; width: 100%; aspect-ratio: 16/7; }
.s060-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.s060-carousel-slide.s060-active { opacity: 1; }
.s060-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s060-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 2;
}
.s060-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer; padding: 0;
}
.s060-carousel-dot.s060-active { background: var(--s060-gold); }

/* ===== Section titles ===== */
.s060-section { padding: 1.6rem 1.2rem; }
.s060-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--s060-gold);
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.s060-section-title i { color: var(--s060-amber); }
.s060-h1 {
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--s060-gold);
  text-align: center;
  line-height: 1.25;
  padding: 1.2rem 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.s060-lead {
  text-align: center;
  color: var(--s060-muted);
  font-size: 1.4rem;
  padding: 0 1rem 1rem;
}

/* ===== Game grid ===== */
.s060-game-block { margin-bottom: 1.8rem; }
.s060-block-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem .8rem;
}
.s060-block-head h2 {
  font-size: 1.7rem; color: var(--s060-gold); font-weight: 800;
  display: flex; align-items: center; gap: .5rem;
}
.s060-block-head h2 i { color: var(--s060-red); }
.s060-block-head a { font-size: 1.2rem; color: var(--s060-amber); }
.s060-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .7rem;
  padding: 0 1.2rem;
}
.s060-game-card {
  background: var(--s060-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,170,0,.18);
  transition: transform .15s ease, border-color .15s ease;
  cursor: pointer;
}
.s060-game-card:active { transform: scale(.95); border-color: var(--s060-gold); }
.s060-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: #111;
}
.s060-game-card .s060-game-name {
  font-size: 1.1rem;
  text-align: center;
  padding: .4rem .2rem;
  color: var(--s060-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Filter buttons ===== */
.s060-filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  padding: 0 1.2rem 1rem;
}
.s060-filter-btn {
  padding: .5rem 1rem;
  border-radius: 16px;
  border: 1px solid var(--s060-amber);
  background: transparent;
  color: var(--s060-light);
  font-size: 1.2rem;
  cursor: pointer;
}
.s060-filter-btn.s060-active {
  background: var(--s060-amber);
  color: #1A1A1A;
  font-weight: 700;
}

/* ===== Feature / content cards ===== */
.s060-card {
  background: var(--s060-card);
  border-radius: var(--s060-radius);
  padding: 1.4rem;
  margin: 0 1.2rem 1.2rem;
  border: 1px solid rgba(255,170,0,.15);
  box-shadow: var(--s060-shadow);
}
.s060-card h2 {
  font-size: 1.7rem; color: var(--s060-gold); margin-bottom: .8rem;
}
.s060-card h3 {
  font-size: 1.4rem; color: var(--s060-amber); margin: .8rem 0 .4rem;
}
.s060-card p { color: var(--s060-text); margin-bottom: .7rem; font-size: 1.35rem; }
.s060-card ul { list-style: none; padding-left: 0; }
.s060-card li { padding: .3rem 0 .3rem 1.6rem; position: relative; color: var(--s060-text); }
.s060-card li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--s060-amber);
  position: absolute; left: 0;
}

.s060-promo-link {
  display: inline-block;
  margin: .6rem 0;
  padding: .55rem 1.1rem;
  background: linear-gradient(90deg, var(--s060-red), var(--s060-amber));
  color: #fff;
  border-radius: 18px;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
}
.s060-text-link { color: var(--s060-gold); font-weight: 700; border-bottom: 1px dashed var(--s060-amber); }

/* ===== RTP table ===== */
.s060-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.s060-rtp-table th, .s060-rtp-table td {
  padding: .55rem .4rem;
  border-bottom: 1px solid rgba(255,170,0,.18);
  text-align: left;
}
.s060-rtp-table th { color: var(--s060-gold); }
.s060-rtp-table td .s060-bar {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--s060-amber), var(--s060-gold));
  display: inline-block; vertical-align: middle;
}

/* ===== Testimonials ===== */
.s060-testimonial {
  background: var(--s060-card);
  border-radius: 12px;
  padding: 1rem;
  margin: 0 1.2rem .8rem;
  border-left: 3px solid var(--s060-gold);
}
.s060-testimonial .s060-stars { color: var(--s060-gold); margin-bottom: .3rem; }
.s060-testimonial p { font-size: 1.3rem; color: var(--s060-text); }
.s060-testimonial .s060-author { font-size: 1.15rem; color: var(--s060-amber); margin-top: .4rem; }

/* ===== Payment / winners ===== */
.s060-chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0 1.2rem; }
.s060-chip {
  background: var(--s060-card);
  border: 1px solid rgba(255,170,0,.25);
  border-radius: 10px;
  padding: .5rem .8rem;
  font-size: 1.2rem;
  color: var(--s060-text);
  display: flex; align-items: center; gap: .4rem;
}
.s060-chip i { color: var(--s060-amber); }

.s060-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,170,0,.12);
  font-size: 1.3rem;
}
.s060-winner:last-child { border-bottom: none; }
.s060-winner .s060-amount { color: var(--s060-gold); font-weight: 800; }

/* ===== Footer ===== */
.s060-footer {
  background: var(--s060-bg2);
  border-top: 2px solid var(--s060-amber);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1rem;
}
.s060-footer-brand { color: var(--s060-muted); font-size: 1.3rem; margin-bottom: 1rem; }
.s060-footer-links {
  display: flex; flex-wrap: wrap; gap: .5rem .8rem;
  margin-bottom: 1rem;
}
.s060-footer-links a {
  color: var(--s060-light);
  font-size: 1.25rem;
  padding: .3rem .5rem;
}
.s060-footer-promo { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.s060-copyright {
  color: var(--s060-muted);
  font-size: 1.15rem;
  border-top: 1px solid rgba(255,170,0,.15);
  padding-top: .8rem;
  margin-top: .6rem;
}

/* ===== Bottom nav (fixed) ===== */
.s060-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #221c1d, #1A1A1A);
  border-top: 2px solid var(--s060-amber);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
  box-shadow: 0 -3px 12px rgba(0,0,0,.5);
}
.s060-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s060-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color .15s ease, transform .15s ease;
}
.s060-bottomnav-btn i, .s060-bottomnav-btn .material-icons-outlined,
.s060-bottomnav-btn .ion-icon { font-size: 22px; }
.s060-bottomnav-btn:active { transform: scale(.9); }
.s060-bottomnav-btn.s060-current { color: var(--s060-gold); }
.s060-bottomnav-btn.s060-current::after {
  content: ""; width: 22px; height: 3px;
  background: var(--s060-gold); border-radius: 2px;
  margin-top: 2px;
}

/* ===== Desktop: hide bottom nav, expand layout ===== */
@media (min-width: 769px) {
  body { max-width: 960px; }
  .s060-bottomnav { display: none; }
  .s060-main { padding-bottom: 20px; }
  .s060-grid { grid-template-columns: repeat(6, 1fr); }
  .s060-header-inner, .s060-mobile-menu, .s060-bottomnav { max-width: 960px; }
}

@media (max-width: 768px) {
  .s060-main { padding-bottom: 80px; }
}

/* Utility */
.s060-hide { display: none; }
.s060-center { text-align: center; }
.s060-mt1 { margin-top: 1rem; }
