/* OPEN8 Inc - style.css
   Mobile-first stylesheet (max-width: 430px wrapper).
   All custom classes use the s57c- prefix; CSS variables use --s57c-*.
   Color palette: #778899 | #36454F | #FFDEAD | #0D1117
*/

:root {
  --s57c-primary: #778899;
  --s57c-secondary: #36454F;
  --s57c-accent: #FFDEAD;
  --s57c-bg: #0D1117;
  --s57c-text: #FFDEAD;
  --s57c-text-muted: #B8C0CC;
  --s57c-surface: #161D27;
  --s57c-surface-2: #1E2733;
  --s57c-border: #2A3543;
  --s57c-success: #2ECC71;
  --s57c-danger: #E74C3C;
  --s57c-gold: #F5C518;
  --s57c-radius: 12px;
  --s57c-radius-sm: 8px;
  --s57c-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --s57c-header-h: 58px;
  --s57c-bnav-h: 62px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--s57c-bg);
  color: var(--s57c-text);
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--s57c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* === Layout === */
.s57c-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: var(--s57c-bg);
}

.s57c-container {
  width: 100%;
  padding: 0 14px;
}

main {
  padding-bottom: 80px;
}

/* === Header === */
.s57c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--s57c-header-h);
  background: linear-gradient(90deg, var(--s57c-secondary), var(--s57c-bg));
  border-bottom: 1px solid var(--s57c-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.s57c-header .s57c-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 430px;
}

.s57c-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--s57c-text);
  font-weight: 800;
  font-size: 1.7rem;
}

.s57c-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s57c-brand small {
  color: var(--s57c-text-muted);
  font-size: 1.05rem;
  font-weight: 500;
}

.s57c-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.s57c-btn {
  border: none;
  border-radius: var(--s57c-radius-sm);
  padding: 9px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  transition: transform .15s ease, filter .15s ease;
}

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

.s57c-btn-primary {
  background: linear-gradient(135deg, var(--s57c-accent), var(--s57c-gold));
  color: var(--s57c-bg);
}

.s57c-btn-ghost {
  background: transparent;
  color: var(--s57c-text);
  border: 1px solid var(--s57c-border);
}

.s57c-btn-outline {
  background: rgba(255, 222, 173, 0.08);
  color: var(--s57c-accent);
  border: 1px solid var(--s57c-accent);
}

.s57c-icon-btn {
  background: transparent;
  border: none;
  color: var(--s57c-text);
  font-size: 2rem;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--s57c-radius-sm);
  cursor: pointer;
}

.s57c-icon-btn:active { background: rgba(255, 255, 255, 0.06); }

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

.s57c-mobile-menu.s57c-menu-open {
  max-height: 460px;
  padding: 8px 0;
}

.s57c-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--s57c-text);
  font-size: 1.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.s57c-mobile-menu a:hover { background: rgba(255, 222, 173, 0.06); text-decoration: none; }
.s57c-mobile-menu a i { width: 22px; text-align: center; color: var(--s57c-accent); }

/* === Slider === */
.s57c-slider {
  margin-top: calc(var(--s57c-header-h) + 10px);
  border-radius: var(--s57c-radius);
  overflow: hidden;
  position: relative;
}

.s57c-slide-viewport {
  overflow: hidden;
  border-radius: var(--s57c-radius);
}

.s57c-slide-track {
  display: flex;
  transition: transform .5s ease;
  width: 100%;
}

.s57c-slide {
  flex: 0 0 100%;
  position: relative;
}

.s57c-slide img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--s57c-radius);
}

.s57c-slide-caption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(13, 17, 23, 0.7);
  padding: 6px 10px;
  border-radius: var(--s57c-radius-sm);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--s57c-accent);
}

.s57c-slide-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}

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

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

/* === Sections === */
.s57c-section {
  margin-top: 22px;
}

.s57c-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.s57c-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--s57c-text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.s57c-section-title i { color: var(--s57c-accent); }

.s57c-section-link {
  font-size: 1.25rem;
  color: var(--s57c-accent);
}

.s57c-h1 {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.4;
  color: var(--s57c-text);
  margin: 18px 0 8px;
}

.s57c-lead {
  font-size: 1.45rem;
  color: var(--s57c-text-muted);
  line-height: 2.2rem;
  margin-bottom: 16px;
}

.s57c-card {
  background: var(--s57c-surface);
  border: 1px solid var(--s57c-border);
  border-radius: var(--s57c-radius);
  padding: 14px;
  box-shadow: var(--s57c-shadow);
}

.s57c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.s57c-grid-2 { grid-template-columns: repeat(2, 1fr); }
.s57c-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === Game tiles === */
.s57c-game {
  background: var(--s57c-surface);
  border: 1px solid var(--s57c-border);
  border-radius: var(--s57c-radius-sm);
  padding: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}

.s57c-game:hover { border-color: var(--s57c-accent); text-decoration: none; }
.s57c-game:active { transform: scale(0.95); }

.s57c-game img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.s57c-game-name {
  margin-top: 4px;
  font-size: 1.1rem;
  color: var(--s57c-text);
  line-height: 1.4rem;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.s57c-cat-tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(245, 197, 24, 0.12);
  color: var(--s57c-gold);
  border-radius: 20px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* === Features / RTP / lists === */
.s57c-feature {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--s57c-border);
}

.s57c-feature:last-child { border-bottom: none; }
.s57c-feature i { color: var(--s57c-accent); font-size: 1.8rem; margin-top: 2px; }
.s57c-feature h3 { margin: 0 0 4px; font-size: 1.4rem; color: var(--s57c-text); }
.s57c-feature p { margin: 0; font-size: 1.25rem; color: var(--s57c-text-muted); line-height: 1.9rem; }

.s57c-rtp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 1.25rem;
}

.s57c-rtp-bar {
  flex: 1;
  height: 6px;
  background: var(--s57c-border);
  border-radius: 4px;
  margin: 0 10px;
  overflow: hidden;
}

.s57c-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--s57c-accent), var(--s57c-gold));
}

.s57c-list {
  margin: 0;
  padding-left: 20px;
  color: var(--s57c-text-muted);
  font-size: 1.3rem;
  line-height: 2.1rem;
}

.s57c-list li { margin-bottom: 4px; }

/* Testimonials */
.s57c-testimonial {
  background: var(--s57c-surface-2);
  border-radius: var(--s57c-radius-sm);
  padding: 10px 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--s57c-accent);
}

.s57c-testimonial .s57c-stars { color: var(--s57c-gold); font-size: 1.2rem; }
.s57c-testimonial p { margin: 4px 0; font-size: 1.25rem; color: var(--s57c-text); line-height: 1.9rem; }
.s57c-testimonial small { color: var(--s57c-text-muted); }

/* Winners */
.s57c-winner {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: var(--s57c-surface-2);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 1.2rem;
}
.s57c-winner b { color: var(--s57c-gold); }

/* Payment chips */
.s57c-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.s57c-chip {
  background: var(--s57c-surface-2);
  border: 1px solid var(--s57c-border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--s57c-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Play-now CTA */
.s57c-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, var(--s57c-secondary), var(--s57c-bg));
  border: 1px solid var(--s57c-border);
  border-radius: var(--s57c-radius);
  padding: 16px;
  text-align: center;
}

.s57c-cta h2 { margin: 0; color: var(--s57c-accent); font-size: 1.9rem; }
.s57c-cta p { margin: 0 0 8px; color: var(--s57c-text-muted); font-size: 1.3rem; }

/* Promo text link */
.s57c-promo-link {
  color: var(--s57c-accent);
  font-weight: 800;
  text-decoration: underline;
}

/* Reveal animation */
.s57c-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
.s57c-reveal.s57c-revealed {
  opacity: 1;
  transform: none;
}

/* === Footer === */
.s57c-footer {
  background: var(--s57c-surface);
  border-top: 1px solid var(--s57c-border);
  padding: 18px 14px 14px;
  margin-top: 28px;
}

.s57c-footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--s57c-text);
  margin-bottom: 6px;
}

.s57c-footer-text {
  font-size: 1.2rem;
  color: var(--s57c-text-muted);
  line-height: 2rem;
  margin-bottom: 12px;
}

.s57c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

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

.s57c-footer-copy {
  border-top: 1px solid var(--s57c-border);
  padding-top: 10px;
  font-size: 1.15rem;
  color: var(--s57c-text-muted);
  text-align: center;
}

/* === Mobile bottom nav === */
.s57c-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--s57c-bnav-h);
  background: var(--s57c-secondary);
  border-top: 1px solid var(--s57c-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.s57c-bnav-item {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--s57c-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.05rem;
  transition: transform .15s ease, color .15s ease;
}

.s57c-bnav-item i,
.s57c-bnav-item .material-icons-outlined {
  font-size: 22px;
}

.s57c-bnav-item:active { transform: scale(0.9); }

.s57c-bnav-item.s57c-bnav-active {
  color: var(--s57c-accent);
}

.s57c-bnav-item.s57c-bnav-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 3px;
  background: var(--s57c-accent);
  border-radius: 0 0 4px 4px;
}

.s57c-bnav-item span { font-size: 1.05rem; }

/* Desktop rules */
@media (min-width: 768px) {
  .s57c-bnav { display: none; }
  main { padding-bottom: 24px; }
  .s57c-wrapper { max-width: 430px; }
}

@media (max-width: 768px) {
  main { padding-bottom: calc(var(--s57c-bnav-h) + 16px); }
}

/* Accessibility */
.s57c-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--s57c-accent);
  outline-offset: 2px;
}
