/* ============================================================
   cwin222.homes - design-9e7f.css
   All custom classes use the s9e7- prefix.
   Palette: #008B8B / #273746 / #48D1CC
   Mobile-first, max 430px, rem root 62.5%.
   ============================================================ */

:root {
  font-size: 62.5%;
  --s9e7-bg: #0f2027;
  --s9e7-bg2: #273746;
  --s9e7-primary: #008B8B;
  --s9e7-accent: #48D1CC;
  --s9e7-gold: #f5c542;
  --s9e7-text: #eaf6f6;
  --s9e7-muted: #9fb3bd;
  --s9e7-card: #1c2c34;
  --s9e7-border: #2f4651;
}

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

html, body {
  background: linear-gradient(180deg, #0f2027 0%, #14313a 100%);
  color: var(--s9e7-text);
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

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

.s9e7-container { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }

/* ---------- Header ---------- */
.s9e7-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #008B8B 0%, #273746 100%);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.s9e7-logo { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 700; font-size: 1.8rem; }
.s9e7-logo img { width: 30px; height: 30px; border-radius: 6px; }
.s9e7-logo span { color: var(--s9e7-gold); }
.s9e7-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s9e7-menu-btn {
  background: transparent; border: 0; color: #fff; font-size: 2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
}
.s9e7-btn {
  border: 0; border-radius: 20px; padding: 0.7rem 1.3rem; font-size: 1.3rem;
  font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.s9e7-btn:active { transform: scale(0.96); }
.s9e7-btn-register { background: linear-gradient(90deg, #f5c542, #ff8a3c); color: #2a1d00; box-shadow: 0 3px 8px rgba(245,197,66,.35); }
.s9e7-btn-login { background: var(--s9e7-accent); color: #062424; }

/* ---------- Mobile menu ---------- */
.s9e7-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9998;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.s9e7-overlay.s9e7-show { opacity: 1; visibility: visible; }
.s9e7-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px; height: 100%;
  background: #14262d; z-index: 9999; padding: 2rem 1.4rem; overflow-y: auto;
  transition: right .28s ease; box-shadow: -4px 0 20px rgba(0,0,0,.45);
}
.s9e7-mobile-menu.s9e7-open { right: 0; }
.s9e7-mobile-menu h3 { color: var(--s9e7-gold); font-size: 1.6rem; margin-bottom: 1rem; border-bottom: 1px solid var(--s9e7-border); padding-bottom: 0.6rem; }
.s9e7-mobile-menu a {
  display: block; color: var(--s9e7-text); padding: 0.9rem 0.4rem;
  border-bottom: 1px solid rgba(255,255,255,.06); font-size: 1.4rem;
}
.s9e7-mobile-menu a:hover { color: var(--s9e7-accent); }
.s9e7-close { position: absolute; top: 1rem; right: 1rem; background: transparent; border: 0; color: #fff; font-size: 2rem; cursor: pointer; }

/* ---------- Hero slider ---------- */
.s9e7-hero { position: relative; overflow: hidden; }
.s9e7-slide {
  display: none; position: relative; min-height: 200px;
  background: linear-gradient(120deg, #008B8B, #273746); padding: 1.6rem 1.2rem;
}
.s9e7-slide.s9e7-active { display: block; animation: s9e7fade 0.6s ease; }
@keyframes s9e7fade { from { opacity: 0; } to { opacity: 1; } }
.s9e7-slide h2 { color: #fff; font-size: 2.2rem; margin-bottom: 0.5rem; }
.s9e7-slide p { color: #d6f5f3; font-size: 1.35rem; margin-bottom: 1rem; }
.s9e7-slide .s9e7-btn { font-size: 1.35rem; padding: 0.8rem 1.5rem; }
.s9e7-dots { display: flex; justify-content: center; gap: 0.5rem; padding: 0.8rem 0; background: rgba(0,0,0,.2); }
.s9e7-dot { width: 9px; height: 9px; border-radius: 50%; background: #4a6470; cursor: pointer; }
.s9e7-dot.s9e7-active { background: var(--s9e7-gold); }

/* ---------- Sections ---------- */
.s9e7-section { padding: 1.6rem 1rem; }
.s9e7-section-title {
  display: flex; align-items: center; gap: 0.6rem; font-size: 1.7rem; color: var(--s9e7-accent);
  margin-bottom: 1rem; font-weight: 700;
}
.s9e7-section-title::before {
  content: ""; width: 4px; height: 18px; background: var(--s9e7-gold); border-radius: 3px;
}

/* Category tabs */
.s9e7-cat-tabs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.6rem; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.s9e7-cat-tab {
  flex: 0 0 auto; padding: 0.6rem 1.1rem; border-radius: 18px; background: #1c2c34;
  color: var(--s9e7-muted); font-size: 1.3rem; border: 1px solid var(--s9e7-border); cursor: pointer;
}
.s9e7-cat-tab.s9e7-active { background: var(--s9e7-primary); color: #fff; border-color: var(--s9e7-accent); }

/* Game grid */
.s9e7-game-group { margin-bottom: 1.6rem; }
.s9e7-group-label { color: var(--s9e7-gold); font-size: 1.5rem; margin-bottom: 0.7rem; font-weight: 700; }
.s9e7-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.s9e7-game-card {
  background: var(--s9e7-card); border: 1px solid var(--s9e7-border); border-radius: 10px;
  overflow: hidden; position: relative; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.s9e7-game-card:active { transform: scale(0.97); }
.s9e7-game-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #0e1a1f; }
.s9e7-game-name {
  font-size: 1.15rem; color: var(--s9e7-text); padding: 0.5rem 0.4rem; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.s9e7-game-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.45); color: var(--s9e7-gold); font-weight: 700; font-size: 1.3rem;
  opacity: 0; transition: opacity .15s;
}
.s9e7-game-card:hover .s9e7-game-play { opacity: 1; }

/* Promo banner */
.s9e7-promo-banner {
  background: linear-gradient(90deg, #b8860b, #008B8B); border-radius: 12px;
  padding: 1.2rem; color: #fff; margin-bottom: 1.2rem;
}
.s9e7-promo-banner h3 { font-size: 1.6rem; margin-bottom: 0.4rem; }
.s9e7-promo-banner p { font-size: 1.25rem; margin-bottom: 0.8rem; color: #fff7d6; }

/* SEO content */
.s9e7-content p { margin-bottom: 0.9rem; color: #d6e4e7; font-size: 1.4rem; }
.s9e7-content h3 { color: var(--s9e7-accent); font-size: 1.6rem; margin: 1.2rem 0 0.6rem; }
.s9e7-content a { color: var(--s9e7-gold); text-decoration: underline; }
.s9e7-content ul { padding-left: 1.4rem; margin-bottom: 0.9rem; color: #d6e4e7; }
.s9e7-content li { margin-bottom: 0.4rem; }

/* FAQ */
.s9e7-faq-item { background: var(--s9e7-card); border: 1px solid var(--s9e7-border); border-radius: 8px; margin-bottom: 0.7rem; overflow: hidden; }
.s9e7-faq-q { padding: 0.9rem 1rem; font-weight: 600; color: var(--s9e7-accent); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.35rem; }
.s9e7-faq-q::after { content: "+"; font-size: 1.6rem; color: var(--s9e7-gold); }
.s9e7-faq-item.s9e7-open .s9e7-faq-q::after { content: "-"; }
.s9e7-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 1rem; color: #cfdfe2; }
.s9e7-faq-item.s9e7-open .s9e7-faq-a { max-height: 320px; padding-bottom: 0.9rem; }

/* Footer */
.s9e7-footer { background: #0c1a1f; padding: 2rem 1rem 1rem; border-top: 2px solid var(--s9e7-primary); margin-top: 1.5rem; }
.s9e7-footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.s9e7-footer h4 { color: var(--s9e7-gold); font-size: 1.35rem; margin-bottom: 0.6rem; }
.s9e7-footer a { display: block; color: var(--s9e7-muted); padding: 0.3rem 0; font-size: 1.25rem; }
.s9e7-footer a:hover { color: var(--s9e7-accent); }
.s9e7-footer-bottom { text-align: center; color: #6f858f; font-size: 1.15rem; padding-top: 1rem; border-top: 1px solid #1d2e35; }

/* Back to top */
.s9e7-back-top {
  position: fixed; right: 12px; bottom: 78px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--s9e7-primary); color: #fff; border: 0; font-size: 1.8rem; cursor: pointer;
  opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 999;
}
.s9e7-back-top.s9e7-show { opacity: 1; visibility: visible; }

/* ---------- Mobile bottom nav ---------- */
.s9e7-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: linear-gradient(180deg, #16303a, #0c1a1f);
  border-top: 2px solid var(--s9e7-primary);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 62px; padding: 4px 0;
}
.s9e7-nav-btn {
  flex: 1; background: transparent; border: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; min-width: 60px; min-height: 54px;
  color: var(--s9e7-muted); cursor: pointer; transition: color .2s;
}
.s9e7-nav-btn .s9e7-nav-icon { font-size: 22px; line-height: 1; }
.s9e7-nav-btn .s9e7-nav-label { font-size: 1.05rem; }
.s9e7-nav-btn.s9e7-active { color: var(--s9e7-gold); }
.s9e7-nav-btn:active { transform: scale(0.92); }
.s9e7-nav-btn.promo { color: var(--s9e7-accent); }

/* Mobile bottom padding for content clearance */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Desktop: hide bottom nav, widen container */
@media (min-width: 769px) {
  .s9e7-bottom-nav { display: none; }
  .s9e7-container { max-width: 768px; }
  .s9e7-game-grid { grid-template-columns: repeat(5, 1fr); }
  .s9e7-footer-cols { grid-template-columns: repeat(4, 1fr); }
}
