/* 456 squid game - Theme Stylesheet */
/* All classes use v187- prefix */
/* Color palette: Magenta/Pink Dark Theme */

:root {
  --v187-primary: #E91E63;
  --v187-bg: #3A3A3A;
  --v187-deep: #AD1457;
  --v187-coral: #FF8A80;
  --v187-wheat: #F5DEB3;
  --v187-light: #E9ECEF;
  --v187-dark: #2A2A2A;
  --v187-card: #484848;
  --v187-radius: 8px;
  --v187-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--v187-bg);
  color: var(--v187-light);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--v187-primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--v187-coral);
}

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

/* ========== HEADER ========== */
.v187-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v187-dark) 0%, var(--v187-deep) 100%);
  padding: 0 1.2rem;
  height: 5.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

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

.v187-logo {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 6px;
}

.v187-site-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v187-wheat);
  white-space: nowrap;
}

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

.v187-btn-register,
.v187-btn-login {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}

.v187-btn-register {
  background: linear-gradient(135deg, var(--v187-primary), var(--v187-deep));
  color: #fff;
}

.v187-btn-register:hover {
  background: linear-gradient(135deg, var(--v187-coral), var(--v187-primary));
  transform: scale(1.05);
}

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

.v187-btn-login:hover {
  background: var(--v187-wheat);
  color: var(--v187-dark);
}

.v187-hamburger {
  background: none;
  border: none;
  color: var(--v187-wheat);
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  line-height: 1;
}

/* ========== MOBILE MENU ========== */
.v187-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  display: none;
  max-width: 430px;
  margin: 0 auto;
}

.v187-overlay-active {
  display: block;
}

#v187-mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, var(--v187-dark), #1E1E1E);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 2rem 0;
}

.v187-menu-active {
  right: 0 !important;
}

.v187-menu-close {
  background: none;
  border: none;
  color: var(--v187-coral);
  font-size: 2.4rem;
  cursor: pointer;
  padding: 0.8rem 1.6rem;
  display: block;
  margin-left: auto;
}

.v187-menu-section {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.v187-menu-section-title {
  padding: 0.6rem 1.6rem;
  font-size: 1.1rem;
  color: var(--v187-coral);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.v187-menu-link {
  display: block;
  padding: 1rem 1.6rem;
  color: var(--v187-light);
  font-size: 1.3rem;
  transition: all 0.2s;
}

.v187-menu-link:hover {
  background: rgba(233,30,99,0.15);
  color: var(--v187-primary);
  padding-left: 2rem;
}

/* ========== CAROUSEL ========== */
.v187-carousel {
  position: relative;
  margin-top: 5.4rem;
  overflow: hidden;
  background: var(--v187-dark);
}

.v187-carousel-slide {
  display: none;
  cursor: pointer;
}

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

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

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

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

/* ========== MAIN CONTENT ========== */
.v187-main {
  padding: 1.6rem;
  padding-bottom: 2rem;
}

/* ========== HEADING STYLES ========== */
.v187-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--v187-wheat);
  margin: 1.6rem 0 1rem;
  line-height: 2.4rem;
}

.v187-h2 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--v187-primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--v187-deep);
}

.v187-h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--v187-coral);
  margin: 1.4rem 0 0.6rem;
}

.v187-p {
  color: var(--v187-light);
  line-height: 1.5rem;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

/* ========== GAME SECTIONS ========== */
.v187-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--v187-wheat);
  margin: 2rem 0 1rem;
  padding-left: 1rem;
  border-left: 3px solid var(--v187-primary);
}

.v187-game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.6rem;
}

.v187-game-item {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
  border-radius: var(--v187-radius);
  padding: 0.4rem;
}

.v187-game-item:hover {
  transform: scale(1.05);
  background: rgba(233,30,99,0.1);
}

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

.v187-game-icon {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--v187-radius);
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
}

.v187-game-name {
  font-size: 1rem;
  color: var(--v187-light);
  margin-top: 0.3rem;
  line-height: 1.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========== CARDS ========== */
.v187-card {
  background: var(--v187-card);
  border-radius: var(--v187-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--v187-shadow);
  border: 1px solid rgba(255,255,255,0.06);
}

.v187-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--v187-wheat);
  margin-bottom: 0.8rem;
}

/* ========== PROMO BUTTONS ========== */
.v187-btn-promo {
  display: inline-block;
  background: linear-gradient(135deg, var(--v187-primary), var(--v187-deep));
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 25px;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
  text-align: center;
  width: 100%;
  margin: 0.5rem 0;
}

.v187-btn-promo:hover {
  background: linear-gradient(135deg, var(--v187-coral), var(--v187-primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(233,30,99,0.4);
}

.v187-btn-promo-sm {
  display: inline-block;
  background: var(--v187-deep);
  color: var(--v187-wheat);
  padding: 0.6rem 1.4rem;
  border-radius: 16px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.v187-btn-promo-sm:hover {
  background: var(--v187-primary);
  color: #fff;
}

/* ========== INTERNAL LINKS ========== */
.v187-internal-link {
  color: var(--v187-coral);
  text-decoration: underline;
  font-weight: 500;
}

.v187-internal-link:hover {
  color: var(--v187-primary);
}

/* ========== WINNERS TABLE ========== */
.v187-winners-list {
  list-style: none;
}

.v187-winner-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.v187-winner-amount {
  color: var(--v187-primary);
  font-weight: 700;
  font-size: 1.3rem;
}

.v187-winner-game {
  color: var(--v187-coral);
  font-size: 1.1rem;
}

/* ========== PAYMENT GRID ========== */
.v187-payment-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

.v187-payment-item {
  background: var(--v187-card);
  padding: 0.8rem 1.2rem;
  border-radius: var(--v187-radius);
  font-size: 1.1rem;
  color: var(--v187-wheat);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ========== TESTIMONIALS ========== */
.v187-testimonial {
  background: var(--v187-card);
  border-radius: var(--v187-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--v187-primary);
}

.v187-testimonial-text {
  font-style: italic;
  color: var(--v187-light);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

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

/* ========== FEATURES GRID ========== */
.v187-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.v187-feature-card {
  background: var(--v187-card);
  border-radius: var(--v187-radius);
  padding: 1.2rem;
  text-align: center;
  border: 1px solid rgba(233,30,99,0.2);
  transition: border-color 0.3s;
}

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

.v187-feature-icon {
  font-size: 2.4rem;
  color: var(--v187-primary);
  margin-bottom: 0.6rem;
}

.v187-feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--v187-wheat);
  margin-bottom: 0.4rem;
}

.v187-feature-desc {
  font-size: 1.1rem;
  color: var(--v187-coral);
  line-height: 1.3rem;
}

/* ========== FAQ ========== */
.v187-faq-item {
  background: var(--v187-card);
  border-radius: var(--v187-radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.v187-faq-q {
  padding: 1rem 1.2rem;
  font-weight: 600;
  color: var(--v187-wheat);
  font-size: 1.3rem;
  cursor: pointer;
}

.v187-faq-a {
  padding: 0 1.2rem 1rem;
  color: var(--v187-light);
  font-size: 1.2rem;
  line-height: 1.5rem;
}

/* ========== FOOTER ========== */
.v187-footer {
  background: var(--v187-dark);
  padding: 2rem 1.6rem;
  margin-top: 2rem;
  border-top: 2px solid var(--v187-deep);
}

.v187-footer-brand {
  color: var(--v187-wheat);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.v187-footer-desc {
  color: var(--v187-coral);
  font-size: 1.2rem;
  line-height: 1.5rem;
  margin-bottom: 1.4rem;
}

.v187-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

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

.v187-footer-link {
  color: var(--v187-light);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.v187-footer-link:hover {
  color: var(--v187-primary);
}

.v187-footer-copy {
  color: rgba(255,255,255,0.4);
  font-size: 1rem;
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ========== BOTTOM NAV ========== */
.v187-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: 60px;
  background: linear-gradient(180deg, var(--v187-dark), #1A1A1A);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.5);
  border-top: 1px solid var(--v187-deep);
}

.v187-bottom-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 50px;
  background: none;
  border: none;
  color: var(--v187-coral);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0.4rem;
  border-radius: 8px;
}

.v187-bottom-nav-btn:hover {
  background: rgba(233,30,99,0.15);
}

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

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

.v187-bottom-nav-btn .v187-nav-text {
  font-size: 1rem;
  color: var(--v187-light);
  font-weight: 500;
}

.v187-nav-active .v187-nav-icon,
.v187-nav-active .v187-nav-text {
  color: var(--v187-primary) !important;
}

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

/* Mobile bottom padding */
@media (max-width: 768px) {
  .v187-main {
    padding-bottom: 80px;
  }
  .v187-footer {
    padding-bottom: 80px;
  }
}

/* ========== UTILITIES ========== */
.v187-text-center {
  text-align: center;
}

.v187-mt-1 {
  margin-top: 0.8rem;
}

.v187-mt-2 {
  margin-top: 1.6rem;
}

.v187-mb-1 {
  margin-bottom: 0.8rem;
}

.v187-mb-2 {
  margin-bottom: 1.6rem;
}

.v187-promo-text {
  color: var(--v187-primary);
  font-weight: 700;
  cursor: pointer;
}

.v187-promo-text:hover {
  color: var(--v187-coral);
  text-decoration: underline;
}

.v187-divider {
  border: none;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 1.4rem 0;
}

.v187-badge {
  display: inline-block;
  background: var(--v187-primary);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.v187-highlight {
  color: var(--v187-primary);
  font-weight: 600;
}

.v187-wheat-text {
  color: var(--v187-wheat);
  font-weight: 600;
}

/* ========== DESKTOP NAV ========== */
.v187-desktop-nav {
  display: none;
}

@media (min-width: 769px) {
  .v187-desktop-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
  }
  .v187-desktop-nav a {
    color: var(--v187-light);
    font-size: 1.3rem;
    transition: color 0.2s;
  }
  .v187-desktop-nav a:hover {
    color: var(--v187-primary);
  }
}

/* ========== SCROLL TOP BTN ========== */
.v187-scroll-top {
  position: fixed;
  bottom: 72px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--v187-deep);
  color: var(--v187-wheat);
  border: none;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: all 0.2s;
}

.v187-scroll-top:hover {
  background: var(--v187-primary);
  transform: translateY(-2px);
}

/* ========== RESPONSIVE GRID ========== */
@media (max-width: 360px) {
  .v187-game-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========== APP DOWNLOAD CTA ========== */
.v187-app-cta {
  background: linear-gradient(135deg, var(--v187-deep), var(--v187-dark));
  border-radius: var(--v187-radius);
  padding: 1.6rem;
  text-align: center;
  border: 1px solid var(--v187-primary);
}

.v187-app-cta-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--v187-wheat);
  margin-bottom: 0.6rem;
}

.v187-app-cta-desc {
  font-size: 1.2rem;
  color: var(--v187-coral);
  margin-bottom: 1rem;
}

/* ========== CATEGORY HIGHLIGHT ========== */
.v187-cat-highlight {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.v187-cat-card {
  min-width: 120px;
  background: var(--v187-card);
  border-radius: var(--v187-radius);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(233,30,99,0.2);
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}

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

.v187-cat-icon {
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.v187-cat-name {
  font-size: 1.1rem;
  color: var(--v187-wheat);
  font-weight: 600;
}

.v187-cat-count {
  font-size: 1rem;
  color: var(--v187-coral);
}

/* ========== RTP TABLE ========== */
.v187-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.v187-rtp-table th {
  background: var(--v187-deep);
  color: var(--v187-wheat);
  padding: 0.6rem 0.8rem;
  text-align: left;
  font-weight: 600;
}

.v187-rtp-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--v187-light);
}

.v187-rtp-table tr:hover td {
  background: rgba(233,30,99,0.08);
}

/* ========== TRICKS LIST ========== */
.v187-tricks-list {
  list-style: none;
  counter-reset: v187-trick;
}

.v187-tricks-list li {
  counter-increment: v187-trick;
  padding: 0.8rem 0 0.8rem 2.8rem;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--v187-light);
  font-size: 1.2rem;
}

.v187-tricks-list li::before {
  content: counter(v187-trick);
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 2rem;
  height: 2rem;
  background: var(--v187-deep);
  color: var(--v187-wheat);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

/* ========== ACHIEVEMENTS ========== */
.v187-achievement {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.v187-achievement-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.v187-achievement-info h4 {
  color: var(--v187-wheat);
  font-size: 1.2rem;
  font-weight: 600;
}

.v187-achievement-info p {
  color: var(--v187-coral);
  font-size: 1.1rem;
}
