/* ============================================================
 * KM88 Casino - Core Theme CSS
 * All custom classes use dynamic prefix v892-
 * Palette: #F08080 | #DC143C | #1E1E1E | #FFB347 | #FF7F50
 * Mobile-first. Root font 62.5% for rem scaling.
 * ============================================================ */

:root {
  --v892-primary: #DC143C;
  --v892-accent: #FFB347;
  --v892-coral: #FF7F50;
  --v892-salmon: #F08080;
  --v892-bg: #1E1E1E;
  --v892-bg-soft: #2a1f24;
  --v892-bg-card: #2b2530;
  --v892-text: #ffffff;
  --v892-text-dim: #f1d6cf;
  --v892-border: rgba(255, 179, 71, 0.25);
  --v892-gold: #FFB347;
  --v892-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  --v892-radius: 14px;
  --v892-header-h: 56px;
  --v892-bnav-h: 62px;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }
a { color: var(--v892-accent); text-decoration: none; }
a:hover { color: var(--v892-coral); }

.v892-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.v892-container {
  padding: 0 1.2rem;
  width: 100%;
}

/* ============ Header ============ */
.v892-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #1E1E1E 0%, #2a1015 100%);
  border-bottom: 2px solid var(--v892-primary);
  box-shadow: var(--v892-shadow);
}

.v892-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--v892-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.v892-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.v892-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
}

.v892-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #FFB347, #FF7F50);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.3px;
}

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

.v892-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 34px;
  padding: 0 1.1rem;
  border: none;
  border-radius: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s;
}

.v892-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.v892-btn:active { transform: scale(0.96); }

.v892-btn-login {
  background: transparent;
  color: var(--v892-text);
  border: 1px solid var(--v892-accent);
}

.v892-btn-register {
  background: linear-gradient(90deg, #DC143C, #FF7F50);
  color: #fff;
  box-shadow: 0 4px 12px rgba(220, 20, 60, 0.45);
}

.v892-menu-toggle {
  background: transparent;
  border: none;
  color: var(--v892-accent);
  font-size: 2rem;
  cursor: pointer;
  padding: 0 0.4rem;
  line-height: 1;
}

/* ============ Mobile Slide Menu ============ */
.v892-mobile-menu {
  position: fixed;
  top: var(--v892-header-h);
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--v892-bg-soft);
  border-bottom: 2px solid var(--v892-primary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.v892-mobile-menu.v892-menu-open {
  max-height: 460px;
}

.v892-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
}

.v892-mobile-menu li a {
  display: block;
  padding: 1rem 0.6rem;
  color: var(--v892-text);
  border-bottom: 1px solid rgba(255, 179, 71, 0.12);
  font-size: 1.4rem;
}

.v892-mobile-menu li a:hover { color: var(--v892-accent); }

/* ============ Main / Sections ============ */
.v892-main {
  padding-top: calc(var(--v892-header-h) + 6px);
  padding-bottom: calc(var(--v892-bnav-h) + 20px);
}

.v892-section {
  padding: 1.6rem 0;
}

.v892-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v892-accent);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.v892-section-title i { color: var(--v892-coral); }

.v892-card {
  background: var(--v892-bg-card);
  border-radius: var(--v892-radius);
  padding: 1.2rem;
  box-shadow: var(--v892-shadow);
  border: 1px solid var(--v892-border);
  margin-bottom: 1rem;
}

.v892-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v892-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* ============ Hero ============ */
.v892-hero {
  position: relative;
  border-radius: var(--v892-radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: var(--v892-shadow);
}

.v892-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.v892-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.v892-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v892-slide.v892-slide-active { opacity: 1; }

.v892-dots {
  position: absolute;
  bottom: 6px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}

.v892-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  border: none;
}

.v892-dot.v892-dot-active { background: var(--v892-accent); }

/* ============ Game Tiles ============ */
.v892-game-list { list-style: none; margin: 0; padding: 0; }
.v892-game {
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s;
}
.v892-game:hover { transform: translateY(-2px); }
.v892-game img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--v892-border);
}
.v892-game-name {
  font-size: 1.15rem;
  color: var(--v892-text-dim);
  margin-top: 0.4rem;
  word-break: break-word;
}

/* ============ CTA Button (full width) ============ */
.v892-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1.4rem;
  border-radius: var(--v892-radius);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #DC143C, #FF7F50, #FFB347);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(220, 20, 60, 0.45);
  margin: 1rem 0;
}

/* ============ Testimonial / Info blocks ============ */
.v892-quote {
  border-left: 3px solid var(--v892-coral);
  padding-left: 1rem;
  font-style: italic;
  color: var(--v892-text-dim);
}

.v892-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.v892-badge {
  background: rgba(255, 179, 71, 0.12);
  color: var(--v892-accent);
  border: 1px solid var(--v892-border);
  padding: 0.5rem 0.9rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ============ Footer ============ */
.v892-footer {
  background: #161616;
  border-top: 2px solid var(--v892-primary);
  padding: 1.6rem 1.2rem 2.4rem;
}

.v892-footer p { color: var(--v892-text-dim); font-size: 1.3rem; margin: 0 0 0.8rem; }

.v892-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.v892-footer-links a {
  color: var(--v892-text-dim);
  font-size: 1.25rem;
}

.v892-footer-cta-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.v892-footer-cta-row .v892-btn { flex: 1 1 45%; }

.v892-copyright {
  color: #888;
  font-size: 1.15rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
}

/* ============ Bottom Mobile Nav ============ */
.v892-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--v892-bnav-h);
  background: linear-gradient(180deg, #2a1015 0%, #1E1E1E 100%);
  border-top: 2px solid var(--v892-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.v892-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--v892-text-dim);
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s, transform 0.15s;
}

.v892-bnav-btn:active { transform: scale(0.92); }
.v892-bnav-btn .v892-bnav-icon { font-size: 22px; line-height: 1; }
.v892-bnav-btn .v892-bnav-label { font-size: 1.05rem; font-weight: 600; }
.v892-bnav-btn:hover { color: var(--v892-accent); }
.v892-bnav-btn.v892-bnav-active { color: var(--v892-coral); }

/* Desktop: hide bottom nav */
@media (min-width: 769px) {
  .v892-bottom-nav { display: none; }
  .v892-wrapper { max-width: 760px; }
  .v892-main { padding-bottom: 30px; }
}

/* Hide desktop-only helpers on mobile */
.v892-desktop-only { display: none; }
@media (min-width: 769px) {
  .v892-desktop-only { display: block; }
  .v892-mobile-only { display: none; }
}

/* ============ Reveal animation ============ */
.v892-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.v892-reveal.v892-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Mobile @media max-width 430px refinements ============ */
@media (max-width: 430px) {
  body { font-size: 1.4rem; }
  .v892-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .v892-game-name { font-size: 1.05rem; }
  .v892-section-title { font-size: 1.7rem; }
  .v892-logo-text { font-size: 1.5rem; }
  .v892-btn { font-size: 1.2rem; padding: 0 0.9rem; }
  .v892-footer-links { grid-template-columns: repeat(2, 1fr); }
  .v892-cta { font-size: 1.45rem; padding: 1.2rem; }
}

@media (max-width: 360px) {
  .v892-grid { grid-template-columns: repeat(2, 1fr); }
  .v892-bnav-btn .v892-bnav-label { font-size: 1rem; }
}
