/* ===========================================================
   color game online - layout stylesheet (mobile-first basefile)
   All custom classes use the s19c- prefix per project convention.
   Palette: #FFDEAD (navajo) | #D2B48C (tan) | #FDF5E6 (seashell) | #2E4057 (slate)
   =========================================================== */

:root {
  --s19c-primary: #FFDEAD;
  --s19c-secondary: #D2B48C;
  --s19c-bg-light: #FDF5E6;
  --s19c-bg-dark: #2E4057;
  --s19c-accent: #E89B3B;
  --s19c-accent-2: #C0392B;
  --s19c-text: #1f2a36;
  --s19c-text-light: #fff6e6;
  --s19c-muted: #6b7a89;
  --s19c-radius: 12px;
  --s19c-shadow: 0 4px 18px rgba(46, 64, 87, 0.18);
  --s19c-header-h: 56px;
  --s19c-bottom-h: 60px;
}

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

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

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

a { color: var(--s19c-bg-dark); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Header ===== */
.s19c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s19c-header-h);
  background: linear-gradient(90deg, var(--s19c-bg-dark), #3a5168);
  display: flex;
  align-items: center;
  padding: 0 12px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

.s19c-logo-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--s19c-primary);
  font-weight: 700;
  font-size: 1.7rem;
  flex: 0 0 auto;
}
.s19c-logo-wrap img { width: 28px; height: 28px; border-radius: 6px; }

.s19c-header-spacer { flex: 1 1 auto; }

.s19c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  min-height: 36px;
}
.s19c-btn:focus-visible { outline: 2px solid var(--s19c-primary); outline-offset: 2px; }
.s19c-btn:hover { transform: translateY(-1px); }

.s19c-btn-register {
  background: linear-gradient(90deg, var(--s19c-accent), #f4b942);
  color: #2a1a05;
  margin-left: 6px;
  box-shadow: 0 2px 8px rgba(232,155,59,.45);
}
.s19c-btn-login {
  background: transparent;
  color: var(--s19c-primary);
  border: 1.5px solid var(--s19c-primary);
}
.s19c-btn-login:hover { background: rgba(255,222,173,.12); }

.s19c-menu-btn {
  background: transparent;
  border: none;
  color: var(--s19c-primary);
  font-size: 2rem;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
}
.s19c-menu-btn.s19c-active { background: rgba(255,255,255,.12); }

/* ===== Slide-down menu ===== */
.s19c-mobile-menu {
  position: fixed;
  top: var(--s19c-header-h);
  left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  background: var(--s19c-bg-dark);
  padding: 8px 0;
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.s19c-mobile-menu.s19c-menu-open { max-height: 460px; }
.s19c-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: var(--s19c-primary);
  font-size: 1.45rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.s19c-mobile-menu a:hover { background: rgba(255,222,173,.08); }
.s19c-mobile-menu .material-icons,
.s19c-mobile-menu i { font-size: 20px; color: var(--s19c-secondary); }

/* ===== Page layout ===== */
.s19c-main {
  padding-top: calc(var(--s19c-header-h) + 6px);
  padding-bottom: calc(var(--s19c-bottom-h) + 30px);
  min-height: 100vh;
}

.s19c-section { padding: 22px 14px; }
.s19c-section-alt { background: #fff8ec; }

.s19c-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--s19c-bg-dark);
  margin-bottom: 8px;
  line-height: 1.25;
}
.s19c-h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--s19c-bg-dark);
  margin: 14px 0 10px;
  position: relative;
  padding-left: 12px;
}
.s19c-h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--s19c-accent), var(--s19c-accent-2));
}
.s19c-h3 {
  font-size: 1.55rem;
  font-weight: 700;
  color: #34465c;
  margin: 10px 0 6px;
}
.s19c-lead { color: var(--s19c-muted); font-size: 1.4rem; }

.s19c-p { margin: 8px 0; color: #314359; }

.s19c-text-link {
  color: var(--s19c-accent-2);
  font-weight: 700;
  border-bottom: 1px dashed rgba(192,57,43,.5);
}
.s19c-text-link:hover { color: var(--s19c-accent); }

.s19c-pill {
  display: inline-block;
  padding: 3px 10px;
  font-size: 1.2rem;
  border-radius: 20px;
  background: rgba(46,64,87,.08);
  color: var(--s19c-bg-dark);
  margin-right: 6px;
  margin-bottom: 6px;
}

/* ===== Carousel ===== */
.s19c-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--s19c-shadow);
  margin: 6px 0 4px;
}
.s19c-carousel-track {
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}
.s19c-slide {
  flex: 0 0 100%;
  position: relative;
}
.s19c-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.s19c-slide-cap {
  position: absolute;
  left: 12px; bottom: 12px;
  background: rgba(46,64,87,.78);
  color: var(--s19c-primary);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 700;
}
.s19c-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0;
}
.s19c-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(46,64,87,.25);
  border: none;
  cursor: pointer;
}
.s19c-dot-active { background: var(--s19c-accent); width: 20px; border-radius: 6px; }

/* ===== Filter tabs (visual aid) ===== */
.s19c-filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.s19c-filter-row::-webkit-scrollbar { display: none; }
.s19c-filter-tab {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(46,64,87,.15);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--s19c-bg-dark);
  cursor: pointer;
}
.s19c-filter-tab.s19c-filter-active {
  background: var(--s19c-bg-dark);
  color: var(--s19c-primary);
  border-color: var(--s19c-bg-dark);
}

/* ===== Game grid ===== */
.s19c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.s19c-game-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 1px 6px rgba(46,64,87,.08);
  transition: transform .15s ease, box-shadow .2s ease;
  cursor: pointer;
  border: 1px solid #f0e2c8;
}
.s19c-game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46,64,87,.18);
}
.s19c-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f7eed8;
}
.s19c-game-name {
  font-size: 1.18rem;
  font-weight: 600;
  color: #2f3e51;
  padding: 5px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Feature / promo / cards ===== */
.s19c-card {
  background: #fff;
  border-radius: var(--s19c-radius);
  padding: 14px;
  box-shadow: var(--s19c-shadow);
  margin-bottom: 12px;
  border-left: 4px solid var(--s19c-secondary);
}
.s19c-card-accent { border-left-color: var(--s19c-accent); }
.s19c-card-red { border-left-color: var(--s19c-accent-2); }

.s19c-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s19c-feature {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
  box-shadow: 0 1px 6px rgba(46,64,87,.07);
}
.s19c-feature i,
.s19c-feature .material-icons {
  font-size: 28px;
  color: var(--s19c-accent);
  margin-bottom: 6px;
}
.s19c-feature h3 { font-size: 1.3rem; color: var(--s19c-bg-dark); margin-bottom: 4px; }
.s19c-feature p { font-size: 1.2rem; color: var(--s19c-muted); }

/* CTA block */
.s19c-cta {
  background: linear-gradient(120deg, var(--s19c-bg-dark), #3d5673);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: var(--s19c-text-light);
  margin: 12px 0;
}
.s19c-cta h3 { color: var(--s19c-primary); font-size: 1.7rem; margin-bottom: 6px; }
.s19c-cta p { color: #e7d9bf; font-size: 1.3rem; margin-bottom: 10px; }
.s19c-cta .s19c-btn { background: var(--s19c-accent); color: #1f1402; padding: 10px 22px; }

/* Testimonials */
.s19c-quote {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border-left: 3px solid var(--s19c-secondary);
}
.s19c-quote p { font-style: italic; color: #314359; font-size: 1.3rem; }
.s19c-quote .s19c-quote-author { font-size: 1.2rem; color: var(--s19c-muted); margin-top: 6px; font-weight: 700; }

/* RTP table */
.s19c-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  font-size: 1.3rem;
}
.s19c-rtp-table th,
.s19c-rtp-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #efe2c8;
}
.s19c-rtp-table th { background: var(--s19c-bg-dark); color: var(--s19c-primary); }
.s19c-rtp-table tr:last-child td { border-bottom: none; }
.s19c-rtp-bar {
  display: inline-block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--s19c-accent), var(--s19c-accent-2));
  vertical-align: middle;
  margin-left: 6px;
}

/* Payment chips */
.s19c-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.s19c-pay {
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--s19c-bg-dark);
  box-shadow: 0 1px 5px rgba(46,64,87,.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.s19c-pay i { color: var(--s19c-accent); }

/* Winner ticker */
.s19c-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.25rem;
}
.s19c-winner span:first-child { font-weight: 700; color: var(--s19c-bg-dark); }
.s19c-winner span:last-child { color: var(--s19c-accent-2); font-weight: 700; }

/* FAQ */
.s19c-faq-item {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  border-left: 3px solid var(--s19c-accent);
}
.s19c-faq-item h3 { font-size: 1.35rem; color: var(--s19c-bg-dark); margin-bottom: 4px; }
.s19c-faq-item p { font-size: 1.25rem; color: #314359; }

/* Steps list */
.s19c-steps { counter-reset: step; padding-left: 0; list-style: none; }
.s19c-steps li {
  position: relative;
  padding: 8px 8px 8px 38px;
  margin-bottom: 6px;
  background: #fff;
  border-radius: 8px;
  font-size: 1.3rem;
  color: #314359;
}
.s19c-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  background: var(--s19c-accent);
  color: #1f1402;
  border-radius: 50%;
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Footer ===== */
.s19c-footer {
  background: var(--s19c-bg-dark);
  color: var(--s19c-text-light);
  padding: 24px 16px calc(var(--s19c-bottom-h) + 24px);
  margin-top: 20px;
}
.s19c-footer-brand { font-size: 1.4rem; color: var(--s19c-primary); margin-bottom: 10px; line-height: 1.5; }
.s19c-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.s19c-footer-links a {
  color: var(--s19c-secondary);
  font-size: 1.25rem;
  background: rgba(255,255,255,.06);
  padding: 5px 10px;
  border-radius: 6px;
}
.s19c-footer-links a:hover { background: rgba(255,222,173,.18); color: var(--s19c-primary); }

.s19c-footer-promos { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.s19c-footer-promos .s19c-btn {
  background: var(--s19c-accent);
  color: #1f1402;
  font-size: 1.2rem;
  padding: 6px 12px;
}

.s19c-footer-copy {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 14px;
  padding-top: 12px;
  font-size: 1.2rem;
  color: #b6c4d4;
  text-align: center;
}

/* ===== Mobile bottom navigation ===== */
.s19c-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 430px;
  margin: 0 auto;
  height: var(--s19c-bottom-h);
  background: linear-gradient(180deg, #ffffff, #fbf2df);
  border-top: 1px solid #e9d9b6;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 14px rgba(46,64,87,.12);
}
.s19c-bottom-btn {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s19c-muted);
  font-size: 1.1rem;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
  padding: 4px 2px;
  position: relative;
}
.s19c-bottom-btn .material-icons,
.s19c-bottom-btn i,
.s19c-bottom-btn ion-icon { font-size: 24px; }
.s19c-bottom-btn:hover { color: var(--s19c-accent); transform: translateY(-1px); }
.s19c-bottom-btn.s19c-bottom-active { color: var(--s19c-accent-2); }
.s19c-bottom-btn.s19c-bottom-active::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--s19c-accent-2);
}

/* Floating back-to-top */
.s19c-top-btn {
  position: fixed;
  right: 14px;
  bottom: calc(var(--s19c-bottom-h) + 14px);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--s19c-bg-dark);
  color: var(--s19c-primary);
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 998;
  box-shadow: var(--s19c-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== Desktop: hide bottom nav, widen layout ===== */
@media (min-width: 769px) {
  body { max-width: 768px; }
  .s19c-bottom-nav { display: none; }
  .s19c-footer { padding-bottom: 24px; }
  .s19c-main { padding-bottom: 30px; }
  .s19c-grid { grid-template-columns: repeat(6, 1fr); }
  .s19c-feature-row { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 481px) and (max-width: 768px) {
  .s19c-grid { grid-template-columns: repeat(4, 1fr); }
  .s19c-feature-row { grid-template-columns: repeat(3, 1fr); }
}
