/* ============================================================
   uu8888.homes - Core Stylesheet (basefile)
   Prefix : v6ef-
   Palette: #1B263B (deep) | #36454F (slate)
   Mobile-first, container max-width: 430px
   ============================================================ */

:root {
  --v6ef-primary: #1B263B;
  --v6ef-secondary: #36454F;
  --v6ef-accent: #F4B41A;
  --v6ef-accent-2: #E2533C;
  --v6ef-bg: #0F172A;
  --v6ef-bg-soft: #16203A;
  --v6ef-text: #F4F6FB;
  --v6ef-text-dim: #B6C0D2;
  --v6ef-border: rgba(244, 180, 26, 0.22);
  --v6ef-radius: 14px;
  --v6ef-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, sans-serif;
  background: var(--v6ef-bg);
  color: var(--v6ef-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}

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

/* ---------- Layout primitives ---------- */
.v6ef-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--v6ef-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: var(--v6ef-shadow);
}

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

main.v6ef-main {
  padding-top: 6.2rem;
  padding-bottom: 2rem;
}

/* ---------- Header / Top Nav ---------- */
.v6ef-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v6ef-primary) 0%, var(--v6ef-secondary) 100%);
  border-bottom: 2px solid var(--v6ef-accent);
  box-shadow: 0 4px 14px rgba(0,0,0,0.45);
}

.v6ef-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  gap: 0.6rem;
}

.v6ef-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.v6ef-logo {
  width: 3rem; height: 3rem;
  border-radius: 8px;
  border: 1px solid var(--v6ef-accent);
  background: #fff;
  object-fit: contain;
}

.v6ef-brand-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v6ef-accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.v6ef-brand-name span { color: var(--v6ef-text); }

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

/* ---------- Buttons ---------- */
.v6ef-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.35rem;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  min-height: 36px;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, background .15s ease;
  text-decoration: none;
  line-height: 1;
}

.v6ef-btn:active { transform: scale(0.94); }

.v6ef-btn-primary {
  background: linear-gradient(135deg, var(--v6ef-accent) 0%, #d99512 100%);
  color: #1B263B;
}

.v6ef-btn-secondary {
  background: transparent;
  color: var(--v6ef-text);
  border: 1px solid var(--v6ef-text-dim);
}

.v6ef-btn-ghost {
  background: var(--v6ef-bg-soft);
  color: var(--v6ef-accent);
  border: 1px solid var(--v6ef-border);
}

.v6ef-btn-block { width: 100%; display: flex; }
.v6ef-btn-lg { padding: 1.1rem 1.4rem; font-size: 1.55rem; min-height: 48px; }

/* ---------- Menu toggle ---------- */
.v6ef-menu-toggle {
  background: transparent;
  border: none;
  color: var(--v6ef-text);
  font-size: 2rem;
  cursor: pointer;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.v6ef-menu-toggle:hover { color: var(--v6ef-accent); }

/* ---------- Mobile dropdown menu ---------- */
.v6ef-mobile-menu {
  position: fixed;
  top: 5.6rem; right: 0;
  width: 78%;
  max-width: 320px;
  background: var(--v6ef-primary);
  border-left: 2px solid var(--v6ef-accent);
  border-bottom: 2px solid var(--v6ef-accent);
  padding: 1rem 0;
  z-index: 9999;
  transform: translateX(110%);
  transition: transform .28s ease;
  list-style: none;
  max-height: calc(100vh - 5.6rem);
  overflow-y: auto;
}

.v6ef-mobile-menu.v6ef-menu-open { transform: translateX(0); }

.v6ef-mobile-menu li a {
  display: block;
  padding: 1.05rem 1.6rem;
  color: var(--v6ef-text);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.v6ef-mobile-menu li a:hover,
.v6ef-mobile-menu li a:focus {
  background: rgba(244, 180, 26, 0.12);
  color: var(--v6ef-accent);
}

/* ---------- Hero / Carousel ---------- */
.v6ef-hero {
  position: relative;
  margin: 1rem 0 0.6rem;
  border-radius: var(--v6ef-radius);
  overflow: hidden;
  box-shadow: var(--v6ef-shadow);
}

.v6ef-slide {
  display: none;
  position: relative;
  cursor: pointer;
}
.v6ef-slide.v6ef-slide-active { display: block; }

.v6ef-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.v6ef-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(15,23,42,0.92) 30%, transparent);
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

.v6ef-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.v6ef-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}
.v6ef-dot.v6ef-dot-active { background: var(--v6ef-accent); }

/* ---------- Section / headings ---------- */
.v6ef-section {
  margin: 1.6rem 0;
  padding: 1.3rem;
  background: var(--v6ef-bg-soft);
  border: 1px solid var(--v6ef-border);
  border-radius: var(--v6ef-radius);
}

.v6ef-section-title {
  font-size: 1.7rem;
  color: var(--v6ef-accent);
  font-weight: 800;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 4px solid var(--v6ef-accent);
  padding-left: 0.7rem;
}

.v6ef-section p {
  color: var(--v6ef-text-dim);
  margin-bottom: 0.7rem;
  font-size: 1.42rem;
}

h1.v6ef-h1 {
  font-size: 2rem;
  color: var(--v6ef-text);
  margin: 1.2rem 0 0.6rem;
  font-weight: 800;
  line-height: 1.3;
}
h2.v6ef-h2 {
  font-size: 1.7rem;
  color: var(--v6ef-accent);
  margin: 1.4rem 0 0.6rem;
  font-weight: 700;
}
h3.v6ef-h3 {
  font-size: 1.45rem;
  color: var(--v6ef-text);
  margin: 1rem 0 0.4rem;
  font-weight: 700;
}

/* ---------- Game grid ---------- */
.v6ef-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.4rem 0 0.7rem;
  padding: 0 0.3rem;
}
.v6ef-cat-head h2 {
  font-size: 1.5rem;
  color: var(--v6ef-accent);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

.v6ef-game-card {
  background: var(--v6ef-bg-soft);
  border: 1px solid var(--v6ef-border);
  border-radius: 12px;
  padding: 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  display: block;
}
.v6ef-game-card:hover,
.v6ef-game-card:active {
  transform: translateY(-2px);
  border-color: var(--v6ef-accent);
}

.v6ef-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.v6ef-game-name {
  font-size: 1.15rem;
  color: var(--v6ef-text);
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Promo text links ---------- */
.v6ef-link-text {
  color: var(--v6ef-accent);
  font-weight: 700;
  cursor: pointer;
}
.v6ef-link-text:hover { color: var(--v6ef-accent-2); text-decoration: underline; }

.v6ef-callout {
  background: linear-gradient(135deg, rgba(244,180,26,0.15), rgba(226,83,60,0.12));
  border: 1px solid var(--v6ef-accent);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
  text-align: center;
}

/* ---------- Lists ---------- */
.v6ef-list { list-style: none; padding: 0; margin: 0.6rem 0; }
.v6ef-list li {
  padding: 0.55rem 0 0.55rem 1.8rem;
  position: relative;
  color: var(--v6ef-text-dim);
  font-size: 1.4rem;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.v6ef-list li:before {
  content: "▸";
  position: absolute;
  left: 0.4rem;
  color: var(--v6ef-accent);
}

.v6ef-faq-item {
  border-bottom: 1px solid var(--v6ef-border);
  padding: 0.7rem 0;
}
.v6ef-faq-q { font-weight: 700; color: var(--v6ef-accent); font-size: 1.4rem; }
.v6ef-faq-a { color: var(--v6ef-text-dim); margin-top: 0.3rem; font-size: 1.35rem; }

/* ---------- Footer ---------- */
.v6ef-footer {
  margin-top: 1.8rem;
  padding: 1.6rem 1.4rem 2rem;
  background: var(--v6ef-primary);
  border-top: 2px solid var(--v6ef-accent);
  color: var(--v6ef-text-dim);
  font-size: 1.3rem;
}

.v6ef-footer-brand { color: var(--v6ef-accent); font-weight: 800; font-size: 1.6rem; margin-bottom: 0.4rem; }
.v6ef-footer p { margin-bottom: 0.6rem; }

.v6ef-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin: 0.8rem 0;
}
.v6ef-footer-links a {
  flex: 1 1 45%;
  background: var(--v6ef-bg-soft);
  border: 1px solid var(--v6ef-border);
  color: var(--v6ef-text);
  font-size: 1.25rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  text-align: center;
}
.v6ef-footer-links a:hover { color: var(--v6ef-accent); border-color: var(--v6ef-accent); }

.v6ef-copyright {
  margin-top: 1rem;
  font-size: 1.2rem;
  text-align: center;
  color: var(--v6ef-text-dim);
  border-top: 1px dashed rgba(255,255,255,0.1);
  padding-top: 0.8rem;
}

/* ---------- Mobile Bottom Navigation ---------- */
.v6ef-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(135deg, var(--v6ef-primary), var(--v6ef-secondary));
  border-top: 2px solid var(--v6ef-accent);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.5);
}

.v6ef-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--v6ef-text-dim);
  font-size: 1.05rem;
  font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0.2rem;
  transition: color .15s ease, transform .15s ease;
}
.v6ef-bottomnav-btn .v6ef-bottomnav-icon { font-size: 2.2rem; line-height: 1; }
.v6ef-bottomnav-btn:hover { color: var(--v6ef-accent); }
.v6ef-bottomnav-btn:active { transform: scale(0.92); }
.v6ef-bottomnav-active { color: var(--v6ef-accent) !important; }
.v6ef-bottomnav-active .v6ef-bottomnav-icon { filter: drop-shadow(0 0 6px var(--v6ef-accent)); }

/* ---------- Utilities ---------- */
.v6ef-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.v6ef-tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: rgba(244,180,26,0.14);
  color: var(--v6ef-accent);
  border-radius: 20px;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0.2rem 0.2rem 0.2rem 0;
}

.v6ef-hidden { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  main.v6ef-main { padding-bottom: 80px; } /* clearance for bottom nav */
}

@media (min-width: 769px) {
  .v6ef-bottomnav { display: none; }
}

/* Desktop companion nav (optional, hidden on mobile) */
.v6ef-desktop-nav { display: none; }
@media (min-width: 769px) {
  .v6ef-desktop-nav {
    display: flex;
    gap: 1.2rem;
    align-items: center;
  }
  .v6ef-desktop-nav a {
    color: var(--v6ef-text);
    font-size: 1.4rem;
    font-weight: 600;
  }
  .v6ef-desktop-nav a:hover { color: var(--v6ef-accent); }
}
