/* ============================================================
 * 77win login - layout styles (mobile-first)
 * Prefix: s279-  |  Palette: gold / amber / cream / bronze / steel
 * #FFEF94 #FF9500 #FFF8DC #CD853F #34495E
 * ============================================================ */

:root {
  --s279-gold: #FFEF94;
  --s279-amber: #FF9500;
  --s279-cream: #FFF8DC;
  --s279-bronze: #CD853F;
  --s279-steel: #34495E;
  --s279-bg: #1a1410;
  --s279-bg-2: #241a13;
  --s279-card: #2a1f17;
  --s279-card-2: #322519;
  --s279-text: #FFF8DC;
  --s279-muted: #c9b89a;
  --s279-accent: #FF9500;
  --s279-accent-2: #FFEF94;
  --s279-border: rgba(255, 239, 148, 0.14);
  --s279-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --s279-radius: 14px;
  --s279-header-h: 60px;
  --s279-bottom-h: 62px;
}

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

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

body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #2a1f15 0%, var(--s279-bg) 60%);
  color: var(--s279-text);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: var(--s279-accent-2); text-decoration: none; }
a:hover { color: var(--s279-accent); }

/* ---------- Layout container ---------- */
.s279-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.s279-section {
  padding: 28px 0;
}

.s279-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
}

.s279-section-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--s279-gold);
  letter-spacing: 0.4px;
  position: relative;
  padding-left: 12px;
}
.s279-section-title::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 4px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--s279-amber), var(--s279-bronze));
}

.s279-more {
  font-size: 0.78rem;
  color: var(--s279-muted);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.s279-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--s279-header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(180deg, #20180f, #15100b);
  border-bottom: 1px solid var(--s279-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.s279-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.s279-logo .s279-logo-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--s279-amber), var(--s279-bronze));
  display: flex; align-items: center; justify-content: center;
  color: #1a1410; font-weight: 900; font-size: 0.95rem;
  box-shadow: inset 0 0 8px rgba(255, 239, 148, 0.5);
}
.s279-logo .s279-logo-text {
  display: flex; flex-direction: column; line-height: 1.15;
}
.s279-logo .s279-logo-text b { color: var(--s279-gold); font-size: 1.05rem; }
.s279-logo .s279-logo-text span { color: var(--s279-muted); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 1px; }

.s279-menu-btn {
  background: transparent;
  border: 1px solid var(--s279-border);
  color: var(--s279-gold);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
}
.s279-menu-btn:hover { background: rgba(255, 149, 0, 0.12); }

.s279-header-actions { display: flex; gap: 8px; }

.s279-btn {
  border: none;
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 6px;
}
.s279-btn:active { transform: scale(0.96); }
.s279-btn-register {
  background: linear-gradient(135deg, var(--s279-amber), #ff7a00);
  color: #1a1410;
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.45);
}
.s279-btn-login {
  background: transparent;
  color: var(--s279-gold);
  border: 1px solid var(--s279-gold);
}
.s279-btn:hover { filter: brightness(1.08); }

/* ---------- Mobile menu (slide-in) ---------- */
.s279-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: #1c150e;
  border-left: 1px solid var(--s279-border);
  z-index: 9999;
  padding: 22px 18px;
  overflow-y: auto;
  transition: right 0.28s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
.s279-mobile-menu.s279-open { right: 0; }
.s279-menu-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.s279-menu-backdrop.s279-open { opacity: 1; pointer-events: auto; }
.s279-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.s279-menu-head b { color: var(--s279-gold); font-size: 1.15rem; }
.s279-menu-close {
  background: transparent; border: none; color: var(--s279-muted);
  font-size: 1.4rem; cursor: pointer;
}
.s279-mobile-menu nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px;
  border-radius: 10px;
  color: var(--s279-cream);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(255, 239, 148, 0.06);
}
.s279-mobile-menu nav a:hover {
  background: rgba(255, 149, 0, 0.1);
  color: var(--s279-gold);
}
.s279-mobile-menu nav a i { color: var(--s279-amber); width: 22px; text-align: center; }

/* ---------- Hero / slider ---------- */
.s279-hero { padding: 16px 0 4px; }
.s279-slider {
  position: relative;
  border-radius: var(--s279-radius);
  overflow: hidden;
  box-shadow: var(--s279-shadow);
  border: 1px solid var(--s279-border);
}
.s279-slider-viewport { overflow: hidden; }
.s279-slider-track {
  display: flex;
  transition: transform 0.6s ease;
}
.s279-slide {
  min-width: 100%;
  position: relative;
  padding: 22px 18px;
  min-height: 170px;
  display: flex; flex-direction: column; justify-content: center;
}
.s279-slide-1 { background: linear-gradient(135deg, #6b3d00, #ff9500 130%); }
.s279-slide-2 { background: linear-gradient(135deg, #4a2a55, #b5389b 130%); }
.s279-slide-3 { background: linear-gradient(135deg, #143a2e, #1f8a5b 130%); }
.s279-slide-tag {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  color: var(--s279-gold);
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.s279-slide h1, .s279-slide h2 { color: #fff; font-size: 1.35rem; line-height: 1.25; margin-bottom: 6px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.s279-slide p { color: rgba(255, 255, 255, 0.92); font-size: 0.82rem; margin-bottom: 12px; }
.s279-slider-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.s279-slider-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none; cursor: pointer; padding: 0;
}
.s279-slider-dot.s279-active { background: var(--s279-gold); width: 18px; border-radius: 4px; }

/* ---------- Marquee strip ---------- */
.s279-marquee {
  background: linear-gradient(90deg, rgba(255,149,0,0.18), rgba(205,133,63,0.18));
  border: 1px solid var(--s279-border);
  border-radius: 12px;
  padding: 8px 12px;
  margin: 12px 0 0;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.75rem;
  color: var(--s279-gold);
  overflow: hidden;
}
.s279-marquee i { color: var(--s279-amber); flex-shrink: 0; }
.s279-marquee span { white-space: nowrap; }

/* ---------- Category chips ---------- */
.s279-chips {
  display: flex; gap: 8px;
  overflow-x: auto;
  padding: 6px 0 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.s279-chips::-webkit-scrollbar { display: none; }
.s279-chip {
  flex: 0 0 auto;
  background: var(--s279-card);
  border: 1px solid var(--s279-border);
  color: var(--s279-cream);
  border-radius: 22px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.s279-chip.s279-active {
  background: linear-gradient(135deg, var(--s279-amber), var(--s279-bronze));
  color: #1a1410;
  border-color: transparent;
}

/* ---------- Game grid & cards ---------- */
.s279-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s279-card {
  background: var(--s279-card);
  border: 1px solid var(--s279-border);
  border-radius: var(--s279-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex; flex-direction: column;
}
.s279-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(255, 149, 0, 0.22);
  border-color: var(--s279-amber);
}
.s279-card-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #2a1f17, #3a2c1d);
  position: relative;
  overflow: hidden;
}
.s279-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.3s ease;
}
.s279-card:hover .s279-card-img img { transform: scale(1.06); }
.s279-card-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: linear-gradient(135deg, var(--s279-amber), #ff5e00);
  color: #1a1410;
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.s279-card-hot .s279-card-badge { background: linear-gradient(135deg, #ff3b3b, #b5389b); }
.s279-card-body { padding: 8px 9px 10px; }
.s279-card-name {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--s279-cream);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}
.s279-card-play {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--s279-amber), var(--s279-bronze));
  color: #1a1410;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 6px 0;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.s279-card-play:hover { filter: brightness(1.1); color: #1a1410; }

/* ---------- Feature / VIP strip ---------- */
.s279-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s279-feature {
  background: linear-gradient(135deg, var(--s279-card), var(--s279-card-2));
  border: 1px solid var(--s279-border);
  border-radius: 12px;
  padding: 14px;
  display: flex; align-items: flex-start; gap: 10px;
}
.s279-feature i {
  font-size: 1.5rem;
  color: var(--s279-amber);
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 149, 0, 0.12);
  border-radius: 8px;
}
.s279-feature h4 { color: var(--s279-gold); font-size: 0.88rem; margin-bottom: 3px; }
.s279-feature p { color: var(--s279-muted); font-size: 0.74rem; line-height: 1.45; }

/* ---------- SEO long-text ---------- */
.s279-seo {
  background: var(--s279-card);
  border: 1px solid var(--s279-border);
  border-radius: var(--s279-radius);
  padding: 18px 16px;
  color: var(--s279-cream);
  font-size: 0.88rem;
}
.s279-seo h2, .s279-seo h3 {
  color: var(--s279-gold);
  margin: 14px 0 8px;
  font-size: 1.05rem;
}
.s279-seo h2:first-child, .s279-seo h3:first-child { margin-top: 0; }
.s279-seo p { margin-bottom: 10px; color: var(--s279-muted); }
.s279-seo a { color: var(--s279-amber); border-bottom: 1px dashed rgba(255, 149, 0, 0.4); }
.s279-seo ul { padding-left: 18px; margin-bottom: 10px; color: var(--s279-muted); }
.s279-seo li { margin-bottom: 4px; }

/* ---------- FAQ ---------- */
.s279-faq-item {
  background: var(--s279-card);
  border: 1px solid var(--s279-border);
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.s279-faq-item summary {
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--s279-gold);
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
.s279-faq-item summary::-webkit-details-marker { display: none; }
.s279-faq-item summary::after {
  content: "+";
  color: var(--s279-amber);
  font-size: 1.2rem;
  font-weight: 700;
}
.s279-faq-item[open] summary::after { content: "−"; }
.s279-faq-item p {
  padding: 0 14px 14px;
  font-size: 0.82rem;
  color: var(--s279-muted);
}

/* ---------- CTA band ---------- */
.s279-cta {
  background: linear-gradient(135deg, var(--s279-amber), var(--s279-bronze));
  border-radius: var(--s279-radius);
  padding: 22px 18px;
  text-align: center;
  color: #1a1410;
  box-shadow: var(--s279-shadow);
}
.s279-cta h3 { font-size: 1.2rem; margin-bottom: 6px; color: #1a1410; }
.s279-cta p { font-size: 0.82rem; margin-bottom: 14px; color: rgba(26, 20, 16, 0.85); }
.s279-cta .s279-btn {
  background: #1a1410;
  color: var(--s279-gold);
  padding: 11px 22px;
  font-size: 0.9rem;
  border-radius: 22px;
}

/* ---------- Footer ---------- */
.s279-footer {
  background: #15100b;
  border-top: 1px solid var(--s279-border);
  padding: 26px 0 90px;
  margin-top: 22px;
}
.s279-footer h4 { color: var(--s279-gold); font-size: 0.95rem; margin-bottom: 10px; }
.s279-footer p, .s279-footer a {
  color: var(--s279-muted);
  font-size: 0.78rem;
  display: block;
  margin-bottom: 6px;
}
.s279-footer a:hover { color: var(--s279-amber); }
.s279-footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.s279-footer-bottom {
  border-top: 1px solid var(--s279-border);
  padding-top: 14px;
  font-size: 0.72rem;
  color: var(--s279-muted);
  text-align: center;
}
.s279-18plus {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid var(--s279-amber);
  color: var(--s279-gold);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  margin-top: 10px;
}

/* ---------- Bottom nav (mobile) ---------- */
.s279-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--s279-bottom-h);
  background: linear-gradient(180deg, #20180f, #120d09);
  border-top: 1px solid var(--s279-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}
.s279-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--s279-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  height: 100%;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 0.62rem;
  font-weight: 600;
  position: relative;
  transition: color 0.18s ease;
}
.s279-bottom-nav-btn i { font-size: 1.35rem; }
.s279-bottom-nav-btn .material-icons,
.s279-bottom-nav-btn .ion { font-size: 1.35rem; }
.s279-bottom-nav-btn:hover { color: var(--s279-gold); }
.s279-bottom-nav-btn.s279-current { color: var(--s279-amber); }
.s279-bottom-nav-btn.s279-current::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 28px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--s279-amber);
}
.s279-bottom-nav-btn.s279-promo {
  color: #1a1410;
  background: linear-gradient(135deg, var(--s279-amber), var(--s279-bronze));
  margin: 6px 4px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
}
.s279-bottom-nav-btn.s279-promo i { font-size: 1.5rem; }

/* ---------- Toast ---------- */
.s279-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--s279-bottom-h) + 18px);
  transform: translate(-50%, 30px);
  background: rgba(26, 20, 16, 0.96);
  color: var(--s279-gold);
  border: 1px solid var(--s279-amber);
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 0.8rem;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: var(--s279-shadow);
}
.s279-toast.s279-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal animation ---------- */
.s279-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.s279-reveal.s279-in { opacity: 1; transform: translateY(0); }

/* ---------- Desktop: hide bottom nav, widen layout ---------- */
@media (min-width: 769px) {
  .s279-bottom-nav { display: none; }
  .s279-wrap { max-width: 960px; }
  .s279-grid { grid-template-columns: repeat(6, 1fr); }
  .s279-features { grid-template-columns: repeat(4, 1fr); }
  .s279-footer { padding-bottom: 30px; }
}

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