/**
 * TG7778 - Core Stylesheet
 * All classes use v091- prefix for namespace isolation
 * Color palette: #FF91A4 (primary/accent) | #2C2C2C (background)
 * Mobile-first design, max-width 430px
 */

/* === CSS Variables === */
:root {
  --v091-primary: #FF91A4;
  --v091-primary-dark: #e07a8e;
  --v091-primary-light: #ffb3c1;
  --v091-bg: #2C2C2C;
  --v091-bg-light: #3a3a3a;
  --v091-bg-dark: #1e1e1e;
  --v091-text: #FF91A4;
  --v091-text-light: #f5f5f5;
  --v091-text-muted: #b0b0b0;
  --v091-accent: #FFD700;
  --v091-success: #4CAF50;
  --v091-card-bg: #333333;
  --v091-border: #444444;
  --v091-radius: 8px;
  --v091-radius-lg: 12px;
  --v091-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --v091-transition: all 0.3s ease;
}

/* === Reset & Base === */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v091-bg);
  color: var(--v091-text-light);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--v091-primary);
  text-decoration: none;
  transition: var(--v091-transition);
}

a:hover {
  color: var(--v091-primary-light);
}

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

/* === Container === */
.v091-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.v091-wrapper {
  max-width: 430px;
  margin: 0 auto;
}

/* === Header === */
.v091-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--v091-bg-dark);
  border-bottom: 1px solid var(--v091-border);
  height: 56px;
}

.v091-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: 56px;
}

.v091-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v091-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.v091-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v091-primary);
  letter-spacing: 0.5px;
}

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

.v091-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--v091-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--v091-transition);
  text-decoration: none;
  min-height: 36px;
}

.v091-btn-register {
  background: var(--v091-primary);
  color: var(--v091-bg-dark);
}

.v091-btn-register:hover {
  background: var(--v091-primary-dark);
  transform: scale(1.03);
}

.v091-btn-login {
  background: transparent;
  color: var(--v091-primary);
  border: 1.5px solid var(--v091-primary);
}

.v091-btn-login:hover {
  background: rgba(255, 145, 164, 0.1);
}

.v091-menu-btn {
  background: none;
  border: none;
  color: var(--v091-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* === Mobile Menu === */
.v091-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--v091-bg-dark);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 1.5rem;
}

.v091-menu-active {
  right: 0;
}

.v091-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
}

.v091-overlay-active {
  display: block;
}

.v091-menu-close {
  background: none;
  border: none;
  color: var(--v091-text-light);
  font-size: 2.4rem;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

.v091-menu-links {
  list-style: none;
  padding: 0;
  margin-top: 3rem;
}

.v091-menu-links li {
  border-bottom: 1px solid var(--v091-border);
}

.v091-menu-links a {
  display: block;
  padding: 1.2rem 0;
  font-size: 1.5rem;
  color: var(--v091-text-light);
  transition: var(--v091-transition);
}

.v091-menu-links a:hover {
  color: var(--v091-primary);
  padding-left: 0.5rem;
}

/* === Carousel === */
.v091-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--v091-radius-lg);
  margin: 1rem 0;
}

.v091-slide {
  width: 100%;
  cursor: pointer;
}

.v091-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--v091-radius-lg);
}

/* === Section === */
.v091-section {
  padding: 2rem 0;
}

.v091-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v091-primary);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--v091-primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v091-section-title i {
  font-size: 2rem;
}

/* === Game Grid === */
.v091-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.v091-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--v091-transition);
  border-radius: var(--v091-radius);
  padding: 0.5rem;
}

.v091-game-item:hover {
  background: var(--v091-bg-light);
  transform: translateY(-2px);
}

.v091-game-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--v091-radius);
  margin-bottom: 0.3rem;
}

.v091-game-name {
  font-size: 1.1rem;
  color: var(--v091-text-muted);
  line-height: 1.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Card === */
.v091-card {
  background: var(--v091-card-bg);
  border-radius: var(--v091-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--v091-border);
}

.v091-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v091-primary);
  margin-bottom: 0.8rem;
}

.v091-card-text {
  font-size: 1.3rem;
  color: var(--v091-text-muted);
  line-height: 1.6;
}

/* === Promo Button === */
.v091-promo-btn {
  display: block;
  width: 100%;
  padding: 1.2rem;
  background: linear-gradient(135deg, var(--v091-primary), var(--v091-primary-dark));
  color: var(--v091-bg-dark);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--v091-radius-lg);
  cursor: pointer;
  transition: var(--v091-transition);
  margin: 1.5rem 0;
}

.v091-promo-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(255, 145, 164, 0.4);
}

/* === Footer === */
.v091-footer {
  background: var(--v091-bg-dark);
  border-top: 1px solid var(--v091-border);
  padding: 2rem 0 3rem;
  margin-top: 2rem;
}

.v091-footer-desc {
  font-size: 1.2rem;
  color: var(--v091-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.v091-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.v091-footer-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--v091-bg-light);
  color: var(--v091-text-muted);
  border-radius: 20px;
  font-size: 1.1rem;
  transition: var(--v091-transition);
}

.v091-footer-link:hover {
  background: var(--v091-primary);
  color: var(--v091-bg-dark);
}

.v091-footer-copy {
  font-size: 1.1rem;
  color: var(--v091-text-muted);
  text-align: center;
  margin-top: 1rem;
}

/* === Bottom Navigation (Mobile) === */
.v091-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--v091-bg-dark);
  border-top: 1px solid var(--v091-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.v091-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--v091-text-muted);
  cursor: pointer;
  transition: var(--v091-transition);
  padding: 0.4rem 0;
  position: relative;
}

.v091-bottom-nav-btn i,
.v091-bottom-nav-btn .material-icons {
  font-size: 24px;
  margin-bottom: 2px;
}

.v091-bottom-nav-btn span {
  font-size: 1rem;
  line-height: 1.2rem;
}

.v091-bottom-nav-btn:hover,
.v091-nav-active {
  color: var(--v091-primary);
}

.v091-bottom-nav-btn:active {
  transform: scale(0.92);
}

/* === Promo Link Text === */
.v091-promo-link {
  color: var(--v091-primary);
  font-weight: 600;
  cursor: pointer;
  transition: var(--v091-transition);
  border-bottom: 1px dashed var(--v091-primary);
}

.v091-promo-link:hover {
  color: var(--v091-primary-light);
}

/* === Content Modules === */
.v091-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.v091-badge {
  display: inline-block;
  padding: 0.2rem 0.8rem;
  background: var(--v091-primary);
  color: var(--v091-bg-dark);
  font-size: 1rem;
  border-radius: 12px;
  font-weight: 600;
}

.v091-divider {
  border: none;
  border-top: 1px solid var(--v091-border);
  margin: 1.5rem 0;
}

/* === Main Content Padding === */
main {
  padding-top: 56px;
}

/* === Responsive === */
@media (max-width: 768px) {
  main {
    padding-bottom: 80px;
  }
}

@media (min-width: 769px) {
  .v091-bottom-nav {
    display: none;
  }
}

/* === Utility === */
.v091-text-center { text-align: center; }
.v091-mt-1 { margin-top: 1rem; }
.v091-mt-2 { margin-top: 2rem; }
.v091-mb-1 { margin-bottom: 1rem; }
.v091-mb-2 { margin-bottom: 2rem; }
.v091-hidden { display: none; }
