/* MM88B layout stylesheet - basefiles version
   Prefix: v062- | Palette: #00CED1 | #26A69A | #00FFFF | #333333
   Mobile-first, max-width 430px primary, expands to desktop. */

:root {
  --v062-primary: #00CED1;
  --v062-secondary: #26A69A;
  --v062-accent: #00FFFF;
  --v062-dark: #333333;
  --v062-bg: #0b1f24;
  --v062-bg-2: #102a31;
  --v062-bg-3: #14323b;
  --v062-text: #eafffb;
  --v062-muted: #9fc7c4;
  --v062-gold: #ffd54a;
  --v062-danger: #ff5a6e;
  --v062-radius: 12px;
  --v062-header-h: 56px;
  --v062-nav-h: 60px;
  font-size: 62.5%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--v062-bg);
  color: var(--v062-text);
  font-family: "Segoe UI", "Noto Sans", Roboto, system-ui, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

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

.v062-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  background: var(--v062-bg);
  min-height: 100vh;
}

/* ---------- Header ---------- */
.v062-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v062-header-h);
  background: linear-gradient(90deg, #081519, #0f2a30);
  border-bottom: 2px solid var(--v062-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}

.v062-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v062-text);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 0.5px;
}
.v062-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v062-logo .v062-accent { color: var(--v062-primary); }

.v062-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v062-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.v062-btn:active { transform: scale(0.95); }

.v062-btn-register {
  background: linear-gradient(135deg, var(--v062-primary), var(--v062-secondary));
  color: #04221f;
  box-shadow: 0 3px 10px rgba(0, 206, 209, 0.35);
}
.v062-btn-login {
  background: transparent;
  color: var(--v062-accent);
  border: 1px solid var(--v062-accent);
}

.v062-menu-btn {
  background: transparent;
  border: none;
  color: var(--v062-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px 8px;
}

/* ---------- Mobile menu ---------- */
.v062-mobile-menu {
  position: fixed;
  top: var(--v062-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: #0b1f24;
  border-bottom: 2px solid var(--v062-secondary);
  padding: 10px 12px 16px;
  display: none;
  z-index: 9999;
}
.v062-mobile-menu.v062-menu-open { display: block; }
.v062-mobile-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--v062-text);
  font-size: 1.5rem;
  border-left: 3px solid transparent;
}
.v062-mobile-menu a:hover, .v062-mobile-menu a:focus {
  background: var(--v062-bg-3);
  border-left-color: var(--v062-primary);
}
.v062-mobile-menu .v062-menu-title {
  font-size: 1.2rem;
  color: var(--v062-muted);
  text-transform: uppercase;
  padding: 8px 12px 4px;
}

/* ---------- Main content ---------- */
.v062-main {
  padding-top: calc(var(--v062-header-h) + 6px);
  padding-bottom: calc(var(--v062-nav-h) + 16px);
}

/* ---------- Carousel ---------- */
.v062-carousel {
  position: relative;
  margin: 12px 10px 4px;
  border-radius: var(--v062-radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
.v062-carousel-slide {
  display: none;
  position: relative;
}
.v062-carousel-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.v062-carousel-cap {
  position: absolute;
  left: 12px; bottom: 12px;
  right: 12px;
  background: rgba(3, 18, 22, 0.78);
  border-radius: 8px;
  padding: 8px 12px;
}
.v062-carousel-cap h2 {
  margin: 0 0 4px;
  font-size: 1.6rem;
  color: var(--v062-accent);
}
.v062-carousel-cap p {
  margin: 0;
  font-size: 1.3rem;
  color: var(--v062-text);
}
.v062-carousel-cap .v062-cta {
  display: inline-block;
  margin-top: 6px;
  font-weight: 700;
  color: var(--v062-gold);
  cursor: pointer;
}
.v062-carousel-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.v062-carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.v062-carousel-dot.v062-dot-active {
  background: var(--v062-primary);
  width: 18px;
  border-radius: 4px;
}

/* ---------- Section ---------- */
.v062-section {
  padding: 14px 12px;
}
.v062-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--v062-text);
}
.v062-section-title .v062-accent { color: var(--v062-primary); }
.v062-section-sub {
  font-size: 1.3rem;
  color: var(--v062-muted);
  margin: 0 0 10px;
}
.v062-section-bar {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--v062-primary), var(--v062-secondary));
  border-radius: 2px;
  margin-bottom: 12px;
}

/* ---------- Game grid ---------- */
.v062-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v062-game-card {
  background: var(--v062-bg-2);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #1c3a42;
  transition: transform 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.v062-game-card:active { transform: scale(0.97); border-color: var(--v062-primary); }
.v062-game-card img {
  width: 100%;
  height: 96px;
  object-fit: cover;
}
.v062-game-name {
  padding: 6px 8px;
  font-size: 1.2rem;
  color: var(--v062-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v062-game-cat-label {
  font-size: 1.4rem;
  color: var(--v062-primary);
  font-weight: 700;
  margin: 18px 0 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Promo / feature blocks ---------- */
.v062-promo {
  background: linear-gradient(135deg, #0f2a30, #14323b);
  border: 1px solid var(--v062-secondary);
  border-radius: var(--v062-radius);
  padding: 14px;
  margin: 12px 10px;
}
.v062-promo h3 { margin: 0 0 6px; font-size: 1.7rem; color: var(--v062-accent); }
.v062-promo p { margin: 0 0 10px; font-size: 1.35rem; color: var(--v062-muted); }
.v062-promo .v062-btn { margin-top: 4px; }

.v062-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.v062-feature {
  background: var(--v062-bg-2);
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #1c3a42;
}
.v062-feature .v062-ico {
  font-size: 2.4rem;
  color: var(--v062-primary);
  margin-bottom: 6px;
}
.v062-feature h4 { margin: 0 0 4px; font-size: 1.4rem; color: var(--v062-text); }
.v062-feature p { margin: 0; font-size: 1.2rem; color: var(--v062-muted); }

/* ---------- FAQ ---------- */
.v062-faq-item {
  background: var(--v062-bg-2);
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
  border-left: 3px solid var(--v062-secondary);
}
.v062-faq-item h4 { margin: 0 0 4px; font-size: 1.4rem; color: var(--v062-accent); }
.v062-faq-item p { margin: 0; font-size: 1.3rem; color: var(--v062-text); }

/* ---------- Testimonials ---------- */
.v062-testi {
  background: var(--v062-bg-2);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid #1c3a42;
}
.v062-testi .v062-stars { color: var(--v062-gold); font-size: 1.4rem; }
.v062-testi p { margin: 6px 0 4px; font-size: 1.3rem; color: var(--v062-text); }
.v062-testi .v062-author { font-size: 1.2rem; color: var(--v062-muted); }

/* ---------- Winners ---------- */
.v062-winner-list {
  background: var(--v062-bg-2);
  border-radius: 10px;
  padding: 8px 12px;
}
.v062-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #1c3a42;
  font-size: 1.3rem;
}
.v062-winner-row:last-child { border-bottom: none; }
.v062-winner-amount { color: var(--v062-gold); font-weight: 700; }

/* ---------- Payment ---------- */
.v062-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.v062-pay-chip {
  background: var(--v062-bg-3);
  border: 1px solid #1c3a42;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--v062-text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------- SEO text ---------- */
.v062-seo-text {
  font-size: 1.35rem;
  color: var(--v062-muted);
  line-height: 1.6;
}
.v062-seo-text a { color: var(--v062-primary); font-weight: 600; }
.v062-seo-text h2, .v062-seo-text h3 { color: var(--v062-text); }
.v062-hidden { display: none !important; }

/* ---------- Back to top ---------- */
.v062-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--v062-nav-h) + 14px);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--v062-primary);
  color: #04221f;
  border: none;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998;
  box-shadow: 0 4px 12px rgba(0,206,209,0.4);
}
.v062-to-top.v062-to-top-show { display: flex; }

/* ---------- Footer ---------- */
.v062-footer {
  background: #06141a;
  padding: 18px 12px 12px;
  border-top: 2px solid var(--v062-secondary);
  margin-top: 10px;
}
.v062-footer-brand {
  font-size: 1.5rem;
  color: var(--v062-text);
  margin-bottom: 8px;
}
.v062-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}
.v062-footer-links a {
  font-size: 1.3rem;
  color: var(--v062-muted);
}
.v062-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.v062-footer-copy {
  font-size: 1.2rem;
  color: var(--v062-muted);
  border-top: 1px solid #1c3a42;
  padding-top: 8px;
  margin-top: 8px;
}

/* ---------- Bottom nav ---------- */
.v062-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v062-nav-h);
  background: linear-gradient(180deg, #0f2a30, #06141a);
  border-top: 2px solid var(--v062-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.v062-nav-btn {
  flex: 1 1 0;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v062-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, transform 0.15s ease;
}
.v062-nav-btn:active { transform: scale(0.92); }
.v062-nav-btn .v062-nav-ico { font-size: 2.2rem; line-height: 1; }
.v062-nav-btn .v062-nav-label { font-size: 1.0rem; line-height: 1; }
.v062-nav-btn.v062-nav-active { color: var(--v062-primary); }
.v062-nav-btn.v062-nav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  background: var(--v062-primary);
  border-radius: 0 0 3px 3px;
}
.v062-nav-promo { color: var(--v062-gold); }

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v062-wrapper { max-width: 960px; }
  .v062-header, .v062-mobile-menu, .v062-bottom-nav { max-width: 960px; }
  .v062-bottom-nav { display: none; }
  .v062-main { padding-bottom: 24px; }
  .v062-game-grid { grid-template-columns: repeat(6, 1fr); }
  .v062-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .v062-carousel-slide img { height: 340px; }
}

@media (min-width: 431px) and (max-width: 768px) {
  .v062-game-grid { grid-template-columns: repeat(4, 1fr); }
}
