/*
 * jljl55 main stylesheet
 * Class prefix: w627f-
 * Palette: primary #5F9EA0 (cadet blue) | background #2D2D2D (charcoal)
 * Mobile-first, max viewport 430px.
 */

:root {
  --w627f-primary: #5F9EA0;
  --w627f-primary-light: #7DBFC1;
  --w627f-primary-dark: #3F7A7C;
  --w627f-bg: #2D2D2D;
  --w627f-bg-soft: #1f1f1f;
  --w627f-bg-card: #3a3a3a;
  --w627f-text: #F4F6F7;
  --w627f-text-soft: #C9CECF;
  --w627f-text-muted: #9AA1A2;
  --w627f-accent: #F2B544;
  --w627f-accent-2: #E8556B;
  --w627f-border: rgba(255, 255, 255, 0.08);
  --w627f-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --w627f-radius: 1.2rem;
  --w627f-radius-sm: 0.8rem;
  --w627f-header-h: 5.6rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--w627f-bg);
  color: var(--w627f-text);
  line-height: 1.5;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--w627f-primary-light);
  text-decoration: none;
}

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

.w627f-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.w627f-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  padding-bottom: 8rem;
}

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

.w627f-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--w627f-header-h);
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.w627f-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--w627f-text);
  font-weight: 800;
  font-size: 1.9rem;
  letter-spacing: 0.5px;
}

.w627f-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

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

.w627f-header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.w627f-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 4rem;
  padding: 0 1.4rem;
  border: none;
  border-radius: var(--w627f-radius-sm);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.25s ease, color 0.25s ease;
}

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

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

.w627f-btn-login:hover {
  background: rgba(95, 158, 160, 0.15);
  color: var(--w627f-text);
}

.w627f-btn-register {
  background: linear-gradient(135deg, var(--w627f-accent) 0%, #d9941f 100%);
  color: #1f1f1f;
}

.w627f-btn-register:hover {
  filter: brightness(1.08);
}

.w627f-menu-toggle {
  background: transparent;
  border: 1px solid var(--w627f-border);
  color: var(--w627f-text);
  width: 4rem;
  height: 4rem;
  border-radius: 0.8rem;
  font-size: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============ Mobile menu ============ */
.w627f-mobile-menu {
  position: fixed;
  top: var(--w627f-header-h);
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--w627f-bg-soft);
  border-bottom: 1px solid var(--w627f-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.w627f-mobile-menu.w627f-menu-open {
  max-height: 60rem;
}

.w627f-mobile-menu ul {
  list-style: none;
  padding: 0.8rem 1.2rem 1.4rem;
}

.w627f-mobile-menu li a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1rem;
  color: var(--w627f-text);
  font-size: 1.5rem;
  border-bottom: 1px solid var(--w627f-border);
  border-radius: 0.6rem;
}

.w627f-mobile-menu li a:hover {
  background: rgba(95, 158, 160, 0.12);
  color: var(--w627f-primary-light);
}

.w627f-mobile-menu li a i,
.w627f-mobile-menu li a span.material-icons-outlined {
  font-size: 2rem;
  color: var(--w627f-primary-light);
  width: 2.4rem;
  text-align: center;
}

/* ============ Hero / Carousel ============ */
.w627f-hero {
  margin-top: var(--w627f-header-h);
  padding: 1.4rem 0 0.5rem;
}

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

.w627f-carousel-viewport {
  overflow: hidden;
}

.w627f-carousel-track {
  display: flex;
  transition: transform 0.55s ease;
}

.w627f-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}

.w627f-carousel-slide img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
}

.w627f-carousel-caption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.4rem;
  right: 1.4rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 100%);
  padding: 1.6rem 1.2rem 1rem;
  border-radius: 0 0 var(--w627f-radius) var(--w627f-radius);
}

.w627f-carousel-caption h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.w627f-carousel-caption p {
  font-size: 1.25rem;
  color: var(--w627f-text-soft);
}

.w627f-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  right: 1.2rem;
  display: flex;
  gap: 0.5rem;
}

.w627f-carousel-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.w627f-carousel-dot.w627f-dot-active {
  background: var(--w627f-accent);
}

/* ============ Section headings ============ */
.w627f-section {
  padding: 2.2rem 0 0.6rem;
}

.w627f-section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--w627f-text);
  margin-bottom: 1.2rem;
  position: relative;
  padding-left: 1.2rem;
}

.w627f-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  bottom: 0.4rem;
  width: 0.5rem;
  border-radius: 0.3rem;
  background: var(--w627f-primary);
}

.w627f-section-sub {
  font-size: 1.35rem;
  color: var(--w627f-text-muted);
  margin-bottom: 1.4rem;
}

.w627f-h1 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  color: var(--w627f-text);
}

.w627f-h1 .w627f-hl {
  color: var(--w627f-primary-light);
}

.w627f-lead {
  font-size: 1.45rem;
  color: var(--w627f-text-soft);
  margin-bottom: 1.6rem;
}

/* ============ Game grid ============ */
.w627f-category-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.6rem 0 1rem;
}

.w627f-category-head h2 {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w627f-text);
}

.w627f-category-tag {
  font-size: 1.1rem;
  background: rgba(95, 158, 160, 0.18);
  color: var(--w627f-primary-light);
  padding: 0.25rem 0.8rem;
  border-radius: 1rem;
  border: 1px solid var(--w627f-primary-dark);
}

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

.w627f-game-card {
  background: var(--w627f-bg-card);
  border-radius: var(--w627f-radius-sm);
  overflow: hidden;
  border: 1px solid var(--w627f-border);
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.w627f-game-card:hover {
  transform: translateY(-3px);
  border-color: var(--w627f-primary);
  box-shadow: 0 6px 16px rgba(95, 158, 160, 0.25);
}

.w627f-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.w627f-game-card .w627f-game-name {
  display: block;
  font-size: 1.15rem;
  color: var(--w627f-text-soft);
  padding: 0.5rem 0.4rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============ Cards / generic ============ */
.w627f-card {
  background: var(--w627f-bg-card);
  border: 1px solid var(--w627f-border);
  border-radius: var(--w627f-radius);
  padding: 1.6rem;
  margin-bottom: 1.4rem;
}

.w627f-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--w627f-text);
}

.w627f-card h3 i,
.w627f-card h3 span.material-icons-outlined {
  color: var(--w627f-accent);
  margin-right: 0.5rem;
}

.w627f-card p {
  font-size: 1.4rem;
  color: var(--w627f-text-soft);
  margin-bottom: 0.8rem;
}

.w627f-card ul {
  padding-left: 1.6rem;
  color: var(--w627f-text-soft);
  font-size: 1.4rem;
}

.w627f-card ul li {
  margin-bottom: 0.5rem;
}

.w627f-text-link {
  color: var(--w627f-accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.w627f-text-link:hover {
  color: var(--w627f-primary-light);
}

.w627f-cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}

.w627f-cta-row .w627f-btn {
  flex: 1 1 auto;
}

.w627f-btn-primary {
  background: linear-gradient(135deg, var(--w627f-primary) 0%, var(--w627f-primary-dark) 100%);
  color: #fff;
}

.w627f-btn-primary:hover {
  filter: brightness(1.1);
}

/* ============ Feature list ============ */
.w627f-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.w627f-feature {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--w627f-bg-card);
  border: 1px solid var(--w627f-border);
  border-radius: var(--w627f-radius-sm);
  padding: 1.3rem;
}

.w627f-feature-icon {
  flex: 0 0 3.6rem;
  height: 3.6rem;
  border-radius: 0.8rem;
  background: rgba(95, 158, 160, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--w627f-primary-light);
}

.w627f-feature h3 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

.w627f-feature p {
  font-size: 1.3rem;
  color: var(--w27f-text-soft, var(--w627f-text-soft));
}

/* ============ Testimonials ============ */
.w627f-testimonial {
  background: var(--w627f-bg-card);
  border-left: 4px solid var(--w627f-primary);
  border-radius: var(--w627f-radius-sm);
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
}

.w627f-testimonial p {
  font-size: 1.35rem;
  font-style: italic;
  color: var(--w627f-text-soft);
}

.w627f-testimonial .w627f-author {
  display: block;
  margin-top: 0.6rem;
  font-size: 1.2rem;
  color: var(--w627f-accent);
  font-style: normal;
  font-weight: 700;
}

/* ============ Payment chips ============ */
.w627f-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.w627f-chip {
  background: var(--w627f-bg-card);
  border: 1px solid var(--w627f-border);
  border-radius: 2rem;
  padding: 0.7rem 1.2rem;
  font-size: 1.3rem;
  color: var(--w627f-text-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.w627f-chip i {
  color: var(--w627f-primary-light);
}

/* ============ Winners ticker ============ */
.w627f-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--w627f-bg-card);
  border: 1px solid var(--w627f-border);
  border-radius: var(--w627f-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 0.7rem;
}

.w627f-winner .w627f-wname {
  font-size: 1.35rem;
  color: var(--w627f-text);
}

.w627f-winner .w627f-wamt {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--w627f-accent);
}

/* ============ Reveal animation ============ */
.w627f-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.w627f-reveal.w627f-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Footer ============ */
.w627f-footer {
  background: var(--w627f-bg-soft);
  border-top: 1px solid var(--w627f-border);
  padding: 2.4rem 0 1rem;
  margin-top: 1.5rem;
}

.w627f-footer-intro {
  font-size: 1.35rem;
  color: var(--w627f-text-muted);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.w627f-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-bottom: 1.6rem;
}

.w627f-footer-links a {
  font-size: 1.3rem;
  color: var(--w627f-text-soft);
}

.w627f-footer-links a:hover {
  color: var(--w627f-accent);
}

.w627f-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
}

.w627f-footer-promo .w627f-btn {
  flex: 1 1 auto;
  min-height: 3.6rem;
  padding: 0 1rem;
  font-size: 1.3rem;
}

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

/* ============ Bottom Nav ============ */
.w627f-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 6rem;
  background: linear-gradient(180deg, #2f2f2f 0%, #1f1f1f 100%);
  border-top: 1px solid var(--w627f-border);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0.3rem 0.2rem;
}

.w627f-bottom-nav a,
.w627f-bottom-nav button {
  flex: 1 1 0;
  min-width: 6rem;
  min-height: 5.4rem;
  background: transparent;
  border: none;
  color: var(--w627f-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 1.1rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.18s;
  text-decoration: none;
  position: relative;
}

.w627f-bottom-nav a i,
.w627f-bottom-nav a span,
.w627f-bottom-nav button i,
.w627f-bottom-nav button span.material-icons-outlined {
  font-size: 2.2rem;
}

.w627f-bottom-nav a:active,
.w627f-bottom-nav button:active {
  transform: scale(0.92);
}

.w627f-bottom-nav .w627f-nav-label {
  font-size: 1.1rem;
}

.w627f-bottom-nav a.w627f-nav-active,
.w627f-bottom-nav button.w627f-nav-active {
  color: var(--w627f-accent);
}

.w627f-bottom-nav a.w627f-nav-active::before,
.w627f-bottom-nav button.w627f-nav-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3rem;
  height: 0.3rem;
  border-radius: 0 0 0.3rem 0.3rem;
  background: var(--w627f-accent);
}

.w627f-nav-promo {
  color: var(--w627f-primary-light);
}

.w627f-nav-badge {
  position: absolute;
  top: 0.4rem;
  right: 1.4rem;
  background: var(--w627f-accent-2);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 1rem;
  padding: 0 0.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Desktop ============ */
@media (min-width: 769px) {
  .w627f-bottom-nav {
    display: none;
  }
  main {
    padding-bottom: 2rem;
  }
  body {
    background: #242424;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .w627f-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
