/**
 * Go Perya - Core CSS Layout Module
 * All classes use w9633- prefix for namespace isolation
 * Color palette: #2E8B57 | #008000 | #FF8000 | #0E1621
 * Mobile-first design, max-width 430px
 */

:root {
  --w9633-primary: #2E8B57;
  --w9633-secondary: #008000;
  --w9633-accent: #FF8000;
  --w9633-bg: #0E1621;
  --w9633-bg-light: #162231;
  --w9633-bg-card: #1a2a3a;
  --w9633-text: #f0f0f0;
  --w9633-text-muted: #a0b0c0;
  --w9633-border: #2a3a4a;
  --w9633-gradient: linear-gradient(135deg, #2E8B57 0%, #008000 100%);
  --w9633-radius: 8px;
  --w9633-radius-lg: 12px;
  --w9633-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

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

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--w9633-bg);
  color: var(--w9633-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

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

.w9633-wrapper {
  width: 100%;
  overflow-x: hidden;
}

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

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

.w9633-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.w9633-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 4px;
}

.w9633-logo-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w9633-primary);
  white-space: nowrap;
}

.w9633-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w9633-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--w9633-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  min-height: 3.6rem;
}

.w9633-btn-register {
  background: var(--w9633-accent);
  color: #fff;
}

.w9633-btn-register:hover {
  background: #e67300;
  transform: scale(1.03);
}

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

.w9633-btn-login:hover {
  background: var(--w9633-primary);
  color: #fff;
}

.w9633-btn-promo {
  background: var(--w9633-gradient);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: var(--w9633-radius-lg);
  font-size: 1.4rem;
  font-weight: 700;
}

.w9633-btn-promo:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(46,139,87,0.4);
}

/* Hamburger */
.w9633-hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  min-width: 4.4rem;
  min-height: 4.4rem;
  align-items: center;
  justify-content: center;
}

.w9633-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--w9633-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

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

.w9633-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.w9633-menu-overlay.w9633-overlay-active {
  opacity: 1;
  pointer-events: auto;
}

.w9633-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2.4rem;
  color: var(--w9633-text);
  cursor: pointer;
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
}

.w9633-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--w9633-primary);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--w9633-border);
}

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

.w9633-menu-link:hover {
  color: var(--w9633-accent);
  text-decoration: none;
}

/* Carousel */
.w9633-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--w9633-radius-lg);
  margin-top: 1.2rem;
}

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

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

.w9633-slide-active {
  display: block;
}

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

.w9633-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--w9633-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.w9633-section-title i {
  color: var(--w9633-accent);
}

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

.w9633-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.w9633-game-item:hover {
  transform: translateY(-2px);
}

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

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

/* Category label */
.w9633-category-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--w9633-primary);
  margin: 1.6rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--w9633-accent);
}

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

.w9633-card h3 {
  font-size: 1.5rem;
  color: var(--w9633-primary);
  margin-bottom: 0.8rem;
}

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

/* Promo link in text */
.w9633-text-link {
  color: var(--w9633-accent);
  font-weight: 600;
  cursor: pointer;
}

.w9633-text-link:hover {
  text-decoration: underline;
}

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

.w9633-footer-brand {
  font-size: 1.3rem;
  color: var(--w9633-text-muted);
  line-height: 1.8rem;
  margin-bottom: 1.6rem;
}

.w9633-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.w9633-footer-link {
  padding: 0.5rem 1rem;
  background: var(--w9633-bg-card);
  border-radius: var(--w9633-radius);
  font-size: 1.2rem;
  color: var(--w9633-text);
  transition: background 0.2s;
}

.w9633-footer-link:hover {
  background: var(--w9633-primary);
  text-decoration: none;
}

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

/* Bottom nav */
.w9633-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  background: var(--w9633-bg-light);
  border-top: 1px solid var(--w9633-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.w9633-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--w9633-text-muted);
  transition: all 0.2s;
  gap: 2px;
}

.w9633-bottom-btn i,
.w9633-bottom-btn span.material-symbols-outlined {
  font-size: 22px;
}

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

.w9633-bottom-btn:hover,
.w9633-bottom-btn:focus {
  color: var(--w9633-accent);
  transform: scale(1.08);
}

.w9633-bottom-btn-active {
  color: var(--w9633-primary) !important;
}

/* Main content spacing for fixed elements */
.w9633-main {
  padding-top: 6.4rem;
}

/* Grid layouts */
.w9633-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.w9633-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

/* Winner ticker */
.w9633-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  background: var(--w9633-bg-card);
  border-radius: var(--w9633-radius);
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.w9633-winner-name { color: var(--w9633-accent); font-weight: 600; }
.w9633-winner-amount { color: var(--w9633-primary); font-weight: 700; }

/* Payment icons row */
.w9633-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

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

/* Testimonial */
.w9633-testimonial {
  background: var(--w9633-bg-card);
  border-radius: var(--w9633-radius-lg);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--w9633-primary);
}

.w9633-testimonial p {
  font-size: 1.2rem;
  color: var(--w9633-text-muted);
  font-style: italic;
  margin-bottom: 0.4rem;
}

.w9633-testimonial-author {
  font-size: 1.1rem;
  color: var(--w9633-accent);
  font-weight: 600;
}

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

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