/**
 * 2333.click - Core Stylesheet
 * All classes use pge5- prefix
 * Mobile-first design, max-width 430px
 */

/* CSS Variables */
:root {
  --pge5-primary: #0000FF;
  --pge5-secondary: #40E0D0;
  --pge5-teal: #80CBC4;
  --pge5-sky: #87CEEB;
  --pge5-bg: #1E1E1E;
  --pge5-bg-light: #2A2A2A;
  --pge5-bg-card: #333333;
  --pge5-text: #C0C0C0;
  --pge5-text-light: #E0E0E0;
  --pge5-text-bright: #FFFFFF;
  --pge5-accent: #0000FF;
  --pge5-gradient: linear-gradient(135deg, #0000FF, #40E0D0);
  --pge5-radius: 8px;
  --pge5-radius-lg: 12px;
  --pge5-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --pge5-header-h: 56px;
  --pge5-bottom-h: 60px;
  font-size: 62.5%;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--pge5-secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Header */
.pge5-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--pge5-header-h);
  background: var(--pge5-bg);
  border-bottom: 1px solid rgba(64, 224, 208, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
}

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

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

.pge5-logo-area span {
  font-size: 2rem;
  font-weight: 700;
  background: var(--pge5-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.pge5-btn-reg {
  background: var(--pge5-gradient);
  color: var(--pge5-text-bright);
  border: none;
  padding: 8px 16px;
  border-radius: var(--pge5-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: transform 0.2s, opacity 0.2s;
}

.pge5-btn-reg:hover {
  transform: scale(1.05);
}

.pge5-btn-login {
  background: transparent;
  color: var(--pge5-secondary);
  border: 1px solid var(--pge5-secondary);
  padding: 8px 16px;
  border-radius: var(--pge5-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: background 0.2s, color 0.2s;
}

.pge5-btn-login:hover {
  background: var(--pge5-secondary);
  color: var(--pge5-bg);
}

.pge5-menu-toggle {
  background: transparent;
  border: none;
  color: var(--pge5-text-light);
  font-size: 2rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Menu Overlay */
.pge5-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

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

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

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

.pge5-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.6rem 1.6rem;
  border-bottom: 1px solid rgba(64, 224, 208, 0.15);
}

.pge5-mobile-menu-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pge5-text-bright);
}

.pge5-menu-close {
  background: transparent;
  border: none;
  color: var(--pge5-text);
  font-size: 2.4rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pge5-mobile-menu nav {
  padding: 1rem 0;
}

.pge5-mobile-menu nav a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--pge5-text-light);
  font-size: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s, color 0.2s;
}

.pge5-mobile-menu nav a:hover {
  background: rgba(0, 0, 255, 0.1);
  color: var(--pge5-secondary);
  text-decoration: none;
}

/* Main Content */
main {
  padding-top: calc(var(--pge5-header-h) + 8px);
  min-height: 100vh;
}

/* Carousel */
.pge5-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pge5-radius-lg);
  margin: 1rem 0;
}

.pge5-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.pge5-carousel-slide {
  min-width: 100%;
  cursor: pointer;
}

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

.pge5-carousel-controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

.pge5-carousel-btn {
  background: rgba(0, 0, 0, 0.5);
  color: var(--pge5-text-bright);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pge5-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 0;
}

.pge5-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pge5-bg-card);
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

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

/* Section Titles */
.pge5-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--pge5-text-bright);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--pge5-primary);
}

.pge5-section-subtitle {
  font-size: 1.4rem;
  color: var(--pge5-text);
  margin-bottom: 1rem;
}

/* Game Grid */
.pge5-game-category {
  margin: 1.5rem 0;
}

.pge5-category-label {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--pge5-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pge5-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.pge5-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.pge5-game-item:hover {
  transform: scale(1.05);
}

.pge5-game-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--pge5-radius);
  object-fit: cover;
  border: 2px solid rgba(64, 224, 208, 0.2);
}

.pge5-game-name {
  font-size: 1.1rem;
  color: var(--pge5-text);
  text-align: center;
  margin-top: 4px;
  line-height: 1.3rem;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Promo Banner */
.pge5-promo-banner {
  background: var(--pge5-gradient);
  border-radius: var(--pge5-radius-lg);
  padding: 2rem 1.6rem;
  margin: 1.5rem 0;
  text-align: center;
}

.pge5-promo-banner h3 {
  color: var(--pge5-text-bright);
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.pge5-promo-banner p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.pge5-promo-btn {
  background: var(--pge5-text-bright);
  color: var(--pge5-primary);
  border: none;
  padding: 12px 28px;
  border-radius: var(--pge5-radius);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
  transition: transform 0.2s;
}

.pge5-promo-btn:hover {
  transform: scale(1.05);
}

/* Card */
.pge5-card {
  background: var(--pge5-bg-card);
  border-radius: var(--pge5-radius-lg);
  padding: 1.6rem;
  margin: 1.2rem 0;
}

.pge5-card h3 {
  color: var(--pge5-text-bright);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.pge5-card p {
  color: var(--pge5-text);
  font-size: 1.4rem;
  line-height: 2.2rem;
}

/* Feature List */
.pge5-feature-list {
  list-style: none;
  padding: 0;
}

.pge5-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pge5-feature-list li:last-child {
  border-bottom: none;
}

.pge5-feature-icon {
  color: var(--pge5-secondary);
  font-size: 2rem;
  min-width: 28px;
  text-align: center;
}

.pge5-feature-text {
  font-size: 1.4rem;
  color: var(--pge5-text);
  line-height: 2rem;
}

/* Promo Link (text style) */
.pge5-promo-link {
  color: var(--pge5-primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.pge5-promo-link:hover {
  color: var(--pge5-secondary);
}

/* Inline promo button */
.pge5-inline-btn {
  display: inline-block;
  background: var(--pge5-gradient);
  color: var(--pge5-text-bright);
  padding: 6px 16px;
  border-radius: var(--pge5-radius);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  min-height: 44px;
  line-height: 3rem;
  margin: 4px 0;
}

/* Footer */
.pge5-footer {
  background: var(--pge5-bg-light);
  padding: 2rem 1.2rem 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(64, 224, 208, 0.15);
}

.pge5-footer-brand {
  text-align: center;
  margin-bottom: 2rem;
}

.pge5-footer-brand p {
  font-size: 1.3rem;
  color: var(--pge5-text);
  line-height: 2rem;
  margin-top: 0.8rem;
}

.pge5-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.pge5-footer-links a {
  font-size: 1.2rem;
  color: var(--pge5-text);
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: color 0.2s, border-color 0.2s;
}

.pge5-footer-links a:hover {
  color: var(--pge5-secondary);
  border-color: var(--pge5-secondary);
  text-decoration: none;
}

.pge5-footer-copy {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(192, 192, 192, 0.5);
}

/* Bottom Navigation */
.pge5-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--pge5-bottom-h);
  background: var(--pge5-bg);
  border-top: 1px solid rgba(64, 224, 208, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 4px;
}

.pge5-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 56px;
  background: transparent;
  border: none;
  color: var(--pge5-text);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  gap: 2px;
}

.pge5-bottom-nav-btn:hover {
  color: var(--pge5-secondary);
  transform: scale(1.1);
}

.pge5-bottom-nav-btn .pge5-nav-icon {
  font-size: 22px;
  line-height: 1;
}

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

.pge5-nav-active {
  color: var(--pge5-primary) !important;
}

.pge5-nav-active .pge5-nav-icon {
  color: var(--pge5-primary);
}

/* Help page styles */
.pge5-help-section {
  margin: 1.5rem 0;
}

.pge5-help-section h2 {
  font-size: 1.8rem;
  color: var(--pge5-secondary);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(64, 224, 208, 0.2);
}

.pge5-help-section h3 {
  font-size: 1.5rem;
  color: var(--pge5-text-bright);
  margin: 1.2rem 0 0.8rem;
}

.pge5-help-section p,
.pge5-help-section li {
  font-size: 1.4rem;
  color: var(--pge5-text);
  line-height: 2.2rem;
}

.pge5-help-section ul,
.pge5-help-section ol {
  padding-left: 2rem;
  margin: 0.5rem 0;
}

.pge5-help-section li {
  margin-bottom: 0.5rem;
}

.pge5-help-highlight {
  background: rgba(0, 0, 255, 0.1);
  border-left: 3px solid var(--pge5-primary);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  border-radius: 0 var(--pge5-radius) var(--pge5-radius) 0;
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding-bottom: calc(var(--pge5-bottom-h) + 16px);
  }
}

@media (min-width: 769px) {
  .pge5-bottom-nav {
    display: none;
  }
  .pge5-container {
    max-width: 430px;
  }
}

/* Utility classes */
.pge5-text-center { text-align: center; }
.pge5-mt-1 { margin-top: 1rem; }
.pge5-mt-2 { margin-top: 2rem; }
.pge5-mb-1 { margin-bottom: 1rem; }
.pge5-mb-2 { margin-bottom: 2rem; }
.pge5-hidden { display: none; }

/* FAQ accordion */
.pge5-faq-item {
  background: var(--pge5-bg-card);
  border-radius: var(--pge5-radius);
  margin: 8px 0;
  overflow: hidden;
}

.pge5-faq-q {
  padding: 1.2rem 1.4rem;
  font-weight: 600;
  color: var(--pge5-text-bright);
  font-size: 1.4rem;
  cursor: pointer;
}

.pge5-faq-a {
  padding: 0 1.4rem 1.2rem;
  color: var(--pge5-text);
  font-size: 1.3rem;
  line-height: 2rem;
}
