/* abcd8 - Core CSS Stylesheet */
:root {
  --g964-primary: #80CBC4;
  --g964-secondary: #808080;
  --g964-accent: #80CBC4;
  --g964-dark: #212F3D;
  --g964-darker: #3C3C3C;
  --g964-light: #80CBC4;
  --g964-white: #FFFFFF;
  --g964-text-dark: #212F3D;
  --g964-text-light: #B0BEC5;
  --g964-shadow: rgba(0, 0, 0, 0.2);
  --g964-gradient: linear-gradient(135deg, #34495E 0%, #212F3D 100%);
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--g964-text-light);
  background-color: var(--g964-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.g964-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--g964-gradient);
  box-shadow: 0 2px 10px var(--g964-shadow);
  transition: transform 0.3s ease;
}

.g964-header-hidden { transform: translateY(-100%); }

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

.g964-logo { display: flex; align-items: center; text-decoration: none; color: var(--g964-white); }
.g964-logo-icon { width: 2.4rem; height: 2.4rem; margin-right: 0.8rem; }
.g964-logo-text { font-size: 1.8rem; font-weight: 700; color: var(--g964-primary); }

.g964-header-buttons { display: flex; gap: 0.8rem; }

.g964-btn {
  display: inline-block; padding: 0.6rem 1.2rem; font-size: 1.2rem;
  font-weight: 600; text-align: center; text-decoration: none;
  border-radius: 0.4rem; cursor: pointer; transition: all 0.3s ease;
  border: none; outline: none;
}

.g964-btn-primary { background: var(--g964-primary); color: var(--g964-dark); }
.g964-btn-secondary { background: transparent; color: var(--g964-white); border: 0.2rem solid var(--g964-white); }
.g964-btn:hover, .g964-btn:active { transform: scale(1.05); box-shadow: 0 4px 15px var(--g964-shadow); }
.g964-touch-active { transform: scale(0.95) !important; }

.g964-menu-toggle { display: none; background: none; border: none; color: var(--g964-white); font-size: 2rem; cursor: pointer; padding: 0.5rem; }

.g964-mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--g964-darker); z-index: 9999;
  transform: translateX(-100%); transition: transform 0.3s ease; overflow-y: auto;
}

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

.g964-menu-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem; background: var(--g964-gradient); }
.g964-menu-close { background: none; border: none; color: var(--g964-white); font-size: 2rem; cursor: pointer; padding: 0.5rem; }

.g964-menu-nav { padding: 1rem; }
.g964-menu-link {
  display: block; padding: 1rem; color: var(--g964-white); text-decoration: none;
  border-bottom: 0.1rem solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem; transition: background 0.3s ease;
}

.g964-menu-link:hover, .g964-menu-link:active { background: rgba(255, 255, 255, 0.1); }

.g964-main { margin-top: 6rem; padding-bottom: 8rem; min-height: 100vh; }

.g964-carousel {
  position: relative; width: 100%; max-width: 430px; margin: 0 auto;
  height: 18rem; overflow: hidden;
}

.g964-carousel-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.5s ease; cursor: pointer;
}

.g964-carousel-slide.g964-active { opacity: 1; }
.g964-carousel-image { width: 100%; height: 100%; object-fit: cover; }

.g964-carousel-indicators {
  position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
  display: flex; gap: 0.5rem;
}

.g964-carousel-indicator {
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s ease;
}

.g964-carousel-indicator.g964-active { background: var(--g964-primary); width: 2rem; border-radius: 0.4rem; }

.g964-section { padding: 2rem 0; }

.g964-section-title {
  font-size: 2rem; font-weight: 700; color: var(--g964-primary);
  margin-bottom: 1.5rem; text-align: center;
}

.g964-section-content { color: var(--g964-text-light); line-height: 1.8; }

.g964-game-category { margin-bottom: 2rem; }
.g964-category-title {
  font-size: 1.6rem; font-weight: 600; color: var(--g964-primary);
  margin-bottom: 1rem; padding: 0.8rem;
  background: rgba(255, 255, 255, 0.05); border-radius: 0.4rem;
  border-left: 0.4rem solid var(--g964-secondary);
}

.g964-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.g964-game-item { text-align: center; cursor: pointer; transition: transform 0.3s ease; }
.g964-game-item:hover { transform: scale(1.05); }
.g964-game-icon { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0.4rem; margin-bottom: 0.4rem; }
.g964-game-name {
  font-size: 0.9rem; color: var(--g964-text-light);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.2; min-height: 2.2rem;
}

.g964-card {
  background: rgba(255, 255, 255, 0.05); border-radius: 0.8rem;
  padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 2px 10px var(--g964-shadow);
}

.g964-card-title { font-size: 1.4rem; font-weight: 600; color: var(--g964-primary); margin-bottom: 1rem; }

.g964-footer { background: var(--g964-darker); color: var(--g964-text-light); padding: 2rem 0 8rem; }
.g964-footer-content { max-width: 430px; margin: 0 auto; padding: 0 1rem; }
.g964-footer-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.g964-footer-link { color: var(--g964-secondary); text-decoration: none; font-size: 1.2rem; transition: color 0.3s ease; }
.g964-footer-link:hover { color: var(--g964-primary); }
.g964-partners { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; justify-content: center; }
.g964-partner-logo { width: 4rem; height: 4rem; object-fit: contain; opacity: 0.8; transition: opacity 0.3s ease; }
.g964-partner-logo:hover { opacity: 1; }
.g964-copyright { text-align: center; font-size: 1.1rem; opacity: 0.8; }

.g964-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--g964-darker);
  box-shadow: 0 -2px 10px var(--g964-shadow); z-index: 1000; height: 6rem;
}

.g964-bottom-nav-inner {
  display: flex; justify-content: space-around; align-items: center;
  height: 100%; max-width: 430px; margin: 0 auto;
}

.g964-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: var(--g964-text-light);
  min-width: 6rem; min-height: 6rem; cursor: pointer;
  transition: all 0.3s ease; border: none; background: none; padding: 0;
}

.g964-nav-btn:hover, .g964-nav-btn:active { transform: scale(1.1); color: var(--g964-secondary); }
.g964-nav-icon { font-size: 2.4rem; margin-bottom: 0.2rem; transition: transform 0.3s ease; }
.g964-nav-btn:hover .g964-nav-icon { transform: scale(1.1); }
.g964-nav-text { font-size: 1rem; font-weight: 500; }
.g964-nav-btn.active { color: var(--g964-secondary); }
.g964-nav-btn.active .g964-nav-icon { transform: scale(1.2); }

.g964-link { color: var(--g964-primary); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
.g964-link:hover { color: var(--g964-secondary); text-decoration: underline; }

.g964-text-center { text-align: center; }
.g964-mt-1 { margin-top: 1rem; }
.g964-mt-2 { margin-top: 2rem; }
.g964-mb-1 { margin-bottom: 1rem; }
.g964-mb-2 { margin-bottom: 2rem; }

@media (min-width: 769px) {
  .g964-bottom-nav { display: none; }
  .g964-main { padding-bottom: 2rem; }
  .g964-menu-toggle { display: block; }
}

@media (max-width: 768px) { .g964-menu-toggle { display: block; } }

@keyframes g964-fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.g964-loaded .g964-section { animation: g964-fadeIn 0.5s ease forwards; }

.g964-h1-title {
  font-size: 2rem; font-weight: 700; color: var(--g964-primary);
  text-align: center; margin: 1.5rem 0; padding: 0 1rem; line-height: 1.3;
}
