/*!
 * 79p core stylesheet - basefiles build
 * Prefix: v2ee-
 * Palette: #1A1A2E (dark bg) | #F0F0F0 (light text) | #7B68EE (purple accent)
 * Mobile-first, max-width 430px.
 * All custom classes use the v2ee- prefix.
 */

:root {
  --v2ee-primary: #7B68EE;
  --v2ee-bg: #1A1A2E;
  --v2ee-bg-2: #232347;
  --v2ee-bg-3: #14142a;
  --v2ee-text: #F0F0F0;
  --v2ee-text-dim: #b9b9d6;
  --v2ee-accent: #7B68EE;
  --v2ee-accent-2: #FFD166;
  --v2ee-danger: #ef4b6e;
  --v2ee-success: #38d39f;
  --v2ee-radius: 14px;
  --v2ee-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --v2ee-header-h: 58px;
  --v2ee-bottomnav-h: 62px;
  font-size: 62.5%;
}

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

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

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

img { max-width: 100%; display: block; }

a { color: var(--v2ee-accent); text-decoration: none; }

.v2ee-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(180deg, #1A1A2E 0%, #14142a 100%);
  position: relative;
}

/* ===== Header ===== */
.v2ee-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v2ee-header-h);
  background: rgba(26, 26, 46, 0.96);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  border-bottom: 1px solid rgba(123, 104, 238, 0.25);
}

.v2ee-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--v2ee-text);
}

.v2ee-logo img { width: 30px; height: 30px; border-radius: 6px; }

.v2ee-logo span { color: var(--v2ee-accent); }

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

.v2ee-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.v2ee-btn:active { transform: scale(0.94); }

.v2ee-btn-login {
  background: transparent;
  color: var(--v2ee-text);
  border: 1px solid var(--v2ee-accent);
}
.v2ee-btn-login:hover { background: rgba(123,104,238,0.12); }

.v2ee-btn-register {
  background: linear-gradient(135deg, #7B68EE 0%, #9d8cf0 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(123,104,238,0.45);
}

.v2ee-menu-btn {
  background: transparent;
  border: none;
  color: var(--v2ee-text);
  font-size: 2.2rem;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 8px;
}
.v2ee-menu-btn:hover { background: rgba(123,104,238,0.12); }

/* ===== Mobile menu drawer ===== */
.v2ee-mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  max-width: 430px;
  margin: 0 auto;
  background: rgba(20, 20, 42, 0.98);
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 80px 18px 24px;
  overflow-y: auto;
}
.v2ee-mobile-menu.v2ee-menu-open { transform: translateX(0); }

.v2ee-menu-close {
  position: absolute;
  top: 16px; right: 16px;
  background: transparent;
  border: none;
  color: var(--v2ee-text);
  font-size: 2.4rem;
  width: 44px; height: 44px;
  cursor: pointer;
}

.v2ee-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v2ee-accent);
  margin-bottom: 14px;
}

.v2ee-menu-link {
  display: block;
  padding: 14px 12px;
  color: var(--v2ee-text);
  border-bottom: 1px solid rgba(123,104,238,0.15);
  font-size: 1.5rem;
  transition: padding-left .15s ease, color .15s ease;
}
.v2ee-menu-link:hover { padding-left: 18px; color: var(--v2ee-accent); }

.v2ee-menu-promo {
  display: flex; gap: 10px; margin-top: 22px;
}
.v2ee-menu-promo .v2ee-btn { flex: 1; min-height: 44px; }

/* ===== Main ===== */
main {
  padding-top: calc(var(--v2ee-header-h) + 8px);
  padding-bottom: 24px;
}

/* ===== Carousel ===== */
.v2ee-carousel {
  position: relative;
  margin: 10px 12px 14px;
  border-radius: var(--v2ee-radius);
  overflow: hidden;
  box-shadow: var(--v2ee-shadow);
}
.v2ee-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v2ee-slide.v2ee-slide-active { display: block; }
.v2ee-slide img { width: 100%; height: 188px; object-fit: cover; }
.v2ee-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(0deg, rgba(20,20,42,0.88) 0%, rgba(20,20,42,0) 100%);
  font-size: 1.4rem;
  font-weight: 600;
}
.v2ee-slide-tag {
  display: inline-block;
  background: var(--v2ee-accent);
  color: #fff;
  font-size: 1.1rem;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 8px;
}

.v2ee-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(26,26,46,0.7);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
#v2ee-carousel-prev { left: 8px; }
#v2ee-carousel-next { right: 8px; }

.v2ee-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v2ee-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(240,240,240,0.5);
  border: none; cursor: pointer;
}
.v2ee-dot.v2ee-dot-active { background: var(--v2ee-accent); width: 18px; border-radius: 4px; }

/* ===== Sections ===== */
.v2ee-section { padding: 16px 12px; }
.v2ee-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.v2ee-section-title {
  font-size: 1.8rem; font-weight: 700; color: var(--v2ee-text);
  display: flex; align-items: center; gap: 8px;
}
.v2ee-section-title i { color: var(--v2ee-accent); }
.v2ee-section-more { font-size: 1.25rem; color: var(--v2ee-accent); }

.v2ee-card {
  background: var(--v2ee-bg-2);
  border-radius: var(--v2ee-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(123,104,238,0.18);
}

/* ===== Hero H1 ===== */
.v2ee-hero {
  padding: 10px 14px 4px;
}
.v2ee-hero h1 {
  font-size: 2.1rem;
  line-height: 2.6rem;
  font-weight: 800;
  background: linear-gradient(90deg, #F0F0F0 0%, #7B68EE 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v2ee-hero p {
  margin-top: 8px;
  color: var(--v2ee-text-dim);
  font-size: 1.35rem;
  line-height: 2rem;
}

/* ===== Game grid ===== */
.v2ee-cat-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(123,104,238,0.18);
  color: var(--v2ee-accent);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 14px 0 10px;
}
.v2ee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.v2ee-game {
  cursor: pointer;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.v2ee-game-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(123,104,238,0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}
.v2ee-game:active .v2ee-game-img { transform: scale(0.93); box-shadow: 0 0 12px rgba(123,104,238,0.6); }
.v2ee-game-name {
  margin-top: 4px;
  font-size: 1.05rem;
  color: var(--v2ee-text-dim);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== Promo / info blocks ===== */
.v2ee-promo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.v2ee-promo-box {
  background: linear-gradient(135deg, rgba(123,104,238,0.18), rgba(123,104,238,0.05));
  border: 1px solid rgba(123,104,238,0.3);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.v2ee-promo-box i { font-size: 2.4rem; color: var(--v2ee-accent-2); }
.v2ee-promo-box h3 { font-size: 1.35rem; margin: 6px 0 4px; color: var(--v2ee-text); }
.v2ee-promo-box p { font-size: 1.15rem; color: var(--v2ee-text-dim); line-height: 1.6rem; }

.v2ee-feature-list { list-style: none; }
.v2ee-feature-list li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(123,104,238,0.2);
  font-size: 1.3rem; color: var(--v2ee-text-dim);
}
.v2ee-feature-list li:last-child { border-bottom: none; }
.v2ee-feature-list i { color: var(--v2ee-accent); font-size: 1.6rem; margin-top: 2px; }

.v2ee-steps { counter-reset: step; }
.v2ee-step {
  position: relative;
  padding: 10px 12px 10px 42px;
  margin-bottom: 8px;
  background: var(--v2ee-bg-3);
  border-radius: 10px;
  font-size: 1.25rem; color: var(--v2ee-text-dim);
}
.v2ee-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 10px; top: 8px;
  width: 24px; height: 24px;
  background: var(--v2ee-accent);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 700;
}

.v2ee-faq-item {
  border-bottom: 1px solid rgba(123,104,238,0.2);
  padding: 10px 0;
}
.v2ee-faq-q { font-weight: 600; color: var(--v2ee-text); font-size: 1.35rem; margin-bottom: 4px; }
.v2ee-faq-a { color: var(--v2ee-text-dim); font-size: 1.2rem; line-height: 1.7rem; }

.v2ee-testi {
  background: var(--v2ee-bg-3);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
}
.v2ee-testi-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.v2ee-testi-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--v2ee-accent); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.v2ee-testi-name { font-size: 1.3rem; font-weight: 600; color: var(--v2ee-text); }
.v2ee-testi-stars { color: var(--v2ee-accent-2); font-size: 1.1rem; margin-left: auto; }
.v2ee-testi-text { color: var(--v2ee-text-dim); font-size: 1.2rem; line-height: 1.7rem; }

.v2ee-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.v2ee-pay-chip {
  background: var(--v2ee-bg-3);
  border: 1px solid rgba(123,104,238,0.3);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.15rem;
  color: var(--v2ee-text);
  display: inline-flex; align-items: center; gap: 6px;
}
.v2ee-pay-chip i { color: var(--v2ee-accent); }

.v2ee-winners {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.v2ee-winner {
  flex: 0 0 160px;
  background: var(--v2ee-bg-3);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(123,104,238,0.2);
}
.v2ee-winner-amount { color: var(--v2ee-accent-2); font-size: 1.5rem; font-weight: 700; }
.v2ee-winner-name { color: var(--v2ee-text); font-size: 1.2rem; margin-top: 4px; }
.v2ee-winner-game { color: var(--v2ee-text-dim); font-size: 1.1rem; }

.v2ee-app-cta {
  background: linear-gradient(135deg, #7B68EE 0%, #5a4ad6 100%);
  border-radius: var(--v2ee-radius);
  padding: 16px;
  color: #fff;
  text-align: center;
}
.v2ee-app-cta h3 { font-size: 1.6rem; margin-bottom: 6px; }
.v2ee-app-cta p { font-size: 1.25rem; line-height: 1.7rem; margin-bottom: 12px; }
.v2ee-app-cta .v2ee-btn { background: #fff; color: var(--v2ee-accent); }

.v2ee-inline-link {
  color: var(--v2ee-accent);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--v2ee-accent);
}
.v2ee-inline-link:hover { color: var(--v2ee-accent-2); border-bottom-color: var(--v2ee-accent-2); }

/* ===== Footer ===== */
.v2ee-footer {
  background: var(--v2ee-bg-3);
  padding: 20px 14px calc(var(--v2ee-bottomnav-h) + 20px);
  border-top: 1px solid rgba(123,104,238,0.2);
}
.v2ee-footer-brand { font-size: 1.3rem; color: var(--v2ee-text-dim); line-height: 1.8rem; margin-bottom: 14px; }
.v2ee-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.v2ee-footer-links a {
  font-size: 1.15rem; color: var(--v2ee-text);
  background: var(--v2ee-bg-2);
  padding: 6px 10px; border-radius: 8px;
  border: 1px solid rgba(123,104,238,0.2);
}
.v2ee-footer-links a:hover { color: var(--v2ee-accent); border-color: var(--v2ee-accent); }
.v2ee-footer-copy { font-size: 1.1rem; color: var(--v2ee-text-dim); text-align: center; }

/* ===== Bottom navigation ===== */
.v2ee-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--v2ee-bottomnav-h);
  background: rgba(20, 20, 42, 0.98);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(123,104,238,0.3);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.v2ee-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v2ee-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s ease, transform .15s ease;
  position: relative;
}
.v2ee-bottomnav-btn i, .v2ee-bottomnav-btn .material-icons-outlined {
  font-size: 22px;
}
.v2ee-bottomnav-btn span { font-size: 1.05rem; }
.v2ee-bottomnav-btn:hover { color: var(--v2ee-accent); }
.v2ee-bottomnav-btn:active { transform: scale(0.9); }
.v2ee-bottomnav-active { color: var(--v2ee-accent) !important; }
.v2ee-bottomnav-active::after {
  content: "";
  position: absolute; top: 0;
  width: 26px; height: 3px;
  background: var(--v2ee-accent);
  border-radius: 0 0 4px 4px;
}
.v2ee-bottomnav-badge {
  position: absolute;
  top: 8px; right: 18px;
  background: var(--v2ee-danger);
  color: #fff;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 0 5px;
  min-width: 16px;
  line-height: 16px;
  text-align: center;
}

/* ===== Desktop: hide bottom nav, widen wrapper ===== */
@media (min-width: 769px) {
  .v2ee-bottomnav { display: none; }
  .v2ee-wrapper { max-width: 760px; }
  .v2ee-header { max-width: 760px; }
  .v2ee-mobile-menu { max-width: 760px; }
  .v2ee-footer { padding-bottom: 24px; }
  .v2ee-grid { grid-template-columns: repeat(8, 1fr); }
  .v2ee-promo-row { grid-template-columns: repeat(4, 1fr); }
}

/* Mobile bottom padding so content is never hidden behind the nav */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--v2ee-bottomnav-h) + 16px); }
}
