/* phsky link login - Main Stylesheet */
/* All classes use pg0b- prefix for namespace isolation */
/* Color palette: #0F0F23 (deep bg), #CD853F (gold accent), #FF4500 (vibrant accent) */

:root {
  --pg0b-primary: #CD853F;
  --pg0b-accent: #FF4500;
  --pg0b-bg: #0F0F23;
  --pg0b-bg-light: #1a1a3e;
  --pg0b-bg-card: #161636;
  --pg0b-text: #e8e8f0;
  --pg0b-text-muted: #a0a0c0;
  --pg0b-border: #2a2a5a;
  --pg0b-radius: 8px;
  --pg0b-header-h: 56px;
  --pg0b-bottomnav-h: 60px;
}

*, *::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: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--pg0b-bg);
  color: var(--pg0b-text);
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

/* === HEADER === */
.pg0b-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #0F0F23 0%, #1a1a3e 100%);
  border-bottom: 1px solid var(--pg0b-border);
  height: var(--pg0b-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.pg0b-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.pg0b-logo-area img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

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

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

.pg0b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: var(--pg0b-radius);
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, opacity 0.2s;
  white-space: nowrap;
}

.pg0b-btn:active { transform: scale(0.95); }

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

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

.pg0b-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--pg0b-text);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

@media (max-width: 768px) {
  .pg0b-menu-toggle { display: block; }
  .pg0b-desktop-nav { display: none; }
}

.pg0b-desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pg0b-desktop-nav a {
  color: var(--pg0b-text-muted);
  font-size: 1.3rem;
  transition: color 0.2s;
}

.pg0b-desktop-nav a:hover { color: var(--pg0b-primary); }

/* === MOBILE MENU === */
.pg0b-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: rgba(15, 15, 35, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.pg0b-mobile-menu.pg0b-menu-active {
  opacity: 1;
  pointer-events: all;
}

.pg0b-mobile-menu a {
  color: var(--pg0b-text);
  font-size: 1.8rem;
  font-weight: 600;
  padding: 10px 30px;
  border-radius: var(--pg0b-radius);
  transition: background 0.2s, color 0.2s;
}

.pg0b-mobile-menu a:hover {
  background: var(--pg0b-bg-light);
  color: var(--pg0b-primary);
}

.pg0b-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--pg0b-text);
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
}

/* === BOTTOM NAV === */
.pg0b-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--pg0b-bottomnav-h);
  background: linear-gradient(180deg, #161636 0%, #0F0F23 100%);
  border-top: 1px solid var(--pg0b-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 4px;
}

.pg0b-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--pg0b-text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  gap: 2px;
  padding: 4px 0;
}

.pg0b-bottom-btn:active { transform: scale(0.9); }

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

.pg0b-bottom-btn .pg0b-bnav-label {
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

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

.pg0b-bottom-btn:hover {
  color: var(--pg0b-accent);
}

@media (min-width: 769px) {
  .pg0b-bottom-nav { display: none; }
}

/* === MAIN CONTENT === */
.pg0b-main {
  padding-top: var(--pg0b-header-h);
  min-height: 100vh;
}

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

.pg0b-container {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
}

/* === CAROUSEL === */
.pg0b-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--pg0b-radius);
  margin: 12px 0;
}

.pg0b-slide {
  display: none;
  cursor: pointer;
}

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

.pg0b-slide img {
  width: 100%;
  border-radius: var(--pg0b-radius);
}

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

.pg0b-slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
}

.pg0b-slide-dot.pg0b-dot-active {
  background: var(--pg0b-primary);
}

/* === GAME GRID === */
.pg0b-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg0b-primary);
  margin: 20px 0 12px;
  padding-left: 4px;
  border-left: 3px solid var(--pg0b-accent);
  padding-left: 10px;
}

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

.pg0b-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
  text-decoration: none;
}

.pg0b-game-item:active { transform: scale(0.95); }

.pg0b-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--pg0b-radius);
  background: var(--pg0b-bg-card);
  border: 1px solid var(--pg0b-border);
  overflow: hidden;
  margin-bottom: 4px;
}

.pg0b-game-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg0b-game-name {
  font-size: 1.05rem;
  color: var(--pg0b-text-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* === CONTENT CARDS === */
.pg0b-card {
  background: var(--pg0b-bg-card);
  border: 1px solid var(--pg0b-border);
  border-radius: var(--pg0b-radius);
  padding: 16px;
  margin: 12px 0;
}

.pg0b-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pg0b-primary);
  margin-bottom: 10px;
}

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

.pg0b-card ul, .pg0b-card ol {
  padding-left: 20px;
  margin: 8px 0;
}

.pg0b-card li { margin-bottom: 6px; }

/* === PROMO LINKS === */
.pg0b-promo-link {
  color: var(--pg0b-accent);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s;
}

.pg0b-promo-link:hover { color: #ff6a33; }

.pg0b-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--pg0b-accent), var(--pg0b-primary));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(255,69,0,0.3);
}

.pg0b-cta-btn:active { transform: scale(0.96); }

/* === FOOTER === */
.pg0b-footer {
  background: var(--pg0b-bg-light);
  border-top: 1px solid var(--pg0b-border);
  padding: 24px 12px 40px;
  margin-top: 32px;
}

.pg0b-footer-brand {
  font-size: 1.4rem;
  color: var(--pg0b-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

.pg0b-footer-text {
  font-size: 1.2rem;
  color: var(--pg0b-text-muted);
  line-height: 1.6rem;
  margin-bottom: 12px;
}

.pg0b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.pg0b-footer-links a {
  font-size: 1.1rem;
  color: var(--pg0b-text-muted);
  padding: 4px 10px;
  background: var(--pg0b-bg-card);
  border-radius: 4px;
  transition: color 0.2s;
}

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

.pg0b-footer-copy {
  font-size: 1.1rem;
  color: var(--pg0b-text-muted);
  opacity: 0.6;
  text-align: center;
  margin-top: 12px;
}

/* === UTILITY === */
.pg0b-text-center { text-align: center; }
.pg0b-mt-12 { margin-top: 12px; }
.pg0b-mb-12 { margin-bottom: 12px; }
.pg0b-hidden { display: none; }

@media (min-width: 769px) {
  .pg0b-container { max-width: 800px; }
  .pg0b-game-grid { grid-template-columns: repeat(6, 1fr); }
}
