/* f1686s core stylesheet - basefiles
   All custom classes use the w372c- prefix.
   Mobile-first: max-width 430px primary, scales up to desktop.
   Palette: #00FFFF | #212F3D | #20B2AA | #F8F8FF | #48D1CC
   Dark backgrounds, light text. Comments in English. */

:root {
  --w372c-primary: #00FFFF;
  --w372c-secondary: #20B2AA;
  --w372c-accent: #48D1CC;
  --w372c-bg: #212F3D;
  --w372c-bg-dark: #18222d;
  --w372c-bg-light: #2c3e50;
  --w372c-text: #F8F8FF;
  --w372c-text-muted: #b8c5d1;
  --w372c-border: #2f4253;
  --w372c-gold: #ffd166;
  --w372c-red: #ff5a5f;
  --w372c-header-h: 56px;
  --w372c-bottomnav-h: 62px;
}

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

html {
  font-size: 62.5%;
}

body {
  font-family: "Segoe UI", "Inter", system-ui, -apple-system, Arial, sans-serif;
  background-color: var(--w372c-bg);
  color: var(--w372c-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

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

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

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

/* ---------- Header ---------- */
.w372c-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w372c-header-h);
  background: linear-gradient(90deg, #18222d 0%, #212F3D 100%);
  border-bottom: 1px solid var(--w372c-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.w372c-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}

.w372c-logo img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.w372c-logo-text {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--w372c-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

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

.w372c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem 1.1rem;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  min-height: 36px;
  white-space: nowrap;
}

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

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

.w372c-btn-register {
  background: linear-gradient(90deg, var(--w372c-primary), var(--w372c-accent));
  color: #0d2230;
  box-shadow: 0 2px 8px rgba(0, 255, 255, 0.25);
}

.w372c-menu-toggle {
  background: transparent;
  border: none;
  color: var(--w372c-primary);
  font-size: 2rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Mobile menu ---------- */
.w372c-mobile-menu {
  position: fixed;
  top: var(--w372c-header-h);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: var(--w372c-bg-dark);
  border-bottom: 1px solid var(--w372c-border);
  padding: 0.8rem 1.2rem 1rem;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.w372c-mobile-menu.w372c-menu-open {
  max-height: 520px;
  overflow-y: auto;
}

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

.w372c-mobile-menu a:active {
  background: var(--w372c-bg-light);
}

.w372c-mobile-menu a i,
.w372c-mobile-menu a .material-icons-outlined {
  color: var(--w372c-primary);
  font-size: 1.8rem;
}

/* ---------- Main ---------- */
.w372c-main {
  flex: 1;
  padding-top: calc(var(--w372c-header-h) + 0.6rem);
  padding-bottom: calc(var(--w372c-bottomnav-h) + 1.2rem);
}

.w372c-section {
  margin-bottom: 2.4rem;
}

.w372c-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--w372c-primary);
  margin: 1.4rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--w372c-secondary);
  line-height: 1.8rem;
}

.w372c-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--w372c-primary);
  line-height: 2.2rem;
  margin: 1.4rem 0 1rem;
}

/* ---------- Carousel ---------- */
.w372c-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  margin-top: 1rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.w372c-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.w372c-carousel-slide {
  min-width: 100%;
  position: relative;
}

.w372c-carousel-slide img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.w372c-carousel-caption {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(24, 34, 45, 0.92));
  color: var(--w372c-text);
  font-size: 1.35rem;
  font-weight: 700;
}

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

.w372c-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--w372c-border);
  border: none;
  cursor: pointer;
}

.w372c-carousel-dot.w372c-dot-active {
  background: var(--w372c-primary);
  width: 22px;
  border-radius: 4px;
}

/* ---------- Category tabs ---------- */
.w372c-category-tabs {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.6rem 0;
  margin-bottom: 0.6rem;
  -webkit-overflow-scrolling: touch;
}

.w372c-category-tabs::-webkit-scrollbar {
  display: none;
}

.w372c-cat-tab {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: var(--w372c-bg-light);
  color: var(--w372c-text-muted);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid transparent;
}

.w372c-cat-tab.w372c-cat-active {
  background: var(--w372c-secondary);
  color: #fff;
  border-color: var(--w372c-primary);
}

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

.w372c-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.4rem;
  background: var(--w372c-bg-light);
  border: 1px solid var(--w372c-border);
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.w372c-game-card:active {
  transform: scale(0.96);
  border-color: var(--w372c-primary);
}

.w372c-game-card img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

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

/* ---------- Promo / content blocks ---------- */
.w372c-card {
  background: var(--w372c-bg-light);
  border: 1px solid var(--w372c-border);
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.w372c-card h2,
.w372c-card h3 {
  color: var(--w372c-primary);
  margin-bottom: 0.6rem;
}

.w372c-card p {
  color: var(--w372c-text-muted);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.w372c-text-link {
  color: var(--w372c-primary);
  font-weight: 700;
  text-decoration: underline;
}

.w372c-promo-banner {
  background: linear-gradient(120deg, #20B2AA, #00FFFF);
  border-radius: 14px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  color: #0d2230;
  margin: 1.4rem 0;
  box-shadow: 0 4px 18px rgba(0, 255, 255, 0.2);
}

.w372c-promo-banner h3 {
  color: #0d2230;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.w372c-promo-banner .w372c-btn-register {
  margin-top: 0.6rem;
}

.w372c-feature-list {
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.w372c-feature-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  background: var(--w372c-bg-light);
  padding: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--w372c-border);
}

.w372c-feature-list i,
.w372c-feature-list .material-icons-outlined {
  color: var(--w372c-primary);
  font-size: 1.9rem;
  flex-shrink: 0;
}

/* ---------- Testimonials ---------- */
.w372c-testimonial {
  background: var(--w372c-bg-light);
  border-left: 3px solid var(--w372c-gold);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.8rem;
}

.w372c-testimonial p {
  font-size: 1.25rem;
  color: var(--w372c-text);
  font-style: italic;
}

.w372c-testimonial .w372c-author {
  font-size: 1.1rem;
  color: var(--w372c-accent);
  margin-top: 0.4rem;
  font-weight: 700;
}

/* ---------- Payment ---------- */
.w372c-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.w372c-payment-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  background: var(--w372c-bg-dark);
  border: 1px solid var(--w372c-border);
  border-radius: 20px;
  font-size: 1.15rem;
  color: var(--w372c-text);
}

/* ---------- Winners ---------- */
.w372c-winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--w372c-border);
  font-size: 1.25rem;
}

.w372c-winner-row .w372c-amount {
  color: var(--w372c-gold);
  font-weight: 800;
}

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

.w372c-rtp-table th,
.w372c-rtp-table td {
  padding: 0.6rem 0.4rem;
  border-bottom: 1px solid var(--w372c-border);
  text-align: left;
}

.w372c-rtp-table th {
  color: var(--w372c-primary);
}

.w372c-rtp-table td.w372c-rtp-val {
  color: var(--w372c-gold);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.w372c-footer {
  background: var(--w372c-bg-dark);
  border-top: 1px solid var(--w372c-border);
  padding: 1.6rem 1.2rem 2.4rem;
  color: var(--w372c-text-muted);
  font-size: 1.2rem;
}

.w372c-footer-brand {
  color: var(--w372c-text);
  margin-bottom: 0.8rem;
  line-height: 1.6rem;
}

.w372c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin: 0.8rem 0;
}

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

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

.w372c-footer-copy {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: var(--w372c-text-muted);
}

/* ---------- Mobile bottom nav ---------- */
.w372c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: var(--w372c-bottomnav-h);
  background: linear-gradient(180deg, #212F3D, #18222d);
  border-top: 1px solid var(--w372c-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.4);
}

.w372c-bottom-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--w372c-text-muted);
  cursor: pointer;
  transition: color 0.18s ease, transform 0.18s ease;
  position: relative;
}

.w372c-bottom-btn i,
.w372c-bottom-btn .material-icons-outlined,
.w372c-bottom-btn .material-icons {
  font-size: 22px;
}

.w372c-bottom-btn span {
  font-size: 1rem;
  font-weight: 600;
}

.w372c-bottom-btn:active {
  transform: scale(0.92);
}

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

.w372c-bottom-btn.w372c-bottom-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--w372c-primary);
}

.w372c-bottom-btn.w372c-bottom-promo {
  color: var(--w372c-gold);
}

.w372c-bottom-badge {
  position: absolute;
  top: 6px;
  right: 18px;
  background: var(--w372c-red);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  body {
    max-width: 960px;
  }
  .w372c-header,
  .w372c-mobile-menu,
  .w372c-bottom-nav,
  .w372c-container {
    max-width: 960px;
  }
  .w372c-bottom-nav {
    display: none;
  }
  .w372c-main {
    padding-bottom: 2rem;
  }
  .w372c-game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .w372c-main {
    padding-bottom: calc(var(--w372c-bottomnav-h) + 1.2rem);
  }
}
