/**
 * GGPANALO Core Stylesheet
 * All classes use g963- prefix for namespace isolation
 * Color palette: #F08080 | #0C0C0C | #FF1493 | #E91E63 | #FF69B4
 * Mobile-first design, max-width 430px
 */

:root {
  --g963-primary: #FF1493;
  --g963-secondary: #E91E63;
  --g963-accent: #FF69B4;
  --g963-light: #F08080;
  --g963-dark: #0C0C0C;
  --g963-bg: #0C0C0C;
  --g963-text: #F0F0F0;
  --g963-text-muted: #B0B0B0;
  --g963-border: #2A2A2A;
  --g963-card-bg: #1A1A1A;
  --g963-card-hover: #222222;
  --g963-gradient: linear-gradient(135deg, #FF1493, #E91E63, #FF69B4);
  --g963-radius: 0.8rem;
  --g963-radius-sm: 0.4rem;
  --g963-shadow: 0 2px 12px rgba(255, 20, 147, 0.15);
  --g963-transition: all 0.3s ease;
}

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

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-color: var(--g963-bg);
  color: var(--g963-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.g963-header-scrolled {
  box-shadow: 0 4px 20px rgba(255, 20, 147, 0.2);
}

.g963-header-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g963-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.g963-site-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g963-primary);
  letter-spacing: 0.5px;
  cursor: pointer;
}

.g963-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g963-header-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--g963-radius-sm);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--g963-transition);
  min-height: 32px;
}

.g963-btn-register {
  background: var(--g963-gradient);
  color: #fff;
}

.g963-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(255, 20, 147, 0.4);
}

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

.g963-btn-login:hover {
  background: rgba(255, 105, 180, 0.1);
}

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

/* Mobile Menu */
.g963-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.g963-mobile-menu {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateX(-100%);
  width: 100%;
  max-width: 430px;
  height: 100%;
  background: var(--g963-dark);
  z-index: 9999;
  padding: 2rem 1.5rem;
  transition: transform 0.3s ease;
  visibility: hidden;
  overflow-y: auto;
}

.g963-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--g963-border);
}

.g963-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g963-primary);
}

.g963-menu-close {
  background: none;
  border: none;
  color: var(--g963-text);
  font-size: 2.4rem;
  cursor: pointer;
}

.g963-menu-links {
  list-style: none;
}

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

.g963-menu-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 0.5rem;
  font-size: 1.4rem;
  color: var(--g963-text);
  transition: var(--g963-transition);
}

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

.g963-menu-links .material-icons {
  font-size: 2rem;
  color: var(--g963-accent);
}

/* Main content area */
.g963-main {
  padding-top: 56px;
  min-height: 100vh;
}

/* Carousel / Slider */
.g963-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 var(--g963-radius) var(--g963-radius);
}

.g963-slide {
  display: none;
  width: 100%;
  cursor: pointer;
}

.g963-slide img {
  width: 100%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
}

.g963-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.g963-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--g963-transition);
  border: none;
}

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

/* Sections */
.g963-section {
  padding: 1.5rem 1rem;
}

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

.g963-section-title i,
.g963-section-title .material-icons {
  font-size: 2rem;
}

/* Category tabs */
.g963-cat-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g963-accent);
  margin: 1.2rem 0 0.8rem;
  padding-left: 0.3rem;
  border-left: 3px solid var(--g963-primary);
  padding-left: 0.8rem;
}

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

.g963-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: var(--g963-transition);
  padding: 0.5rem;
  border-radius: var(--g963-radius-sm);
}

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

.g963-game-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--g963-border);
  transition: var(--g963-transition);
}

.g963-game-item:hover .g963-game-img {
  border-color: var(--g963-primary);
  box-shadow: 0 0 8px rgba(255, 20, 147, 0.3);
}

.g963-game-name {
  font-size: 1rem;
  color: var(--g963-text-muted);
  text-align: center;
  margin-top: 0.3rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 72px;
}

/* Content Cards */
.g963-card {
  background: var(--g963-card-bg);
  border-radius: var(--g963-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--g963-border);
}

.g963-card h2, .g963-card h3 {
  color: var(--g963-primary);
  margin-bottom: 0.8rem;
}

.g963-card p {
  color: var(--g963-text-muted);
  line-height: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

/* Promo buttons */
.g963-promo-btn {
  display: inline-block;
  background: var(--g963-gradient);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: var(--g963-radius);
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--g963-transition);
  text-align: center;
  min-height: 44px;
}

.g963-promo-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255, 20, 147, 0.4);
}

.g963-promo-text {
  color: var(--g963-primary);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px dashed var(--g963-primary);
}

.g963-promo-text:hover {
  color: var(--g963-light);
}

/* CTA Section */
.g963-cta {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(180deg, rgba(255, 20, 147, 0.1), transparent);
  border-radius: var(--g963-radius);
  margin: 1rem;
}

.g963-cta h2 {
  font-size: 2rem;
  color: var(--g963-primary);
  margin-bottom: 1rem;
}

.g963-cta p {
  color: var(--g963-text-muted);
  margin-bottom: 1.5rem;
}

/* Footer */
.g963-footer {
  background: #111;
  padding: 2rem 1rem 1rem;
  border-top: 1px solid var(--g963-border);
  margin-top: 2rem;
}

.g963-footer-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.g963-footer-brand p {
  color: var(--g963-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
  margin-top: 0.5rem;
}

.g963-footer-promos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.g963-footer-promo-btn {
  padding: 0.6rem 1.2rem;
  background: var(--g963-card-bg);
  border: 1px solid var(--g963-border);
  border-radius: var(--g963-radius-sm);
  color: var(--g963-accent);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--g963-transition);
}

.g963-footer-promo-btn:hover {
  border-color: var(--g963-primary);
  background: rgba(255, 20, 147, 0.1);
}

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

.g963-footer-links a {
  color: var(--g963-text-muted);
  font-size: 1.1rem;
  transition: var(--g963-transition);
}

.g963-footer-links a:hover {
  color: var(--g963-primary);
}

.g963-copyright {
  text-align: center;
  color: #666;
  font-size: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--g963-border);
}

/* Bottom Navigation */
.g963-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.98), #0C0C0C);
  border-top: 1px solid var(--g963-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
  padding: 0 0.3rem;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
}

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

.g963-bottom-btn:hover,
.g963-bottom-btn:focus {
  color: var(--g963-primary);
  background: rgba(255, 20, 147, 0.08);
  transform: scale(1.08);
}

.g963-bottom-btn i,
.g963-bottom-btn .material-icons {
  font-size: 22px;
  margin-bottom: 2px;
}

.g963-bottom-label {
  font-size: 1rem;
  line-height: 1.2;
}

.g963-bottom-active {
  color: var(--g963-primary);
}

.g963-bottom-active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: var(--g963-primary);
  border-radius: 50%;
  margin-top: 1px;
}

/* Utility classes */
.g963-text-center { text-align: center; }
.g963-text-primary { color: var(--g963-primary); }
.g963-text-muted { color: var(--g963-text-muted); }
.g963-mt-1 { margin-top: 0.5rem; }
.g963-mt-2 { margin-top: 1rem; }
.g963-mb-1 { margin-bottom: 0.5rem; }
.g963-mb-2 { margin-bottom: 1rem; }
.g963-hidden { display: none; }

/* Winners ticker */
.g963-winners {
  background: var(--g963-card-bg);
  border-radius: var(--g963-radius);
  padding: 1rem;
  border: 1px solid var(--g963-border);
}

.g963-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--g963-border);
  font-size: 1.2rem;
}

.g963-winner-row:last-child {
  border-bottom: none;
}

.g963-winner-name {
  color: var(--g963-accent);
  font-weight: 600;
}

.g963-winner-amount {
  color: #4CAF50;
  font-weight: 700;
}

.g963-winner-game {
  color: var(--g963-text-muted);
  font-size: 1.1rem;
}

/* FAQ styles */
.g963-faq-item {
  background: var(--g963-card-bg);
  border-radius: var(--g963-radius-sm);
  margin-bottom: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--g963-border);
}

.g963-faq-q {
  font-weight: 600;
  color: var(--g963-primary);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.g963-faq-a {
  color: var(--g963-text-muted);
  font-size: 1.2rem;
  line-height: 1.6rem;
}

/* Payment icons row */
.g963-payment-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 0;
}

.g963-payment-item {
  background: var(--g963-card-bg);
  border: 1px solid var(--g963-border);
  border-radius: var(--g963-radius-sm);
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  color: var(--g963-text-muted);
}

/* Responsive */
@media (min-width: 769px) {
  .g963-bottom-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .g963-main {
    padding-bottom: 80px;
  }
}
