/**
 * pk111 Layout Stylesheet
 * All classes use v203- prefix for namespace isolation
 * Color palette: #FFB3FF | #F8F9FA | #0000CD | #262626 | #FFA500
 */

:root {
  --v203-primary: #0000CD;
  --v203-secondary: #FFA500;
  --v203-accent: #FFB3FF;
  --v203-bg-dark: #262626;
  --v203-bg-light: #F8F9FA;
  --v203-text-light: #F8F9FA;
  --v203-text-dark: #262626;
  --v203-gold: #FFA500;
  --v203-blue: #0000CD;
  --v203-pink: #FFB3FF;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v203-bg-dark);
  color: var(--v203-text-light);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HEADER ===== */
.v203-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 56px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.2rem;
  z-index: 1000;
  box-sizing: border-box;
  border-bottom: 2px solid var(--v203-gold);
  transition: box-shadow 0.3s ease;
}

.v203-header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.v203-logo-area {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

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

.v203-logo-area span {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v203-gold);
  letter-spacing: 0.5px;
}

.v203-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v203-btn-register, .v203-btn-login {
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.v203-btn-register {
  background: linear-gradient(135deg, var(--v203-gold) 0%, #ff8c00 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.4);
}

.v203-btn-login {
  background: transparent;
  color: var(--v203-gold);
  border: 1.5px solid var(--v203-gold);
}

.v203-btn-register:active, .v203-btn-login:active {
  transform: scale(0.95);
}

.v203-menu-btn {
  background: none;
  border: none;
  color: var(--v203-text-light);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE MENU ===== */
.v203-mobile-menu {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(22, 33, 62, 0.98);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  z-index: 9999;
  box-sizing: border-box;
}

.v203-menu-active {
  max-height: 500px;
  padding: 1rem 0;
}

.v203-mobile-menu a {
  display: block;
  padding: 1.2rem 2rem;
  color: var(--v203-text-light);
  text-decoration: none;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, color 0.2s;
}

.v203-mobile-menu a:hover, .v203-mobile-menu a:active {
  background: rgba(255, 165, 0, 0.15);
  color: var(--v203-gold);
}

/* ===== BOTTOM NAV ===== */
.v203-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f23 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  border-top: 2px solid rgba(255, 165, 0, 0.3);
  box-sizing: border-box;
}

.v203-bottom-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 52px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
  text-decoration: none;
  padding: 0.4rem 0;
  -webkit-tap-highlight-color: transparent;
}

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

.v203-bottom-btn .v203-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
  margin-bottom: 0.2rem;
}

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

.v203-bottom-btn.v203-active {
  color: var(--v203-gold);
}

.v203-bottom-btn:hover {
  color: var(--v203-gold);
}

/* ===== MAIN CONTENT ===== */
.v203-main {
  margin-top: 56px;
  padding-bottom: 20px;
  min-height: calc(100vh - 56px);
}

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

/* ===== CAROUSEL ===== */
.v203-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16/7;
}

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

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

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

.v203-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.v203-dot-active {
  background: var(--v203-gold);
  box-shadow: 0 0 6px rgba(255, 165, 0, 0.6);
}

/* ===== SECTION ===== */
.v203-section {
  padding: 2rem 1.5rem;
}

.v203-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--v203-gold);
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid rgba(255, 165, 0, 0.2);
}

/* ===== GAME GRID ===== */
.v203-game-category-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v203-accent);
  margin: 1.5rem 0 1rem 0;
  padding-left: 0.5rem;
  border-left: 3px solid var(--v203-gold);
}

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

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

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

.v203-game-item img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  margin-bottom: 0.4rem;
}

.v203-game-item span {
  font-size: 1rem;
  color: var(--v203-text-light);
  text-align: center;
  line-height: 1.2;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CARDS ===== */
.v203-card {
  background: linear-gradient(145deg, #1e1e3a 0%, #16213e 100%);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 165, 0, 0.1);
}

.v203-card h2, .v203-card h3 {
  color: var(--v203-gold);
  margin: 0 0 1rem 0;
}

.v203-card p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #ccc;
  margin: 0 0 1rem 0;
}

/* ===== PROMO BUTTONS ===== */
.v203-promo-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--v203-gold) 0%, #ff8c00 100%);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 3px 12px rgba(255, 165, 0, 0.4);
  text-decoration: none;
}

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

.v203-promo-link {
  color: var(--v203-gold);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.v203-footer {
  background: #0f0f23;
  padding: 2rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255, 165, 0, 0.2);
}

.v203-footer-brand {
  font-size: 1.3rem;
  color: #999;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

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

.v203-footer-links a {
  color: var(--v203-gold);
  text-decoration: none;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 165, 0, 0.3);
  border-radius: 16px;
  transition: background 0.2s, color 0.2s;
}

.v203-footer-links a:hover {
  background: rgba(255, 165, 0, 0.1);
}

.v203-footer-copy {
  font-size: 1.1rem;
  color: #666;
  margin-top: 1rem;
}

/* ===== INTERNAL LINKS ===== */
.v203-internal-link {
  color: #6ea8fe;
  text-decoration: underline;
  cursor: pointer;
}

.v203-internal-link:hover {
  color: #a8cfff;
}

/* ===== DESKTOP: hide bottom nav ===== */
@media (min-width: 769px) {
  .v203-bottom-nav {
    display: none;
  }
  .v203-main {
    padding-bottom: 20px;
  }
}

/* ===== WINNER TICKER ===== */
.v203-ticker {
  background: rgba(255, 165, 0, 0.08);
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  overflow: hidden;
}

.v203-ticker-label {
  background: var(--v203-gold);
  color: #000;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
}

.v203-ticker-text {
  font-size: 1.2rem;
  color: #ccc;
  white-space: nowrap;
}

/* ===== PAYMENT ICONS ===== */
.v203-payment-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.v203-payment-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1.2rem;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== TESTIMONIAL ===== */
.v203-testimonial {
  background: rgba(0, 0, 205, 0.1);
  border-left: 3px solid var(--v203-blue);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.v203-testimonial p {
  font-size: 1.2rem;
  color: #ccc;
  margin: 0 0 0.5rem 0;
  font-style: italic;
}

.v203-testimonial strong {
  color: var(--v203-gold);
  font-size: 1.1rem;
}

/* ===== FAQ ===== */
.v203-faq-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.v203-faq-item h3 {
  font-size: 1.4rem;
  color: var(--v203-gold);
  margin: 0 0 0.5rem 0;
}

.v203-faq-item p {
  font-size: 1.2rem;
  color: #bbb;
  margin: 0;
  line-height: 1.5;
}

/* ===== FEATURE GRID ===== */
.v203-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.v203-feature-box {
  background: linear-gradient(135deg, rgba(0, 0, 205, 0.12) 0%, rgba(26, 26, 46, 0.8) 100%);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 205, 0.2);
}

.v203-feature-box .v203-feat-icon {
  font-size: 2.4rem;
  color: var(--v203-gold);
  margin-bottom: 0.5rem;
}

.v203-feature-box h4 {
  font-size: 1.2rem;
  color: var(--v203-accent);
  margin: 0 0 0.3rem 0;
}

.v203-feature-box p {
  font-size: 1rem;
  color: #999;
  margin: 0;
}

/* ===== APP DOWNLOAD ===== */
.v203-app-cta {
  background: linear-gradient(135deg, #0000CD 0%, #000080 100%);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(255, 165, 0, 0.2);
}

.v203-app-cta h3 {
  color: var(--v203-gold);
  font-size: 1.6rem;
  margin: 0 0 0.8rem 0;
}

.v203-app-cta p {
  color: #ccc;
  font-size: 1.2rem;
  margin: 0 0 1.2rem 0;
}

/* ===== RTP TABLE ===== */
.v203-rtp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.v203-rtp-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 0.6rem;
  text-align: center;
}

.v203-rtp-item span {
  display: block;
  font-size: 1rem;
  color: #999;
}

.v203-rtp-item strong {
  display: block;
  font-size: 1.3rem;
  color: #4ade80;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
  .v203-game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .v203-game-item img {
    width: 56px;
    height: 56px;
  }
}
