/* Online casino - shared stylesheet. All custom classes use the s364- prefix. */
:root {
  --s364-primary: #FF6347;
  --s364-soft: #FFCCCB;
  --s364-paper: #F0F0F0;
  --s364-ink: #2E4057;
  --s364-bg: #2E4057;
  --s364-bg-deep: #243348;
  --s364-text: #F0F0F0;
  --s364-muted: #c4d0de;
  --s364-gold: #ffd27a;
  --s364-shadow: 0 6px 22px rgba(0, 0, 0, 0.28);
  --s364-radius: 14px;
  --s364-maxw: 430px;
  --s364-header-h: 58px;
  --s364-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--s364-bg);
  color: var(--s364-text);
  line-height: 1.55;
  font-size: 15px;
  overflow-x: hidden;
}

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

a { color: var(--s364-soft); text-decoration: none; }
a:hover { color: var(--s364-gold); }

.s364-skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--s364-gold); color: var(--s364-ink);
  padding: 8px 14px; border-radius: 6px; z-index: 2000;
}
.s364-skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.s364-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--s364-header-h);
  background: linear-gradient(135deg, var(--s364-bg-deep), var(--s364-ink));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px;
}
.s364-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.s364-brand-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--s364-primary), var(--s364-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--s364-ink); font-weight: 800; font-size: 16px;
}
.s364-brand-name { font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; }
.s364-brand-name span { color: var(--s364-gold); }

.s364-header-actions { display: flex; align-items: center; gap: 8px; }
.s364-menu-btn {
  background: none; border: 0; color: #fff; font-size: 22px;
  width: 38px; height: 38px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.s364-menu-btn:hover { background: rgba(255, 255, 255, 0.1); }

.s364-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 13px; padding: 8px 14px;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.s364-btn:hover { transform: translateY(-1px); color: #fff; }
.s364-btn--register {
  background: linear-gradient(135deg, var(--s364-primary), #ff8a6a);
  color: #fff; box-shadow: 0 4px 14px rgba(255, 99, 71, .45);
}
.s364-btn--login {
  background: rgba(255, 255, 255, 0.12); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Mobile menu ---------- */
.s364-mobile-menu {
  position: fixed; top: var(--s364-header-h); left: 0; right: 0;
  background: var(--s364-bg-deep); z-index: 9999;
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.s364-mobile-menu--open { max-height: 80vh; overflow-y: auto; }
.s364-mobile-menu nav { display: flex; flex-direction: column; padding: 8px 14px 16px; }
.s364-mobile-menu a {
  color: var(--s364-text); padding: 12px 6px; border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 14px;
}
.s364-mobile-menu a:last-child { border-bottom: 0; }
.s364-mobile-menu a:hover { color: var(--s364-gold); }

/* ---------- Layout ---------- */
.s364-container { width: 100%; max-width: var(--s364-maxw); margin: 0 auto; padding: 0 12px; }
.s364-main { padding-bottom: calc(var(--s364-bottomnav-h) + 24px); }

/* ---------- Carousel ---------- */
.s364-carousel {
  position: relative; border-radius: var(--s364-radius); overflow: hidden;
  box-shadow: var(--s364-shadow); margin: 14px 0;
}
.s364-carousel-track { position: relative; }
.s364-carousel-slide {
  position: relative; display: none;
}
.s364-carousel-slide--active { display: block; }
.s364-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.s364-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff;
}
.s364-carousel-cap h2 { margin: 0 0 6px; font-size: 19px; }
.s364-carousel-cap p { margin: 0 0 8px; font-size: 13px; color: var(--s364-soft); }
.s364-carousel-dots {
  position: absolute; bottom: 10px; right: 14px;
  display: flex; gap: 6px;
}
.s364-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5);
  border: 0; cursor: pointer; padding: 0;
}
.s364-carousel-dot--active { background: var(--s364-gold); }
.s364-carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.4); color: #fff; border: 0; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.s364-carousel-nav--prev { left: 8px; }
.s364-carousel-nav--next { right: 8px; }

/* ---------- Sections ---------- */
.s364-section { padding: 18px 0; }
.s364-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.s364-section-title {
  font-size: 18px; font-weight: 800; margin: 0; color: #fff;
  border-left: 4px solid var(--s364-primary); padding-left: 10px;
}
.s364-section-title em { color: var(--s364-gold); font-style: normal; }
.s364-section-link { font-size: 12px; color: var(--s364-soft); }

.s364-filter-row { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 14px; }
.s364-filter-chip {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: var(--s364-text); padding: 6px 14px; border-radius: 999px;
  font-size: 12px; cursor: pointer; white-space: nowrap;
}
.s364-filter-chip--active { background: var(--s364-primary); color: #fff; border-color: transparent; }

/* ---------- Game grid ---------- */
.s364-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.s364-game-card {
  background: var(--s364-bg-deep); border-radius: 12px; overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.25); cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  display: block;
}
.s364-game-card:hover { transform: translateY(-2px); box-shadow: var(--s364-shadow); }
.s364-game-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #1b2738; }
.s364-game-name {
  font-size: 11px; padding: 6px 6px 8px; text-align: center;
  color: var(--s364-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Cards / content ---------- */
.s364-card {
  background: var(--s364-bg-deep); border-radius: var(--s364-radius);
  padding: 16px; box-shadow: var(--s364-shadow); margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,.06);
}
.s364-card h3 { margin: 0 0 8px; font-size: 16px; color: #fff; }
.s364-card p { margin: 0 0 8px; color: var(--s364-muted); font-size: 13.5px; }
.s364-card a { color: var(--s364-gold); text-decoration: underline; }

.s364-prose { color: var(--s364-muted); font-size: 14px; line-height: 1.7; }
.s364-prose h2 { color: #fff; font-size: 19px; margin: 18px 0 8px; }
.s364-prose h3 { color: var(--s364-soft); font-size: 16px; margin: 14px 0 6px; }
.s364-prose ul { padding-left: 20px; }
.s364-prose li { margin-bottom: 6px; }

/* ---------- Stats ---------- */
.s364-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.s364-stat {
  background: linear-gradient(135deg, var(--s364-bg-deep), #1b2738);
  border-radius: 12px; padding: 14px; text-align: center; border: 1px solid rgba(255,255,255,.06);
}
.s364-stat-num { font-size: 22px; font-weight: 800; color: var(--s364-gold); }
.s364-stat-label { font-size: 12px; color: var(--s364-muted); }

/* ---------- FAQ ---------- */
.s364-faq-item {
  background: var(--s364-bg-deep); border-radius: 12px; margin-bottom: 8px;
  overflow: hidden; border: 1px solid rgba(255,255,255,.06);
}
.s364-faq-q {
  display: flex; justify-content: space-between; gap: 10px; padding: 14px;
  font-weight: 700; color: #fff; cursor: pointer; font-size: 14px;
  background: none; border: 0; width: 100%; text-align: left;
}
.s364-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 14px; color: var(--s364-muted); font-size: 13px; }
.s364-faq-item--open .s364-faq-a { max-height: 320px; padding: 0 14px 14px; }

/* ---------- Testimonials ---------- */
.s364-review {
  background: var(--s364-bg-deep); border-radius: 12px; padding: 14px; margin-bottom: 10px;
  border-left: 3px solid var(--s364-primary);
}
.s364-review-stars { color: var(--s364-gold); font-size: 13px; margin-bottom: 4px; }
.s364-review-text { color: var(--s364-muted); font-size: 13px; }
.s364-review-author { color: var(--s364-soft); font-size: 12px; margin-top: 6px; }

/* ---------- Payment chips ---------- */
.s364-pay-row { display: flex; flex-wrap: wrap; gap: 8px; }
.s364-pay {
  background: rgba(255,255,255,.08); padding: 8px 12px; border-radius: 8px;
  font-size: 12px; color: var(--s364-text); display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- Winners ---------- */
.s364-winner {
  display: flex; justify-content: space-between; padding: 10px 12px;
  background: var(--s364-bg-deep); border-radius: 10px; margin-bottom: 6px; font-size: 13px;
}
.s364-winner-name { color: #fff; font-weight: 600; }
.s364-winner-amount { color: var(--s364-gold); font-weight: 800; }

/* ---------- CTA ---------- */
.s364-cta {
  background: linear-gradient(135deg, var(--s364-primary), #ff8a6a);
  border-radius: var(--s364-radius); padding: 18px; color: #fff; text-align: center;
  box-shadow: var(--s364-shadow); margin: 16px 0;
}
.s364-cta h3 { margin: 0 0 6px; font-size: 18px; }
.s364-cta p { margin: 0 0 12px; font-size: 13px; color: rgba(255,255,255,.92); }
.s364-cta .s364-btn { background: #fff; color: var(--s364-primary); }

/* ---------- Footer ---------- */
.s364-footer {
  background: var(--s364-bg-deep); padding: 22px 0 calc(var(--s364-bottomnav-h) + 30px);
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 18px;
}
.s364-footer h4 { color: #fff; font-size: 14px; margin: 14px 0 8px; }
.s364-footer p { color: var(--s364-muted); font-size: 12.5px; line-height: 1.7; }
.s364-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 10px 0; }
.s364-footer-links a { color: var(--s364-soft); font-size: 12.5px; }
.s364-footer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.s364-copyright { color: var(--s364-muted); font-size: 11.5px; margin-top: 14px; border-top: 1px dashed rgba(255,255,255,.1); padding-top: 12px; }

/* ---------- Bottom nav ---------- */
.s364-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--s364-bottomnav-h);
  background: linear-gradient(180deg, var(--s364-ink), var(--s364-bg-deep));
  border-top: 1px solid rgba(255,255,255,.1); z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
}
.s364-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: none; border: 0; color: var(--s364-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 10px; cursor: pointer; text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.s364-bottomnav-btn:hover { color: var(--s364-gold); transform: translateY(-2px); }
.s364-bottomnav-btn.active { color: var(--s364-primary); }
.s364-bottomnav-icon { font-size: 22px; line-height: 1; }
.s364-bottomnav-label { font-size: 10px; }

/* ---------- Utilities ---------- */
.s364-hide-desktop { display: block; }
.s364-text-center { text-align: center; }
.s364-mt-12 { margin-top: 12px; }

/* ---------- Desktop / tablet ---------- */
@media (min-width: 769px) {
  :root { --s364-maxw: 960px; }
  body { font-size: 16px; }
  .s364-grid { grid-template-columns: repeat(6, 1fr); }
  .s364-stats { grid-template-columns: repeat(4, 1fr); }
  .s364-footer-links { grid-template-columns: repeat(3, 1fr); }
  .s364-bottomnav { display: none; }
  .s364-main { padding-bottom: 40px; }
  .s364-footer { padding-bottom: 30px; }
  .s364-carousel-slide img { height: 320px; }
}
