/**
 * Magic Carry OKE - Layout Stylesheet
 * Prefix: g16a-
 * Palette: #0A0A0A (dark bg) | #AFEEEE (light text)
 * Mobile-first, max-width 430px, root font 62.5%
 */

:root {
  --g16a-primary: #AFEEEE;
  --g16a-primary-dim: #7ab8b8;
  --g16a-bg: #0A0A0A;
  --g16a-bg-light: #141414;
  --g16a-bg-card: #1a1a1a;
  --g16a-bg-hover: #222222;
  --g16a-text: #AFEEEE;
  --g16a-text-dim: #8aacac;
  --g16a-text-bright: #d4f5f5;
  --g16a-accent: #00e5ff;
  --g16a-accent2: #ff6b35;
  --g16a-border: #2a2a2a;
  --g16a-gradient: linear-gradient(135deg, #0A0A0A 0%, #1a2a2a 100%);
  --g16a-shadow: 0 2px 12px rgba(175, 238, 238, 0.08);
  --g16a-radius: 8px;
  --g16a-radius-lg: 12px;
  --g16a-transition: all 0.3s ease;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  background: var(--g16a-bg);
  color: var(--g16a-text);
  line-height: 1.6;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--g16a-accent); text-decoration: none; }
a:hover { color: var(--g16a-text-bright); }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.g16a-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--g16a-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
}

.g16a-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g16a-logo-area img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.g16a-logo-area span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g16a-primary);
  letter-spacing: 0.5px;
}

.g16a-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.g16a-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border: none;
  border-radius: var(--g16a-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g16a-transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.g16a-btn-register {
  background: var(--g16a-accent);
  color: #0A0A0A;
}

.g16a-btn-register:hover {
  background: #33ecff;
  transform: scale(1.05);
}

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

.g16a-btn-login:hover {
  background: rgba(175, 238, 238, 0.1);
}

.g16a-menu-toggle {
  background: none;
  border: none;
  color: var(--g16a-primary);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

/* ========== MOBILE MENU ========== */
.g16a-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--g16a-transition);
}

.g16a-overlay-active {
  opacity: 1;
  visibility: visible;
}

.g16a-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: var(--g16a-bg-light);
  z-index: 9999;
  transition: right 0.35s ease;
  padding: 60px 20px 30px;
  overflow-y: auto;
}

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

.g16a-mobile-menu .g16a-menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--g16a-primary);
  font-size: 2.4rem;
  cursor: pointer;
}

.g16a-menu-link {
  display: block;
  padding: 12px 0;
  color: var(--g16a-text);
  font-size: 1.4rem;
  border-bottom: 1px solid var(--g16a-border);
  transition: var(--g16a-transition);
}

.g16a-menu-link:hover {
  color: var(--g16a-accent);
  padding-left: 8px;
}

/* ========== MAIN CONTENT ========== */
.g16a-main {
  margin-top: 56px;
  padding-bottom: 80px;
}

.g16a-container {
  padding: 0 12px;
}

/* ========== CAROUSEL ========== */
.g16a-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 0 0 var(--g16a-radius-lg) var(--g16a-radius-lg);
}

.g16a-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  cursor: pointer;
}

.g16a-slide-active {
  opacity: 1;
}

.g16a-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g16a-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.g16a-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(175, 238, 238, 0.4);
  transition: var(--g16a-transition);
}

.g16a-dot-active {
  background: var(--g16a-accent);
  width: 20px;
  border-radius: 4px;
}

/* ========== SECTIONS ========== */
.g16a-section {
  padding: 20px 12px;
}

.g16a-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g16a-text-bright);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--g16a-accent);
  display: inline-block;
}

.g16a-section-title i {
  margin-right: 6px;
  color: var(--g16a-accent);
}

/* ========== GAME GRID ========== */
.g16a-category-label {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g16a-accent);
  margin: 16px 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g16a-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.g16a-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--g16a-transition);
  border-radius: var(--g16a-radius);
  padding: 6px;
}

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

.g16a-game-item img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g16a-radius);
  margin-bottom: 4px;
}

.g16a-game-item span {
  font-size: 1.1rem;
  color: var(--g16a-text-dim);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== CONTENT CARDS ========== */
.g16a-card {
  background: var(--g16a-bg-card);
  border-radius: var(--g16a-radius-lg);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--g16a-border);
}

.g16a-card h3 {
  font-size: 1.5rem;
  color: var(--g16a-text-bright);
  margin-bottom: 10px;
}

.g16a-card p {
  font-size: 1.3rem;
  color: var(--g16a-text-dim);
  line-height: 1.7;
}

.g16a-card ul, .g16a-card ol {
  padding-left: 20px;
  margin: 8px 0;
}

.g16a-card li {
  font-size: 1.3rem;
  color: var(--g16a-text-dim);
  line-height: 1.7;
  margin-bottom: 4px;
}

.g16a-highlight {
  color: var(--g16a-accent);
  font-weight: 600;
}

/* ========== CTA BUTTON ========== */
.g16a-cta-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--g16a-accent), #00b8d4);
  color: #0A0A0A;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: var(--g16a-radius);
  cursor: pointer;
  transition: var(--g16a-transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.g16a-cta-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.3);
}

/* ========== FOOTER ========== */
.g16a-footer {
  background: var(--g16a-bg-light);
  padding: 24px 12px;
  border-top: 1px solid var(--g16a-border);
}

.g16a-footer-brand {
  font-size: 1.4rem;
  color: var(--g16a-text-dim);
  line-height: 1.7;
  margin-bottom: 16px;
}

.g16a-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.g16a-footer-links a {
  font-size: 1.2rem;
  color: var(--g16a-text-dim);
  transition: var(--g16a-transition);
}

.g16a-footer-links a:hover {
  color: var(--g16a-accent);
}

.g16a-footer-copy {
  font-size: 1.1rem;
  color: #555;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--g16a-border);
}

/* ========== BOTTOM NAV ========== */
.g16a-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: rgba(14, 14, 14, 0.97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--g16a-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.g16a-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--g16a-text-dim);
  cursor: pointer;
  transition: var(--g16a-transition);
  padding: 4px;
  border-radius: var(--g16a-radius);
  position: relative;
}

.g16a-bottom-btn i,
.g16a-bottom-btn .material-icons,
.g16a-bottom-btn ion-icon,
.g16a-bottom-btn bi {
  font-size: 22px;
  margin-bottom: 2px;
  transition: var(--g16a-transition);
}

.g16a-bottom-btn span {
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.g16a-bottom-btn:hover,
.g16a-bottom-btn:focus {
  color: var(--g16a-accent);
}

.g16a-bottom-btn:hover i,
.g16a-bottom-btn:hover .material-icons,
.g16a-bottom-btn:hover ion-icon {
  transform: scale(1.15);
}

.g16a-bottom-btn-active {
  color: var(--g16a-accent);
}

.g16a-bottom-btn-active::after {
  content: '';
  position: absolute;
  top: -1px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--g16a-accent);
  border-radius: 0 0 2px 2px;
}

/* ========== INLINE LINKS ========== */
.g16a-inline-link {
  color: var(--g16a-accent);
  font-weight: 500;
  cursor: pointer;
  transition: var(--g16a-transition);
}

.g16a-inline-link:hover {
  color: var(--g16a-text-bright);
  text-decoration: underline;
}

/* ========== FAQ ACCORDION ========== */
.g16a-faq-item {
  background: var(--g16a-bg-card);
  border: 1px solid var(--g16a-border);
  border-radius: var(--g16a-radius);
  margin-bottom: 10px;
  overflow: hidden;
}

.g16a-faq-q {
  padding: 12px 14px;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--g16a-text-bright);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.g16a-faq-q::after {
  content: '+';
  font-size: 1.8rem;
  color: var(--g16a-accent);
  transition: var(--g16a-transition);
}

.g16a-faq-a {
  padding: 0 14px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.g16a-faq-a p {
  font-size: 1.3rem;
  color: var(--g16a-text-dim);
  line-height: 1.7;
  padding-bottom: 12px;
}

/* ========== HELPER CLASSES ========== */
.g16a-text-center { text-align: center; }
.g16a-mt-8 { margin-top: 8px; }
.g16a-mt-16 { margin-top: 16px; }
.g16a-mb-16 { margin-bottom: 16px; }
.g16a-p-12 { padding: 12px; }

/* ========== DESKTOP ========== */
@media (min-width: 769px) {
  .g16a-bottom-nav { display: none; }
  .g16a-header { max-width: 430px; }
  body { max-width: 430px; }
}
