/* ==========================================================
 * 365 casino - design-8c04.css
 * Mobile-first responsive styles. All classes use v458- prefix.
 * Palette: #0C0C0C | #FDF5E6 | #FFEF94 | #CD853F | #FAFAD2
 * Root font: 62.5% (1rem = 10px)
 * ========================================================== */

:root {
  --v458-bg: #0C0C0C;
  --v458-bg-soft: #161412;
  --v458-bg-card: #1d1a17;
  --v458-text: #FDF5E6;
  --v458-text-muted: #c9bfae;
  --v458-primary: #FFEF94;
  --v458-accent: #CD853F;
  --v458-soft: #FAFAD2;
  --v458-border: rgba(205, 133, 63, 0.25);
  --v458-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  --v458-radius: 14px;
}

* { box-sizing: border-box; }

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

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

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

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

main.v458-main { padding-bottom: 80px; }

/* ---------------- Header ---------------- */
.v458-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(12,12,12,0.96), rgba(12,12,12,0.88));
  border-bottom: 1px solid var(--v458-border);
  backdrop-filter: blur(8px);
}
.v458-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  min-height: 52px;
}
.v458-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--v458-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.v458-brand img { width: 28px; height: 28px; border-radius: 6px; }
.v458-brand span b { color: var(--v458-primary); }

.v458-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.v458-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform .15s ease, filter .15s ease;
}
.v458-btn:active { transform: scale(0.96); }
.v458-btn-primary {
  background: linear-gradient(135deg, var(--v458-primary), var(--v458-soft));
  color: #2a1d05;
}
.v458-btn-ghost {
  background: transparent;
  color: var(--v458-text);
  border: 1px solid var(--v458-accent);
}
.v458-btn-block {
  display: block;
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
}

.v458-menu-btn {
  background: transparent;
  border: 0;
  color: var(--v458-text);
  font-size: 2rem;
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
}

/* Expandable nav panel */
.v458-nav-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  background: var(--v458-bg-soft);
  border-top: 1px solid var(--v458-border);
}
.v458-nav-panel.v458-nav-open { max-height: 460px; }
.v458-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1.2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.v458-nav-list a {
  display: block;
  padding: 0.7rem 0.8rem;
  background: var(--v458-bg-card);
  border: 1px solid var(--v458-border);
  border-radius: 10px;
  font-size: 1.3rem;
  color: var(--v458-text);
}
.v458-nav-list a:hover { color: var(--v458-primary); border-color: var(--v458-accent); }

/* ---------------- Carousel ---------------- */
.v458-carousel {
  margin-top: 64px;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 16px 16px;
}
.v458-carousel-viewport { overflow: hidden; }
.v458-carousel-track {
  display: flex;
  transition: transform .5s ease;
}
.v458-carousel-slide {
  min-width: 100%;
  position: relative;
}
.v458-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.v458-carousel-cap {
  position: absolute;
  left: 1rem; right: 1rem; bottom: 1rem;
  background: rgba(12,12,12,0.6);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 1.3rem;
}
.v458-carousel-cap b { color: var(--v458-primary); }
.v458-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}
.v458-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(253,245,230,0.35);
  border: 0; cursor: pointer; padding: 0;
}
.v458-carousel-dot.v458-dot-active { background: var(--v458-primary); }

/* ---------------- Sections ---------------- */
.v458-section { padding: 2rem 0 1rem; }
.v458-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.v458-h1 {
  font-size: 2.1rem;
  line-height: 2.4rem;
  color: var(--v458-primary);
  margin: 1rem 0 0.6rem;
  font-weight: 800;
}
.v458-h2 {
  font-size: 1.8rem;
  line-height: 2.2rem;
  color: var(--v458-soft);
  margin: 1.4rem 0 0.8rem;
  font-weight: 700;
  border-left: 4px solid var(--v458-accent);
  padding-left: 0.8rem;
}
.v458-h3 {
  font-size: 1.5rem;
  color: var(--v458-primary);
  margin: 1rem 0 0.5rem;
  font-weight: 700;
}
.v458-p {
  font-size: 1.4rem;
  line-height: 2.2rem;
  color: var(--v458-text-muted);
  margin: 0 0 0.8rem;
}
.v458-p b, .v458-p strong { color: var(--v458-primary); }
.v458-link-text {
  color: var(--v458-primary);
  font-weight: 700;
  cursor: pointer;
}
.v458-link-text:hover { text-decoration: underline; }

/* Chips filter */
.v458-chips {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.4rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}
.v458-chip {
  flex: 0 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--v458-bg-card);
  border: 1px solid var(--v458-border);
  color: var(--v458-text);
  font-size: 1.2rem;
  cursor: pointer;
}
.v458-chip.v458-chip-active {
  background: linear-gradient(135deg, var(--v458-primary), var(--v458-soft));
  color: #2a1d05;
  border-color: transparent;
}

/* ---------------- Game grid ---------------- */
.v458-game-group { margin-bottom: 1.4rem; }
.v458-game-group-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v458-primary);
  margin: 0.4rem 0 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.v458-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.v458-card {
  background: var(--v458-bg-card);
  border: 1px solid var(--v458-border);
  border-radius: 12px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  overflow: hidden;
}
.v458-card:hover { transform: translateY(-2px); border-color: var(--v458-accent); }
.v458-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}
.v458-card-name {
  font-size: 1.1rem;
  color: var(--v458-text);
  line-height: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- Info / feature blocks ---------------- */
.v458-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.v458-feature {
  background: var(--v458-bg-card);
  border: 1px solid var(--v458-border);
  border-radius: 12px;
  padding: 1rem;
}
.v458-feature i, .v458-feature span.material-icons-outlined {
  color: var(--v458-primary);
  font-size: 2.2rem;
}
.v458-feature h3 { margin: 0.4rem 0 0.3rem; }
.v458-feature p { margin: 0; font-size: 1.25rem; line-height: 1.8rem; }

.v458-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
  background: var(--v458-bg-card);
  border-radius: 10px;
  overflow: hidden;
}
.v458-rtp-table th, .v458-rtp-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--v458-border);
  text-align: left;
}
.v458-rtp-table th { color: var(--v458-primary); }
.v458-rtp-table td:last-child { color: var(--v458-soft); font-weight: 700; }

.v458-list { padding-left: 1.4rem; color: var(--v458-text-muted); font-size: 1.35rem; line-height: 2rem; }
.v458-list li { margin-bottom: 0.4rem; }

.v458-testimonial {
  background: var(--v458-bg-card);
  border-left: 3px solid var(--v458-accent);
  border-radius: 10px;
  padding: 0.9rem;
  margin-bottom: 0.7rem;
}
.v458-testimonial b { color: var(--v458-primary); }
.v458-testimonial p { margin: 0.3rem 0 0; font-size: 1.3rem; line-height: 1.9rem; }

.v458-pay-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.v458-pay-pill {
  background: var(--v458-bg-card);
  border: 1px solid var(--v458-border);
  color: var(--v458-text);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 1.2rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
}

.v458-winner {
  display: flex; align-items: center; gap: 0.7rem;
  background: var(--v458-bg-card);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}
.v458-winner .v458-amount { color: var(--v458-primary); font-weight: 700; }

.v458-cta {
  background: linear-gradient(135deg, rgba(255,239,148,0.12), rgba(205,133,63,0.12));
  border: 1px solid var(--v458-border);
  border-radius: 16px;
  padding: 1.4rem;
  text-align: center;
  margin: 1rem 0;
}
.v458-cta h2 { margin-top: 0; }

/* Reveal animation */
.v458-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.v458-reveal.v458-visible { opacity: 1; transform: none; }

/* ---------------- Footer ---------------- */
.v458-footer {
  background: var(--v458-bg-soft);
  border-top: 1px solid var(--v458-border);
  padding: 2rem 0 6rem;
  margin-top: 1.5rem;
}
.v458-footer p { font-size: 1.3rem; line-height: 1.9rem; color: var(--v458-text-muted); }
.v458-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}
.v458-footer-links a { font-size: 1.25rem; color: var(--v458-text); }
.v458-footer-copy { font-size: 1.15rem; color: var(--v458-text-muted); margin-top: 0.8rem; }

/* ---------------- Bottom nav ---------------- */
.v458-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #1a1714, #0b0b0b);
  border-top: 1px solid var(--v458-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0;
}
.v458-bottomnav-btn {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--v458-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1rem;
  padding: 4px 2px;
  transition: color .15s ease, transform .15s ease;
}
.v458-bottomnav-btn i,
.v458-bottomnav-btn span.material-icons-outlined,
.v458-bottomnav-btn ion-icon { font-size: 22px; }
.v458-bottomnav-btn ion-icon { font-size: 24px; }
.v458-bottomnav-btn:hover { color: var(--v458-primary); }
.v458-bottomnav-btn:active { transform: scale(0.92); }
.v458-bottomnav-active { color: var(--v458-primary); }
.v458-bottomnav-active::after {
  content: '';
  width: 26px; height: 3px;
  background: var(--v458-primary);
  border-radius: 2px;
  margin-top: 2px;
}

/* ---------------- Desktop / larger screens ---------------- */
@media (min-width: 768px) {
  body { background: #0b0b0b; }
  .v458-container { max-width: 760px; }
  .v458-header-inner { max-width: 760px; }
  .v458-grid { grid-template-columns: repeat(6, 1fr); }
  .v458-bottomnav { display: none; }
  .v458-feature-row { grid-template-columns: repeat(3, 1fr); }
  main.v458-main { padding-bottom: 40px; }
  .v458-footer { padding-bottom: 2rem; }
}

@media (min-width: 1024px) {
  .v458-grid { grid-template-columns: repeat(8, 1fr); }
}
