/**
 * okplaygame.css - Core Stylesheet
 * Prefix: g987-
 * Color Palette: #CD853F | #F08080 | #FFDFBA | #F0FDFF | #0A0A0A
 * Dark bg (#0A0A0A), light text (#F0FDFF), accent (#CD853F, #F08080), highlight (#FFDFBA)
 */

:root {
  --g987-primary: #CD853F;
  --g987-secondary: #F08080;
  --g987-highlight: #FFDFBA;
  --g987-text: #F0FDFF;
  --g987-bg: #0A0A0A;
  --g987-bg-card: #1a1a1a;
  --g987-bg-alt: #111111;
  --g987-border: #2a2a2a;
  --g987-radius: 8px;
  --g987-radius-lg: 16px;
  --g987-shadow: 0 4px 12px rgba(205, 133, 63, 0.15);
  --g987-transition: all 0.3s ease;
}

/* Base Reset & Typography */
*, *::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', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--g987-bg);
  color: var(--g987-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.g987-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%);
  border-bottom: 1px solid var(--g987-primary);
  max-width: 430px;
  margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.g987-header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.g987-logo {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

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

.g987-header-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g987-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--g987-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--g987-transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.g987-btn-register {
  background: linear-gradient(135deg, var(--g987-primary), #B8732E);
  color: var(--g987-bg);
}

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

.g987-btn-register:hover, .g987-btn-login:hover {
  transform: scale(1.05);
  box-shadow: var(--g987-shadow);
}

.g987-btn-promo {
  background: linear-gradient(135deg, var(--g987-secondary), #D46060);
  color: var(--g987-text);
  padding: 1rem 2rem;
  font-size: 1.4rem;
  border-radius: var(--g987-radius-lg);
  display: block;
  text-align: center;
  margin: 1.5rem auto;
  max-width: 280px;
  font-weight: 700;
}

.g987-btn-promo:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(240, 128, 128, 0.3);
}

.g987-menu-toggle {
  background: none;
  border: none;
  color: var(--g987-primary);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

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

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

.g987-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9998;
  display: none;
}

.g987-menu-overlay.g987-overlay-active { display: block; }

.g987-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--g987-text);
  font-size: 2.4rem;
  cursor: pointer;
}

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

.g987-menu-link:hover { color: var(--g987-primary); padding-left: 0.5rem; }

/* Main Content */
.g987-main {
  padding-top: 5.6rem;
  min-height: 100vh;
}

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

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

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

.g987-carousel-slide.g987-slide-active { display: block; }

.g987-carousel-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.g987-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}

.g987-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(240, 253, 255, 0.4);
  cursor: pointer;
  border: none;
  transition: var(--g987-transition);
}

.g987-carousel-dot.g987-dot-active {
  background: var(--g987-primary);
  transform: scale(1.3);
}

/* Sections */
.g987-section {
  padding: 2rem 1.2rem;
}

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

.g987-section-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g987-highlight);
  margin: 1.2rem 0 0.8rem;
}

.g987-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(240, 253, 255, 0.85);
  margin-bottom: 0.8rem;
}

.g987-text-highlight {
  color: var(--g987-primary);
  font-weight: 600;
}

/* Game Grid */
.g987-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g987-secondary);
  margin: 1.5rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.g987-game-item {
  text-align: center;
  cursor: pointer;
  transition: var(--g987-transition);
  border-radius: var(--g987-radius);
  padding: 0.5rem;
  background: var(--g987-bg-card);
}

.g987-game-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--g987-shadow);
  background: var(--g987-bg-alt);
}

.g987-game-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--g987-radius);
  object-fit: cover;
}

.g987-game-name {
  font-size: 1rem;
  color: var(--g987-text);
  margin-top: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.g987-card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--g987-primary);
  margin-bottom: 0.8rem;
}

/* Testimonial */
.g987-testimonial {
  background: linear-gradient(135deg, var(--g987-bg-card), var(--g987-bg-alt));
  border-left: 3px solid var(--g987-primary);
  border-radius: 0 var(--g987-radius) var(--g987-radius) 0;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.g987-testimonial-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--g987-primary);
}

.g987-testimonial-text {
  font-size: 1.2rem;
  color: rgba(240, 253, 255, 0.8);
  margin-top: 0.4rem;
  font-style: italic;
}

/* Winner list */
.g987-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--g987-border);
}

.g987-winner-name { color: var(--g987-highlight); font-weight: 600; font-size: 1.2rem; }
.g987-winner-game { color: rgba(240, 253, 255, 0.7); font-size: 1.1rem; }
.g987-winner-amount { color: var(--g987-secondary); font-weight: 700; font-size: 1.3rem; }

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

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

/* App download section */
.g987-app-section {
  background: linear-gradient(135deg, #1a1205 0%, #0A0A0A 100%);
  border: 1px solid var(--g987-primary);
  border-radius: var(--g987-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
}

.g987-app-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g987-primary);
  margin-bottom: 0.8rem;
}

/* Footer */
.g987-footer {
  background: var(--g987-bg-alt);
  border-top: 1px solid var(--g987-border);
  padding: 2rem 1.2rem;
  text-align: center;
}

.g987-footer-brand {
  font-size: 1.3rem;
  color: rgba(240, 253, 255, 0.7);
  margin-bottom: 1rem;
  line-height: 1.6;
}

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

.g987-footer-link {
  padding: 0.5rem 1rem;
  background: var(--g987-bg-card);
  border: 1px solid var(--g987-border);
  border-radius: var(--g987-radius);
  color: var(--g987-text);
  font-size: 1.1rem;
  transition: var(--g987-transition);
}

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

.g987-partners {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.g987-partner-img {
  height: 24px;
  opacity: 0.6;
  transition: var(--g987-transition);
}

.g987-partner-img:hover { opacity: 1; }

.g987-copyright {
  font-size: 1.1rem;
  color: rgba(240, 253, 255, 0.5);
  margin-top: 1rem;
}

/* Bottom Navigation */
.g987-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1a1a1a 0%, #0A0A0A 100%);
  border-top: 1px solid var(--g987-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  max-width: 430px;
  margin: 0 auto;
}

.g987-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: none;
  border: none;
  color: rgba(240, 253, 255, 0.6);
  cursor: pointer;
  transition: var(--g987-transition);
  padding: 0.3rem;
  text-decoration: none;
}

.g987-bottom-btn:hover, .g987-bottom-btn:focus {
  color: var(--g987-primary);
  transform: scale(1.1);
}

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

.g987-bottom-icon { font-size: 2.2rem; line-height: 1; }
.g987-bottom-label { font-size: 1rem; margin-top: 0.2rem; }

/* Hide bottom nav on desktop */
@media (min-width: 769px) {
  .g987-bottom-nav { display: none; }
}

/* Desktop header adjustment */
@media (min-width: 769px) {
  .g987-header { max-width: 430px; }
}

/* Utility */
.g987-text-center { text-align: center; }
.g987-mt-1 { margin-top: 0.8rem; }
.g987-mt-2 { margin-top: 1.6rem; }
.g987-mb-1 { margin-bottom: 0.8rem; }
.g987-mb-2 { margin-bottom: 1.6rem; }
.g987-hidden { display: none; }
.g987-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g987-primary), transparent);
  margin: 2rem 0;
}

/* Promotional link text style */
.g987-promo-text {
  color: var(--g987-secondary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--g987-transition);
}

.g987-promo-text:hover {
  color: var(--g987-primary);
  text-decoration: underline;
}

/* Responsive tweaks */
@media (max-width: 360px) {
  .g987-game-grid { grid-template-columns: repeat(3, 1fr); }
}
