/**
 * phsky.cfd - Core Stylesheet
 * Class prefix: v062-
 * Color palette: #800080 | #6A5ACD | #F8F8FF | #262626
 */

/* CSS Variables */
:root {
  --v062-primary: #800080;
  --v062-secondary: #6A5ACD;
  --v062-bg: #262626;
  --v062-text: #F8F8FF;
  --v062-accent: #9B30FF;
  --v062-dark: #1a1a2e;
  --v062-card-bg: #2d2d44;
  --v062-border: rgba(106, 90, 205, 0.3);
  --v062-glow: rgba(128, 0, 128, 0.4);
  --v062-font-size: 62.5%;
}

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

html {
  font-size: var(--v062-font-size);
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--v062-dark);
  color: var(--v062-text);
  line-height: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--v062-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--v062-accent);
}

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

/* Header */
.v062-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v062-primary), var(--v062-dark));
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--v062-border);
  backdrop-filter: blur(10px);
}

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

.v062-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.v062-brand {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(90deg, #F8F8FF, #6A5ACD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

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

.v062-btn {
  padding: 0.6rem 1.4rem;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  min-height: 36px;
}

.v062-btn-register {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  color: #262626;
}

.v062-btn-register:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.v062-btn-login {
  background: transparent;
  border: 2px solid var(--v062-secondary);
  color: var(--v062-text);
}

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

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

/* Mobile Menu */
.v062-mobile-menu {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 9999;
  background: rgba(26, 26, 46, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--v062-border);
  padding: 0;
}

.v062-mobile-menu a {
  display: block;
  padding: 1.2rem 1.6rem;
  color: var(--v062-text);
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(106, 90, 205, 0.15);
  transition: all 0.2s ease;
}

.v062-mobile-menu a:hover {
  background: rgba(106, 90, 205, 0.2);
  padding-left: 2.2rem;
  color: var(--v062-accent);
}

/* Main Content */
.v062-main {
  padding-top: 56px;
  min-height: 100vh;
}

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

/* Carousel */
.v062-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 12px 12px;
}

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

.v062-slide-active {
  display: block;
  animation: v062-fadeIn 0.6s ease;
}

@keyframes v062-fadeIn {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

.v062-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Section Layout */
.v062-section {
  padding: 2rem 1.4rem;
}

.v062-section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--v062-text);
  border-left: 4px solid var(--v062-primary);
  padding-left: 1rem;
}

.v062-section-title span {
  color: var(--v062-secondary);
}

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

.v062-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  border-radius: 10px;
  padding: 0.6rem 0.2rem;
}

.v062-game-item:hover {
  transform: scale(1.05);
  background: rgba(128, 0, 128, 0.15);
}

.v062-game-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin-bottom: 0.4rem;
  object-fit: cover;
}

.v062-game-name {
  font-size: 1.05rem;
  text-align: center;
  color: var(--v062-text);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Promo Link Styles */
.v062-promo-text {
  color: var(--v062-accent);
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s ease;
}

.v062-promo-text:hover {
  color: #FFD700;
  text-decoration: underline;
}

.v062-promo-btn {
  display: inline-block;
  padding: 1rem 2.4rem;
  background: linear-gradient(135deg, var(--v062-primary), var(--v062-secondary));
  color: var(--v062-text);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  text-align: center;
}

.v062-promo-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--v062-glow);
}

/* Cards */
.v062-card {
  background: var(--v062-card-bg);
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1.4rem;
  border: 1px solid var(--v062-border);
  transition: border-color 0.3s ease;
}

.v062-card:hover {
  border-color: var(--v062-primary);
}

.v062-card-title {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--v062-text);
}

.v062-card-text {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(248, 248, 255, 0.85);
}

/* Footer */
.v062-footer {
  background: linear-gradient(180deg, var(--v062-dark), #0d0d1a);
  padding: 2.5rem 1.4rem 1.5rem;
  border-top: 2px solid var(--v062-border);
}

.v062-footer-brand {
  font-size: 1.3rem;
  color: rgba(248, 248, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.v062-footer-links a {
  padding: 0.6rem 1.2rem;
  background: rgba(106, 90, 205, 0.15);
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--v062-text);
  transition: background 0.2s ease;
}

.v062-footer-links a:hover {
  background: rgba(128, 0, 128, 0.35);
}

.v062-footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.v062-footer-partners img {
  height: 24px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.v062-footer-partners img:hover {
  opacity: 1;
}

.v062-copyright {
  font-size: 1.1rem;
  color: rgba(248, 248, 255, 0.4);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(106, 90, 205, 0.15);
}

/* Bottom Mobile Navigation */
.v062-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26, 26, 46, 0.95), #0d0d1a);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 62px;
  border-top: 2px solid var(--v062-border);
}

.v062-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 58px;
  background: none;
  border: none;
  color: rgba(248, 248, 255, 0.6);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0.2rem;
  border-radius: 8px;
}

.v062-bottom-nav-btn:hover,
.v062-bottom-nav-btn:focus {
  color: var(--v062-accent);
  background: rgba(128, 0, 128, 0.15);
  transform: scale(1.08);
}

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

.v062-bottom-nav-btn .v062-nav-icon {
  font-size: 22px;
  margin-bottom: 0.1rem;
}

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

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

/* Winner Showcase */
.v062-winner-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(128, 0, 128, 0.08);
  border-radius: 8px;
  margin-bottom: 0.6rem;
}

.v062-winner-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--v062-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
}

.v062-winner-info {
  flex: 1;
}

.v062-winner-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v062-text);
}

.v062-winner-game {
  font-size: 1rem;
  color: rgba(248, 248, 255, 0.6);
}

.v062-winner-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFD700;
}

/* Testimonials */
.v062-testimonial {
  background: rgba(106, 90, 205, 0.1);
  border-radius: 10px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--v062-secondary);
}

.v062-testimonial-text {
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(248, 248, 255, 0.8);
  margin-bottom: 0.6rem;
}

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

/* Payment Methods */
.v062-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.v062-payment-item {
  background: rgba(248, 248, 255, 0.08);
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-size: 1.2rem;
  color: var(--v062-text);
  border: 1px solid rgba(106, 90, 205, 0.2);
}

/* App Download CTA */
.v062-app-cta {
  background: linear-gradient(135deg, rgba(128, 0, 128, 0.2), rgba(106, 90, 205, 0.2));
  border-radius: 14px;
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--v062-border);
}

.v062-app-cta h3 {
  font-size: 1.8rem;
  color: var(--v062-text);
  margin-bottom: 1rem;
}

.v062-app-cta p {
  font-size: 1.3rem;
  color: rgba(248, 248, 255, 0.75);
  margin-bottom: 1.5rem;
}

/* Feature List */
.v062-feature-list {
  list-style: none;
}

.v062-feature-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(106, 90, 205, 0.1);
  font-size: 1.3rem;
  color: rgba(248, 248, 255, 0.85);
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.v062-feature-list li i {
  color: var(--v062-accent);
  font-size: 1.4rem;
  margin-top: 0.2rem;
}

/* Internal link styles */
.v062-internal-link {
  color: var(--v062-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.v062-internal-link:hover {
  color: var(--v062-accent);
}

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

  .v062-btn {
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
  }
}

@media (min-width: 769px) {
  body {
    max-width: 430px;
  }
}
