/* ============================================================
 * jiliok.homes - design.css
 * All classes use prefix "v997-".
 * Mobile-first design. Max content width 430px.
 * Palette: #333333 bg | #ECF0F1 text | #FFAA00 / #FF9500 / #FF9800 accents
 * ============================================================ */

:root {
  --v997-bg: #333333;
  --v997-bg-deep: #1f1f1f;
  --v997-bg-card: #3c3c3c;
  --v997-text: #ECF0F1;
  --v997-text-muted: #b9c0c2;
  --v997-primary: #FFAA00;
  --v997-secondary: #FF9500;
  --v997-accent: #FF9800;
  --v997-border: rgba(236, 240, 241, 0.12);
  --v997-radius: 12px;
  --v997-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
}

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

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

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

/* ---------------------------------------------------------- HEADER */
.v997-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a 0%, #333333 100%);
  border-bottom: 1px solid var(--v997-border);
  box-shadow: var(--v997-shadow);
}
.v997-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 1.2rem; height: 5.4rem;
}
.v997-brand { display: flex; align-items: center; gap: 0.6rem; }
.v997-brand img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.v997-brand-name { font-size: 1.6rem; font-weight: 700; color: var(--v997-primary); letter-spacing: 0.5px; }

.v997-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.v997-btn {
  border: none; cursor: pointer; font-weight: 700;
  font-size: 1.25rem; padding: 0.7rem 1.2rem; border-radius: 8px;
  min-height: 3.6rem; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.v997-btn:active { transform: scale(0.95); }
.v997-btn-login { background: transparent; color: var(--v997-text); border: 1px solid var(--v997-primary); }
.v997-btn-register { background: linear-gradient(135deg, var(--v997-primary), var(--v997-secondary)); color: #1f1f1f; }

.v997-menu-btn {
  background: transparent; border: 1px solid var(--v997-border);
  color: var(--v997-text); width: 3.6rem; height: 3.6rem; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.6rem;
}
.v997-menu-btn-active { background: var(--v997-primary); color: #1f1f1f; }

/* ---------------------------------------------------------- MOBILE MENU */
.v997-mobile-menu {
  position: fixed; top: 5.4rem; left: 0; right: 0;
  background: var(--v997-bg-deep);
  border-bottom: 1px solid var(--v997-border);
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  z-index: 999;
}
.v997-menu-open { max-height: 60rem; }
.v997-mobile-menu a {
  display: block; padding: 1.2rem 1.6rem;
  color: var(--v997-text); border-bottom: 1px solid var(--v997-border);
  font-size: 1.4rem;
}
.v997-mobile-menu a:hover { background: rgba(255, 170, 0, 0.1); color: var(--v997-primary); }

/* ---------------------------------------------------------- LAYOUT */
.v997-main { padding-top: 5.4rem; padding-bottom: 7.5rem; }

/* ---------------------------------------------------------- HERO CAROUSEL */
.v997-hero { position: relative; margin: 1rem 0; border-radius: var(--v997-radius); overflow: hidden; box-shadow: var(--v997-shadow); }
.v997-slide { display: none; position: relative; }
.v997-slide-active { display: block; }
.v997-slide img { width: 100%; height: 18rem; object-fit: cover; cursor: pointer; }
.v997-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
  padding: 1.5rem 1.2rem 1rem; color: var(--v997-text);
}
.v997-slide-cap strong { color: var(--v997-primary); font-size: 1.5rem; display: block; margin-bottom: 0.3rem; }
.v997-dots { position: absolute; bottom: 0.6rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; z-index: 2; }
.v997-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: rgba(236,240,241,0.4); cursor: pointer; }
.v997-dot-active { background: var(--v997-primary); width: 1.6rem; border-radius: 4px; }

/* ---------------------------------------------------------- SECTIONS */
.v997-section { margin: 2rem 0; }
.v997-section-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.v997-h1 { font-size: 2rem; font-weight: 800; color: var(--v997-primary); line-height: 2.4rem; }
.v997-h2 { font-size: 1.7rem; font-weight: 700; color: var(--v997-text); display: flex; align-items: center; gap: 0.6rem; }
.v997-h2 i { color: var(--v997-accent); }
.v997-h3 { font-size: 1.4rem; font-weight: 600; color: var(--v997-primary); margin: 1rem 0 0.5rem; }
.v997-lead { color: var(--v997-text-muted); font-size: 1.3rem; }

/* ---------------------------------------------------------- GAME GRID */
.v997-cat-title {
  font-size: 1.4rem; font-weight: 700; margin: 1.4rem 0 0.8rem;
  padding-left: 0.8rem; border-left: 4px solid var(--v997-primary); color: var(--v997-text);
}
.v997-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.v997-game-card {
  background: var(--v997-bg-card); border: 1px solid var(--v997-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  opacity: 0; transform: translateY(10px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.v997-card-visible { opacity: 1; transform: translateY(0); }
.v997-game-card:active { transform: scale(0.96); }
.v997-game-card img { width: 100%; height: 8.5rem; object-fit: cover; background: #222; }
.v997-game-name { padding: 0.5rem 0.4rem; font-size: 1.05rem; color: var(--v997-text); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------------------------------------------------------- INFO CARDS */
.v997-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.v997-card {
  background: var(--v997-bg-card); border: 1px solid var(--v997-border);
  border-radius: var(--v997-radius); padding: 1.2rem; box-shadow: var(--v997-shadow);
}
.v997-card p { color: var(--v997-text-muted); font-size: 1.25rem; line-height: 1.7rem; }
.v997-card .v997-link-row { margin-top: 0.8rem; }
.v997-text-link { color: var(--v997-primary); font-weight: 700; }
.v997-text-link-strong { color: var(--v997-accent); font-weight: 800; }

/* ---------------------------------------------------------- STEPS */
.v997-steps { counter-reset: step; padding-left: 0; list-style: none; }
.v997-steps li {
  position: relative; padding: 0.8rem 0.8rem 0.8rem 3.4rem; margin-bottom: 0.6rem;
  background: var(--v997-bg-card); border-radius: 8px; border-left: 3px solid var(--v997-primary);
  color: var(--v997-text-muted);
}
.v997-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0.6rem; top: 0.8rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--v997-primary); color: #1f1f1f; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}

/* ---------------------------------------------------------- FAQ */
.v997-faq-item { background: var(--v997-bg-card); border: 1px solid var(--v997-border); border-radius: 8px; margin-bottom: 0.6rem; overflow: hidden; }
.v997-faq-q {
  width: 100%; text-align: left; background: transparent; border: none; cursor: pointer;
  padding: 1rem 1.2rem; color: var(--v997-text); font-size: 1.3rem; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.v997-faq-q i { color: var(--v997-primary); transition: transform 0.3s; }
.v997-faq-open .v997-faq-q i { transform: rotate(45deg); }
.v997-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; padding: 0 1.2rem; color: var(--v997-text-muted); }
.v997-faq-open .v997-faq-a { max-height: 30rem; padding: 0 1.2rem 1rem; }

/* ---------------------------------------------------------- WINNERS / TESTIMONIALS */
.v997-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.v997-chip { background: var(--v997-bg-card); border: 1px solid var(--v997-border); border-radius: 20px; padding: 0.5rem 1rem; font-size: 1.15rem; color: var(--v997-text); }
.v997-chip strong { color: var(--v997-primary); }
.v997-winners, .v997-testimonials { display: grid; gap: 0.6rem; }
.v997-winner, .v997-testi { background: var(--v997-bg-card); border-radius: 8px; padding: 0.8rem 1rem; border: 1px solid var(--v997-border); font-size: 1.2rem; color: var(--v997-text-muted); }
.v997-winner strong { color: var(--v997-accent); }

/* ---------------------------------------------------------- PAYMENTS / APP CTA */
.v997-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; text-align: center; }
.v997-pay-grid div { background: var(--v997-bg-card); border-radius: 8px; padding: 0.8rem 0.4rem; font-size: 1rem; color: var(--v997-text-muted); }
.v997-pay-grid i { font-size: 1.8rem; color: var(--v997-primary); display: block; margin-bottom: 0.3rem; }
.v997-app-cta { display: flex; align-items: center; gap: 1rem; background: linear-gradient(135deg, #3c3c3c, #2a2a2a); border: 1px solid var(--v997-primary); border-radius: var(--v997-radius); padding: 1.2rem; }
.v997-app-cta i { font-size: 2.4rem; color: var(--v997-primary); }

/* ---------------------------------------------------------- PROMO BANNER */
.v997-promo-banner {
  background: linear-gradient(135deg, var(--v997-primary), var(--v997-accent));
  color: #1f1f1f; border-radius: var(--v997-radius); padding: 1.4rem; text-align: center; margin: 1.5rem 0;
}
.v997-promo-banner strong { font-size: 1.6rem; display: block; margin-bottom: 0.3rem; }
.v997-btn-promo { background: #1f1f1f; color: var(--v997-primary); border: none; cursor: pointer; padding: 0.9rem 2rem; border-radius: 8px; font-weight: 800; font-size: 1.3rem; margin-top: 0.8rem; min-height: 3.6rem; }
.v997-btn-promo:active { transform: scale(0.96); }

/* ---------------------------------------------------------- FOOTER */
.v997-footer { background: var(--v997-bg-deep); border-top: 1px solid var(--v997-border); padding: 2rem 0 1rem; margin-top: 2rem; }
.v997-footer p { color: var(--v997-text-muted); font-size: 1.15rem; margin-bottom: 1rem; }
.v997-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin-bottom: 1rem; }
.v997-footer-links a { color: var(--v997-text-muted); font-size: 1.15rem; }
.v997-footer-links a:hover { color: var(--v997-primary); }
.v997-footer-copy { border-top: 1px solid var(--v997-border); padding-top: 1rem; color: var(--v997-text-muted); font-size: 1.05rem; text-align: center; }

/* ---------------------------------------------------------- BOTTOM NAV */
.v997-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  height: 6rem; background: var(--v997-bg-deep); border-top: 1px solid var(--v997-border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.v997-bottom-nav-btn {
  flex: 1; background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; color: var(--v997-text-muted); font-size: 1rem; min-width: 60px; padding: 0.3rem;
  transition: color 0.2s, transform 0.2s;
}
.v997-bottom-nav-btn .material-icons, .v997-bottom-nav-btn ion-icon, .v997-bottom-nav-btn i { font-size: 2.2rem; }
.v997-bottom-nav-btn:active { transform: scale(0.92); }
.v997-bottom-nav-btn:hover { color: var(--v997-primary); }
.v997-nav-active { color: var(--v997-primary); }

/* ---------------------------------------------------------- DESKTOP */
@media (min-width: 769px) {
  .v997-bottom-nav { display: none; }
  .v997-container, .v997-header-inner, .v997-footer .v997-container { max-width: 760px; }
  .v997-grid { grid-template-columns: repeat(6, 1fr); }
  .v997-main { padding-bottom: 2rem; }
}

/* Accessibility focus */
:focus-visible { outline: 2px solid var(--v997-primary); outline-offset: 2px; }
