/* ============================================================
 * TT88 Team - Core Stylesheet (layout-9b33.css)
 * All classes use the v32c- prefix for namespace isolation.
 * Color palette: #00FFFF | #008B8B | #AFEEEE | #F5F5F5 | #0E1621
 * ============================================================ */

:root {
  --v32c-primary: #00FFFF;
  --v32c-secondary: #008B8B;
  --v32c-soft: #AFEEEE;
  --v32c-bg: #0E1621;
  --v32c-bg-2: #122131;
  --v32c-bg-3: #0a121b;
  --v32c-text: #F5F5F5;
  --v32c-muted: #9fb6c2;
  --v32c-accent: #FFD24A;
  --v32c-danger: #FF5C7A;
  --v32c-radius: 14px;
  --v32c-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  --v32c-header-h: 56px;
  --v32c-bottomnav-h: 60px;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Roboto", "Noto Sans", system-ui, sans-serif;
  background: var(--v32c-bg);
  color: var(--v32c-text);
  line-height: 1.5;
  font-size: 1.5rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v32c-primary); text-decoration: none; }
ul { list-style: none; }

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

/* ===== Header ===== */
.v32c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v32c-header-h);
  background: var(--v32c-bg-3);
  border-bottom: 2px solid var(--v32c-secondary);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.v32c-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v32c-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.v32c-logo img { width: 30px; height: 30px; border-radius: 8px; }
.v32c-logo span b { color: var(--v32c-primary); }

.v32c-header-actions { display: flex; align-items: center; gap: 8px; }
.v32c-btn {
  border: 0;
  border-radius: 22px;
  padding: 8px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.v32c-btn:active { transform: scale(.94); }
.v32c-btn-register {
  background: linear-gradient(135deg, var(--v32c-primary), var(--v32c-secondary));
  color: #04222a;
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.25);
}
.v32c-btn-login {
  background: transparent;
  color: var(--v32c-primary);
  border: 1.5px solid var(--v32c-primary);
}
.v32c-menu-btn {
  background: transparent;
  border: 0;
  color: var(--v32c-primary);
  font-size: 2rem;
  width: 36px; height: 36px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ===== Mobile expandable nav menu ===== */
.v32c-mobile-menu {
  position: fixed;
  top: var(--v32c-header-h); right: 0;
  width: 78%; max-width: 320px;
  background: var(--v32c-bg-2);
  border-left: 2px solid var(--v32c-secondary);
  transform: translateX(110%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 14px;
  height: calc(100vh - var(--v32c-header-h));
  overflow-y: auto;
}
.v32c-mobile-menu.v32c-menu-open { transform: translateX(0); }
.v32c-mobile-menu h4 {
  color: var(--v32c-soft);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 10px 4px 6px;
}
.v32c-mobile-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--v32c-text);
  font-size: 1.35rem;
  border-bottom: 1px dashed rgba(0, 255, 255, 0.12);
}
.v32c-mobile-menu a:active { background: rgba(0, 255, 255, 0.08); }
.v32c-menu-overlay {
  position: fixed; inset: var(--v32c-header-h) 0 0 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}
.v32c-menu-overlay.v32c-menu-open { opacity: 1; pointer-events: auto; }

/* ===== Main ===== */
.v32c-main { padding-top: calc(var(--v32c-header-h) + 6px); }

/* ===== Carousel ===== */
.v32c-carousel {
  position: relative;
  border-radius: var(--v32c-radius);
  overflow: hidden;
  margin: 10px 12px;
  box-shadow: var(--v32c-shadow);
  aspect-ratio: 16/9;
  background: #000;
}
.v32c-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex;
  align-items: flex-end;
}
.v32c-slide img { width: 100%; height: 100%; object-fit: cover; }
.v32c-slide.v32c-slide-active { opacity: 1; }
.v32c-slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 22px 14px 12px;
  background: linear-gradient(to top, rgba(14,22,33,.9), transparent);
  color: var(--v32c-text);
  font-weight: 700;
  font-size: 1.4rem;
}
.v32c-dots {
  position: absolute; bottom: 8px; right: 10px;
  display: flex; gap: 5px;
}
.v32c-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.v32c-dot.v32c-dot-active { background: var(--v32c-primary); }

/* ===== Section ===== */
.v32c-section { padding: 16px 12px; }
.v32c-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.7rem;
  margin-bottom: 10px;
  color: var(--v32c-text);
  border-left: 4px solid var(--v32c-primary);
  padding-left: 8px;
}
.v32c-section-title i { color: var(--v32c-primary); }

/* ===== Game grid ===== */
.v32c-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.v32c-game-card {
  background: var(--v32c-bg-2);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(0, 139, 139, 0.4);
  transition: transform .15s ease, border-color .2s ease;
  position: relative;
}
.v32c-game-card:active { transform: scale(.96); border-color: var(--v32c-primary); }
.v32c-game-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  background: #0a121b;
}
.v32c-game-card span {
  display: block;
  padding: 6px 6px 8px;
  font-size: 1.15rem;
  color: var(--v32c-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Info / promo / article blocks ===== */
.v32c-card {
  background: var(--v32c-bg-2);
  border-radius: var(--v32c-radius);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 139, 139, 0.35);
}
.v32c-card h2 { font-size: 1.7rem; margin-bottom: 8px; color: var(--v32c-primary); }
.v32c-card h3 { font-size: 1.45rem; margin: 8px 0 4px; color: var(--v32c-soft); }
.v32c-card p { margin-bottom: 8px; color: var(--v32c-text); }
.v32c-card ul.v32c-list li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--v32c-text);
}
.v32c-card ul.v32c-list li:before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute; left: 0; top: 6px;
  color: var(--v32c-primary);
  font-size: 1.1rem;
}

.v32c-promo-banner {
  background: linear-gradient(120deg, var(--v32c-secondary), #06343a);
  border: 1px solid var(--v32c-primary);
  border-radius: var(--v32c-radius);
  padding: 14px;
  text-align: center;
  margin: 12px;
}
.v32c-promo-banner h3 { color: var(--v32c-primary); font-size: 1.6rem; margin-bottom: 6px; }
.v32c-promo-banner p { color: var(--v32c-text); margin-bottom: 10px; }
.v32c-btn-cta {
  display: inline-block;
  background: var(--v32c-accent);
  color: #1a1206;
  font-weight: 800;
  padding: 9px 18px;
  border-radius: 22px;
  border: 0;
  cursor: pointer;
  font-size: 1.3rem;
}
.v32c-btn-cta:active { transform: scale(.95); }

/* Inline promotional text link */
.v32c-text-link {
  color: var(--v32c-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== Feature highlights grid ===== */
.v32c-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.v32c-feature {
  background: var(--v32c-bg-2);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  border: 1px solid rgba(0, 139, 139, 0.35);
}
.v32c-feature i {
  font-size: 2.2rem;
  color: var(--v32c-primary);
  margin-bottom: 6px;
  display: inline-block;
}
.v32c-feature b { display: block; color: var(--v32c-soft); font-size: 1.25rem; margin-bottom: 3px; }
.v32c-feature span { font-size: 1.1rem; color: var(--v32c-muted); }

/* ===== Footer ===== */
.v32c-footer {
  background: var(--v32c-bg-3);
  border-top: 2px solid var(--v32c-secondary);
  padding: 18px 12px 24px;
  margin-top: 14px;
}
.v32c-footer h4 { color: var(--v32c-primary); font-size: 1.35rem; margin: 8px 0; }
.v32c-footer p { color: var(--v32c-muted); font-size: 1.25rem; margin-bottom: 8px; }
.v32c-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  margin-bottom: 10px;
}
.v32c-footer-links a {
  color: var(--v32c-soft);
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(0, 139, 139, 0.18);
}
.v32c-footer-copy {
  border-top: 1px dashed rgba(175, 238, 238, 0.25);
  padding-top: 10px;
  font-size: 1.15rem;
  color: var(--v32c-muted);
  text-align: center;
}

/* ===== Bottom nav (mobile only) ===== */
.v32c-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--v32c-bottomnav-h);
  background: var(--v32c-bg-3);
  border-top: 2px solid var(--v32c-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
}
.v32c-bottomnav-btn {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--v32c-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  padding: 4px 2px;
  transition: color .2s ease, transform .15s ease;
}
.v32c-bottomnav-btn i { font-size: 2rem; line-height: 1; }
.v32c-bottomnav-btn span { font-size: 1.05rem; }
.v32c-bottomnav-btn:active { transform: scale(.9); }
.v32c-bottomnav-btn.v32c-bottomnav-active {
  color: var(--v32c-primary);
}
.v32c-bottomnav-btn.v32c-bottomnav-active span { font-weight: 700; }

/* Add bottom clearance for fixed bottom nav on mobile */
@media (max-width: 768px) {
  .v32c-main,
  .v32c-footer { padding-bottom: calc(var(--v32c-bottomnav-h) + 12px); }
}

/* Hide bottom nav on desktop, show inline nav */
@media (min-width: 769px) {
  .v32c-bottomnav { display: none; }
  .v32c-wrapper { max-width: 960px; }
  .v32c-game-grid { grid-template-columns: repeat(5, 1fr); }
  .v32c-feature-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Scroll reveal */
.v32c-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.v32c-reveal.v32c-revealed { opacity: 1; transform: none; }

/* Utility */
.v32c-text-center { text-align: center; }
.v32c-mt-8 { margin-top: 8px; }
.v32c-mt-12 { margin-top: 12px; }
.v32c-mb-8 { margin-bottom: 8px; }
