/* PG666 basefiles - theme-2660.css
 * Class prefix: g605-
 * Color palette: #F0F0F0 | #FFE4B5 | #0F0F23 | #FF8C00 | #6A5ACD | #DDA0DD
 * Mobile-first, max-width: 430px. Comments in English.
 */

:root {
  --g605-bg: #0F0F23;
  --g605-bg2: #14143a;
  --g605-bg3: #1b1b4d;
  --g605-primary: #FF8C00;
  --g605-primary2: #FFA940;
  --g605-purple: #6A5ACD;
  --g605-pink: #DDA0DD;
  --g605-text: #F0F0F0;
  --g605-soft: #FFE4B5;
  --g605-muted: #b9b9d8;
  --g605-border: rgba(221, 160, 221, 0.18);
  --g605-radius: 14px;
  --g605-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --g605-gradient: linear-gradient(135deg, #FF8C00 0%, #6A5ACD 100%);
  --g605-gradient-pink: linear-gradient(135deg, #DDA0DD 0%, #6A5ACD 100%);
}

* { box-sizing: border-box; }

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: var(--g605-bg);
  background-image: radial-gradient(circle at 20% 0%, rgba(106, 90, 205, 0.25), transparent 45%),
                    radial-gradient(circle at 90% 15%, rgba(255, 140, 0, 0.18), transparent 40%);
  background-attachment: fixed;
  color: var(--g605-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--g605-primary2); text-decoration: none; }

.g605-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

.g605-container {
  width: 100%;
  padding: 0 1.2rem;
}

main.g605-main { padding-bottom: 90px; }

/* ============ HEADER ============ */
.g605-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g605-border);
}

.g605-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}

.g605-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g605-text);
  font-weight: 700;
  font-size: 1.7rem;
}

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

.g605-logo .g605-logo-accent {
  color: var(--g605-primary);
}

.g605-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g605-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.3rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  min-height: 36px;
  line-height: 1;
}

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

.g605-btn-register {
  background: var(--g605-gradient);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.4);
}

.g605-btn-login {
  background: transparent;
  color: var(--g605-soft);
  border: 1px solid var(--g605-pink);
}

.g605-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--g605-text);
  border: 1px solid var(--g605-border);
}

.g605-nav-toggle {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(106, 90, 205, 0.25);
  border: 1px solid var(--g605-border);
  color: var(--g605-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Expandable nav menu */
.g605-nav {
  max-width: 430px;
  margin: 0 auto;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(15, 15, 35, 0.98);
}

.g605-nav.g605-open {
  max-height: 480px;
  border-bottom: 1px solid var(--g605-border);
}

.g605-nav-list {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.g605-nav-list li a {
  display: block;
  padding: 0.75rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--g605-border);
  border-radius: 10px;
  color: var(--g605-text);
  font-size: 1.3rem;
  text-align: center;
}

.g605-nav-list li a:hover {
  background: var(--g605-gradient);
  color: #fff;
}

/* ============ HERO / SLIDER ============ */
.g605-hero {
  margin-top: 64px;
  padding: 0.8rem 1.2rem 0;
}

.g605-slider {
  position: relative;
  border-radius: var(--g605-radius);
  overflow: hidden;
  box-shadow: var(--g605-shadow);
}

.g605-slide {
  display: none;
  cursor: pointer;
  position: relative;
}

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

.g605-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.g605-slide-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(15,15,35,0.92), transparent);
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
}

.g605-slider-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

.g605-slider-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

/* ============ SECTIONS ============ */
.g605-section {
  padding: 1.5rem 1.2rem;
}

.g605-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--g605-soft);
}

.g605-section-title i {
  color: var(--g605-primary);
}

.g605-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.8rem;
  background: var(--g605-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.g605-lead {
  color: var(--g605-muted);
  font-size: 1.4rem;
  margin: 0 0 1rem;
}

/* ============ GAME GRID ============ */
.g605-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.6rem 0 0.9rem;
}

.g605-cat-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--g605-pink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g605-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.g605-game-card {
  background: var(--g605-bg2);
  border-radius: 12px;
  padding: 0.6rem;
  text-align: center;
  border: 1px solid var(--g605-border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.g605-game-card:active {
  transform: scale(0.96);
}

.g605-game-card img {
  width: 100%;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.4rem;
}

.g605-game-name {
  font-size: 1.15rem;
  color: var(--g605-text);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ CARDS / FEATURES ============ */
.g605-card {
  background: var(--g605-bg2);
  border: 1px solid var(--g605-border);
  border-radius: var(--g605-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--g605-shadow);
}

.g605-card h2 {
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
  color: var(--g605-soft);
}

.g605-card h3 {
  font-size: 1.4rem;
  margin: 0.8rem 0 0.4rem;
  color: var(--g605-primary2);
}

.g605-card p {
  margin: 0 0 0.7rem;
  color: var(--g605-muted);
  font-size: 1.35rem;
}

.g605-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.g605-feature {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.9rem;
  text-align: center;
  border: 1px solid var(--g605-border);
}

.g605-feature i {
  font-size: 2.2rem;
  color: var(--g605-primary);
  margin-bottom: 0.4rem;
  display: block;
}

.g605-feature h3 {
  margin: 0.3rem 0;
  font-size: 1.3rem;
  color: var(--g605-text);
}

.g605-feature p {
  font-size: 1.2rem;
  color: var(--g605-muted);
  margin: 0;
}

/* Promo CTA banner */
.g605-cta {
  background: var(--g605-gradient);
  border-radius: var(--g605-radius);
  padding: 1.4rem;
  color: #fff;
  text-align: center;
  margin: 1.2rem 0;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.35);
}

.g605-cta h2 {
  color: #fff;
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
}

.g605-cta p { color: rgba(255, 255, 255, 0.92); margin: 0 0 0.9rem; }

.g605-cta .g605-btn {
  background: #fff;
  color: var(--g605-primary);
}

/* Inline promo link */
.g605-promo-link {
  color: var(--g605-primary);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* Payment / winners / testimonials */
.g605-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.g605-pay-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.8rem;
  text-align: center;
  border: 1px solid var(--g605-border);
  font-size: 1.2rem;
  color: var(--g605-text);
}

.g605-pay-item i {
  font-size: 2rem;
  color: var(--g605-pink);
  display: block;
  margin-bottom: 0.3rem;
}

.g605-testimonial {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--g605-primary);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.g605-testimonial p {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--g605-text);
  font-style: italic;
}

.g605-testimonial .g605-author {
  font-size: 1.15rem;
  color: var(--g605-pink);
  font-weight: 700;
}

.g605-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.g605-winner-name { color: var(--g605-soft); font-weight: 600; }
.g605-winner-amount { color: var(--g605-primary); font-weight: 800; }

/* RTP compact bars */
.g605-rtp-row { margin-bottom: 0.7rem; }
.g605-rtp-label {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
  color: var(--g605-text);
}
.g605-rtp-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.g605-rtp-fill {
  height: 100%;
  background: var(--g605-gradient);
  border-radius: 999px;
}

/* App download CTA */
.g605-app-cta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

/* Reveal animation */
.g605-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.g605-reveal.g605-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ FOOTER ============ */
.g605-footer {
  background: var(--g605-bg2);
  border-top: 1px solid var(--g605-border);
  padding: 1.5rem 1.2rem 2rem;
  margin-top: 1rem;
  color: var(--g605-muted);
  font-size: 1.25rem;
}

.g605-footer h4 {
  color: var(--g605-soft);
  font-size: 1.4rem;
  margin: 0.6rem 0;
}

.g605-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.g605-footer-links a {
  color: var(--g605-muted);
  font-size: 1.2rem;
}

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

.g605-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.g605-footer-promo .g605-btn {
  padding: 0.55rem 0.9rem;
  font-size: 1.15rem;
}

.g605-copyright {
  text-align: center;
  font-size: 1.15rem;
  color: var(--g605-muted);
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--g605-border);
}

/* ============ MOBILE BOTTOM NAV ============ */
.g605-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 15, 35, 0.98);
  border-top: 1px solid var(--g605-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  height: 62px;
  padding: 0;
}

.g605-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--g605-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color 0.2s ease, transform 0.15s ease;
  padding: 4px 2px;
}

.g605-bottomnav-btn i,
.g605-bottomnav-btn span.material-icons,
.g605-bottomnav-btn ion-icon {
  font-size: 22px;
}

.g605-bottomnav-btn:active { transform: scale(0.92); }

.g605-bottomnav-btn.g605-active {
  color: var(--g605-primary);
}

.g605-bottomnav-btn.g605-promo {
  color: var(--g605-primary);
}

.g605-bottomnav-btn.g605-promo::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--g605-primary);
  border-radius: 999px;
  margin-top: 46px;
}

.g605-bottomnav-btn.g605-promo {
  position: relative;
}

/* ============ DESKTOP ============ */
@media (min-width: 769px) {
  .g605-bottomnav { display: none; }
  main.g605-main { padding-bottom: 30px; }
  .g605-header-inner { max-width: 760px; }
}

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

/* Mobile viewport check literal */
@media (max-width: 430px) {
  .g605-wrapper { box-shadow: none; }
}

/* Utilities */
.g605-text-center { text-align: center; }
.g605-mt-1 { margin-top: 0.6rem; }
.g605-mt-2 { margin-top: 1.2rem; }
.g605-hidden { display: none !important; }
