/* Lucky Calico Layout CSS - v654 namespace */
/* All classes use v654- prefix to avoid conflicts */

/* Root Variables */
:root {
  --v654-primary: #00FFFF;
  --v654-secondary: #BBBBBB;
  --v654-dark: #1A1A2E;
  --v654-light: #F0FDFF;
  --v654-accent: #00CED1;
  --v654-shadow: rgba(0, 255, 255, 0.2);
  font-size: 62.5%;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--v654-light);
  background: var(--v654-dark);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* Container */
.v654-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.v654-wrapper {
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 7rem;
  min-height: 100vh;
}

/* Header */
.v654-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--v654-dark);
  border-bottom: 2px solid var(--v654-primary);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--v654-shadow);
}

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

.v654-logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.v654-logo {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.v654-logo-text {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v654-primary);
  text-shadow: 0 0 10px var(--v654-shadow);
}

.v654-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.v654-btn-header {
  padding: 0.6rem 1.2rem;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

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

.v654-btn-register:hover {
  background: var(--v654-accent);
  transform: scale(1.05);
}

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

.v654-btn-login:hover {
  background: var(--v654-primary);
  color: var(--v654-dark);
}

.v654-hamburger {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px;
  min-height: 44px;
}

.v654-hamburger span {
  display: block;
  width: 2.4rem;
  height: 0.2rem;
  background: var(--v654-primary);
  transition: all 0.3s ease;
}

.v654-hamburger.v654-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.v654-hamburger.v654-active span:nth-child(2) {
  opacity: 0;
}

.v654-hamburger.v654-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

/* Mobile Menu */
.v654-mobile-menu {
  position: fixed;
  top: 6rem;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: calc(100vh - 6rem);
  background: var(--v654-dark);
  border-left: 2px solid var(--v654-primary);
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
  box-shadow: -2px 0 10px var(--v654-shadow);
}

.v654-mobile-menu.v654-active {
  right: 0;
}

.v654-menu-list {
  list-style: none;
  padding: 2rem 0;
}

.v654-menu-item {
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.v654-menu-link {
  display: block;
  padding: 1.5rem 2rem;
  color: var(--v654-light);
  text-decoration: none;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.v654-menu-link:hover,
.v654-menu-link.v654-active {
  background: rgba(0, 255, 255, 0.1);
  color: var(--v654-primary);
  padding-left: 2.5rem;
}

.v654-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 46, 0.8);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.v654-menu-overlay.v654-active {
  opacity: 1;
  pointer-events: all;
}

/* Buttons */
.v654-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

.v654-btn-primary {
  background: var(--v654-primary);
  color: var(--v654-dark);
  box-shadow: 0 4px 15px var(--v654-shadow);
}

.v654-btn-primary:hover {
  background: var(--v654-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--v654-shadow);
}

.v654-btn-block {
  display: block;
  width: 100%;
}

/* Sections */
.v654-section {
  margin-bottom: 3rem;
}

.v654-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--v654-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  text-shadow: 0 0 10px var(--v654-shadow);
}

.v654-section-subtitle {
  font-size: 1.6rem;
  color: var(--v654-secondary);
  text-align: center;
  margin-bottom: 2rem;
}

/* Content Box */
.v654-content-box {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
}

.v654-content-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--v654-primary);
  margin-bottom: 1rem;
}

.v654-content-text {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v654-light);
  margin-bottom: 1rem;
}

/* Carousel */
.v654-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.v654-carousel-slide {
  width: 100%;
  height: 100%;
  display: none;
}

.v654-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* Game Grid */
.v654-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.v654-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.v654-game-item:hover {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--v654-primary);
  transform: translateY(-2px);
}

.v654-game-icon {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0.6rem;
}

.v654-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v654-game-name {
  font-size: 1.1rem;
  color: var(--v654-light);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

/* List */
.v654-list {
  list-style: none;
  padding: 0;
}

.v654-list-item {
  padding: 1rem 0 1rem 2rem;
  position: relative;
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--v654-light);
}

.v654-list-item:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--v654-primary);
  font-weight: bold;
}

/* Footer */
.v654-footer {
  background: rgba(0, 255, 255, 0.05);
  border-top: 2px solid var(--v654-primary);
  padding: 3rem 0 8rem;
  margin-top: 4rem;
}

.v654-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.v654-footer-link {
  color: var(--v654-secondary);
  text-decoration: none;
  font-size: 1.3rem;
  transition: color 0.3s ease;
}

.v654-footer-link:hover {
  color: var(--v654-primary);
}

.v654-partners {
  margin: 3rem 0;
  text-align: center;
}

.v654-partners-title {
  font-size: 1.6rem;
  color: var(--v654-secondary);
  margin-bottom: 1.5rem;
}

.v654-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 300px;
  margin: 0 auto;
}

.v654-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.v654-partner-logo:hover {
  opacity: 1;
}

.v654-copyright {
  text-align: center;
  color: var(--v654-secondary);
  font-size: 1.2rem;
  margin-top: 2rem;
}

/* Bottom Navigation */
.v654-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--v654-dark);
  border-top: 2px solid var(--v654-primary);
  z-index: 1000;
  box-shadow: 0 -2px 10px var(--v654-shadow);
}

.v654-bottom-nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 430px;
  margin: 0 auto;
  height: 6rem;
}

.v654-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem;
  color: var(--v654-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}

.v654-bottom-nav-item:hover,
.v654-bottom-nav-item.v654-active {
  color: var(--v654-primary);
  transform: scale(1.1);
}

.v654-bottom-nav-icon {
  font-size: 2.4rem;
}

.v654-bottom-nav-text {
  font-size: 1rem;
  font-weight: 500;
}

/* Utilities */
.v654-mt-1 { margin-top: 1rem; }
.v654-mt-2 { margin-top: 2rem; }
.v654-mb-1 { margin-bottom: 1rem; }
.v654-mb-2 { margin-bottom: 2rem; }
.v654-text-center { text-align: center; }

/* Responsive */
@media (max-width: 360px) {
  .v654-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .v654-game-name {
    font-size: 1rem;
  }
}
