/* OrionPlay CSS Styles - Mobile First Design */
/* Prefix: pg68- for all classes */
/* Color Palette: #F5DEB3 (wheat) | #B03060 (maroon) | #FF4500 (orangered) | #3A3A3A (dark) */

/* CSS Variables */
:root {
  --pg68-primary: #B03060;
  --pg68-secondary: #FF4500;
  --pg68-accent: #F5DEB3;
  --pg68-dark: #3A3A3A;
  --pg68-dark-bg: #2A2A2A;
  --pg68-light: #F5DEB3;
  --pg68-text: #F5DEB3;
  --pg68-text-dark: #3A3A3A;
  --pg68-border: rgba(245, 222, 179, 0.2);
  --pg68-shadow: rgba(0, 0, 0, 0.3);
  --pg68-gradient-1: linear-gradient(135deg, #B03060 0%, #FF4500 100%);
  --pg68-gradient-2: linear-gradient(135deg, #3A3A3A 0%, #2A2A2A 100%);
  --pg68-transition: all 0.3s ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--pg68-text);
  background: var(--pg68-dark);
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--pg68-transition);
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* Header Styles */
.pg68-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--pg68-dark);
  z-index: 1000;
  box-shadow: 0 2px 10px var(--pg68-shadow);
  transition: var(--pg68-transition);
}

.pg68-header.pg68-scrolled {
  background: rgba(58, 58, 58, 0.98);
}

.pg68-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--pg68-gradient-1);
}

.pg68-logo-section {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.pg68-logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.pg68-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.pg68-auth-buttons {
  display: flex;
  gap: 0.8rem;
}

.pg68-btn-register,
.pg68-btn-login {
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--pg68-transition);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.pg68-btn-register {
  background: #fff;
  color: var(--pg68-primary);
  border: 2px solid #fff;
}

.pg68-btn-register:active {
  transform: scale(0.95);
}

.pg68-btn-login {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.pg68-btn-login:active {
  background: rgba(255, 255, 255, 0.1);
}

/* Navigation Bar */
.pg68-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--pg68-dark);
}

.pg68-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 9999;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.pg68-hamburger span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--pg68-accent);
  transition: var(--pg68-transition);
  border-radius: 2px;
}

.pg68-hamburger.pg68-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.pg68-hamburger.pg68-active span:nth-child(2) {
  opacity: 0;
}

.pg68-hamburger.pg68-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Navigation */
.pg68-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: var(--pg68-transition);
}

.pg68-nav-overlay.pg68-active {
  opacity: 1;
  visibility: visible;
}

.pg68-mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--pg68-dark-bg);
  z-index: 9999;
  padding: 8rem 2rem 2rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: -5px 0 15px var(--pg68-shadow);
}

.pg68-mobile-nav.pg68-active {
  right: 0;
}

.pg68-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pg68-nav-item a {
  display: block;
  padding: 1.2rem 1.5rem;
  color: var(--pg68-text);
  font-size: 1.5rem;
  border-radius: 8px;
  transition: var(--pg68-transition);
  min-height: 44px;
}

.pg68-nav-item a:active,
.pg68-nav-item a:hover {
  background: var(--pg68-primary);
  color: #fff;
  transform: translateX(5px);
}

/* Main Content */
.pg68-main {
  margin-top: 115px;
  padding-bottom: 70px;
  min-height: calc(100vh - 185px);
}

/* Carousel Styles */
.pg68-carousel {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--pg68-dark-bg);
}

.pg68-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.pg68-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
  cursor: pointer;
}

.pg68-slide.pg68-active {
  opacity: 1;
}

.pg68-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg68-carousel-controls {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.pg68-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--pg68-transition);
}

.pg68-dot.pg68-active {
  background: var(--pg68-secondary);
  width: 24px;
  border-radius: 5px;
}

/* Section Styles */
.pg68-section {
  padding: 2rem 1.5rem;
}

.pg68-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pg68-accent);
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

.pg68-section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--pg68-gradient-1);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* Game Grid */
.pg68-game-category {
  margin-bottom: 3rem;
}

.pg68-category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pg68-secondary);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pg68-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pg68-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  background: var(--pg68-dark-bg);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--pg68-transition);
  border: 1px solid var(--pg68-border);
}

.pg68-game-item:active {
  transform: scale(0.95);
  background: var(--pg68-primary);
}

.pg68-game-icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px var(--pg68-shadow);
}

.pg68-game-name {
  font-size: 1.1rem;
  text-align: center;
  color: var(--pg68-text);
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Content Box */
.pg68-content-box {
  background: var(--pg68-dark-bg);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--pg68-border);
}

.pg68-content-box h2 {
  font-size: 1.8rem;
  color: var(--pg68-secondary);
  margin-bottom: 1.2rem;
}

.pg68-content-box h3 {
  font-size: 1.6rem;
  color: var(--pg68-accent);
  margin: 1.5rem 0 1rem;
}

.pg68-content-box p {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pg68-text);
  margin-bottom: 1rem;
}

.pg68-content-box ul,
.pg68-content-box ol {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.pg68-content-box li {
  font-size: 1.4rem;
  line-height: 1.6;
  color: var(--pg68-text);
  margin-bottom: 0.8rem;
}

/* Buttons */
.pg68-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  background: var(--pg68-gradient-1);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(176, 48, 96, 0.4);
  transition: var(--pg68-transition);
  min-height: 44px;
  cursor: pointer;
}

.pg68-btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 8px rgba(176, 48, 96, 0.4);
}

.pg68-btn-link {
  color: var(--pg68-secondary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: var(--pg68-transition);
}

.pg68-btn-link:active {
  color: var(--pg68-primary);
}

/* Info Cards */
.pg68-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg68-info-card {
  background: var(--pg68-gradient-2);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--pg68-border);
}

.pg68-info-card-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}

.pg68-info-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--pg68-accent);
  margin-bottom: 0.5rem;
}

.pg68-info-card-text {
  font-size: 1.2rem;
  color: var(--pg68-text);
}

/* Footer */
.pg68-footer {
  background: var(--pg68-dark-bg);
  padding: 2rem 1.5rem 8rem;
  border-top: 2px solid var(--pg68-primary);
}

.pg68-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg68-footer-link {
  padding: 1rem;
  background: var(--pg68-dark);
  border-radius: 8px;
  text-align: center;
  font-size: 1.3rem;
  color: var(--pg68-text);
  transition: var(--pg68-transition);
  border: 1px solid var(--pg68-border);
}

.pg68-footer-link:active {
  background: var(--pg68-primary);
  color: #fff;
}

.pg68-partners {
  margin: 2rem 0;
}

.pg68-partners-title {
  font-size: 1.4rem;
  color: var(--pg68-accent);
  text-align: center;
  margin-bottom: 1rem;
}

.pg68-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.pg68-partner-logo {
  width: 100%;
  height: auto;
  opacity: 0.7;
  transition: var(--pg68-transition);
}

.pg68-partner-logo:active {
  opacity: 1;
  transform: scale(1.1);
}

.pg68-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(245, 222, 179, 0.6);
  padding-top: 1.5rem;
  border-top: 1px solid var(--pg68-border);
}

/* Bottom Navigation */
.pg68-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: var(--pg68-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px var(--pg68-shadow);
  z-index: 999;
  border-top: 2px solid var(--pg68-primary);
}

.pg68-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 1;
  height: 100%;
  color: var(--pg68-text);
  transition: var(--pg68-transition);
  cursor: pointer;
  min-width: 44px;
}

.pg68-bottom-nav-item:active {
  background: rgba(176, 48, 96, 0.2);
  color: var(--pg68-secondary);
}

.pg68-bottom-nav-item.pg68-active {
  color: var(--pg68-secondary);
}

.pg68-bottom-nav-icon {
  font-size: 2.2rem;
}

.pg68-bottom-nav-label {
  font-size: 1rem;
  font-weight: 500;
}

/* Utility Classes */
.pg68-text-center {
  text-align: center;
}

.pg68-mt-1 {
  margin-top: 1rem;
}

.pg68-mt-2 {
  margin-top: 2rem;
}

.pg68-mb-1 {
  margin-bottom: 1rem;
}

.pg68-mb-2 {
  margin-bottom: 2rem;
}

/* Responsive Adjustments */
@media (min-width: 375px) {
  .pg68-game-grid {
    gap: 1.2rem;
  }

  .pg68-game-icon {
    width: 65px;
    height: 65px;
  }
}

@media (max-width: 360px) {
  .pg68-game-grid {
    gap: 0.8rem;
  }

  .pg68-game-icon {
    width: 55px;
    height: 55px;
  }

  .pg68-game-name {
    font-size: 1rem;
  }
}
