/* ===================================================================
 * plus777 legit - theme.css
 * Mobile-first casino gaming site. Width up to 430px.
 * All custom classes use w2376- prefix.
 * Palette: #00B8D4 (cyan) | #34495E (slate) | #000080 (navy)
 * =================================================================== */

:root {
  --w2376-cyan: #00B8D4;
  --w2376-slate: #34495E;
  --w2376-navy: #000080;
  --w2376-bg: #0A1230;
  --w2376-bg-2: #0E1A44;
  --w2376-surface: #14224D;
  --w2376-surface-2: #1B2E5E;
  --w2376-line: #21356B;
  --w2376-text: #F2F7FF;
  --w2376-muted: #AAB9D8;
  --w2376-gold: #FFD54F;
  --w2376-hot: #FF4F7B;
  --w2376-success: #2EE6A6;
  --w2376-radius: 12px;
  --w2376-radius-lg: 18px;
  --w2376-shadow: 0 8px 24px rgba(0, 0, 128, 0.35);
  --w2376-header-h: 58px;
  --w2376-bottom-h: 62px;
  --w2376-max: 430px;
  font-size: 62.5%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--w2376-text);
  background: radial-gradient(1200px 600px at 50% -10%, #16265c 0%, var(--w2376-bg) 60%) fixed;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--w2376-cyan); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; font-weight: 800; }
p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.w2376-wrapper { width: 100%; max-width: var(--w2376-max); margin: 0 auto; padding: 0 14px; }
.w2376-container { padding: 18px 14px 22px; }
main { padding-top: calc(var(--w2376-header-h) + 4px); padding-bottom: calc(var(--w2376-bottom-h) + 22px); }

/* ---------- Header ---------- */
.w2376-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--w2376-header-h);
  background: linear-gradient(180deg, rgba(10, 18, 48, 0.96), rgba(10, 18, 48, 0.86));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--w2376-line);
}
.w2376-header-inner { height: 100%; display: flex; align-items: center; gap: 10px; max-width: var(--w2376-max); margin: 0 auto; padding: 0 12px; }
.w2376-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--w2376-text); font-size: 1.7rem; }
.w2376-logo img { width: 30px; height: 30px; border-radius: 8px; }
.w2376-logo span { background: linear-gradient(90deg, var(--w2376-cyan), var(--w2376-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w2376-header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.w2376-burger { width: 38px; height: 38px; border: 1px solid var(--w2376-line); border-radius: 10px; background: var(--w2376-surface); color: var(--w2376-text); display: inline-flex; align-items: center; justify-content: center; }
.w2376-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: 1.3rem; font-weight: 700; border: none; transition: transform .15s, filter .15s; }
.w2376-btn:active { transform: scale(0.95); }
.w2376-btn-login { background: var(--w2376-surface); color: var(--w2376-text); border: 1px solid var(--w2376-cyan); }
.w2376-btn-register { background: linear-gradient(135deg, var(--w2376-cyan), #0090B0); color: #04243A; }
.w2376-header-scrolled { box-shadow: 0 6px 18px rgba(0, 0, 128, 0.35); }

/* ---------- Mobile menu / drawer ---------- */
.w2376-menu-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 40, 0.55); opacity: 0; visibility: hidden; transition: opacity .25s; z-index: 9998; }
.w2376-backdrop-on { opacity: 1; visibility: visible; }
.w2376-mobile-menu { position: fixed; top: 0; right: 0; width: 82%; max-width: 340px; height: 100vh; background: var(--w2376-bg-2); border-left: 1px solid var(--w2376-line); z-index: 9999; transform: translateX(100%); transition: transform .28s ease; padding: 18px 16px; overflow-y: auto; }
.w2376-menu-open { transform: translateX(0); }
.w2376-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.w2376-menu-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--w2376-line); background: var(--w2376-surface); color: var(--w2376-text); }
.w2376-menu-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.w2376-menu-list a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; color: var(--w2376-text); border-radius: 10px; font-size: 1.45rem; border: 1px solid transparent; }
.w2376-menu-list a:hover, .w2376-menu-list a:focus { background: var(--w2376-surface); border-color: var(--w2376-line); }
.w2376-menu-list .material-icons-outlined, .w2376-menu-list .material-icons { font-size: 22px; color: var(--w2376-cyan); }
.w2376-menu-cta { margin-top: 16px; display: flex; gap: 8px; }
.w2376-menu-cta .w2376-btn { flex: 1; justify-content: center; }

/* ---------- Hero / Carousel ---------- */
.w2376-hero { padding-top: 10px; }
.w2376-carousel { position: relative; border-radius: var(--w2376-radius-lg); overflow: hidden; box-shadow: var(--w2376-shadow); }
.w2376-carousel-viewport { overflow: hidden; }
.w2376-carousel-track { display: flex; transition: transform .5s ease; }
.w2376-carousel-slide { flex: 0 0 100%; position: relative; }
.w2376-carousel-slide img { width: 100%; height: 190px; object-fit: cover; }
.w2376-carousel-cap { position: absolute; left: 12px; right: 12px; bottom: 10px; background: linear-gradient(transparent, rgba(0, 0, 40, .85)); color: #fff; padding: 24px 12px 10px; border-radius: 0 0 var(--w2376-radius-lg) var(--w2376-radius-lg); }
.w2376-carousel-cap b { color: var(--w2376-gold); display: block; font-size: 1.55rem; }
.w2376-carousel-cap span { font-size: 1.25rem; color: var(--w2376-muted); }
.w2376-carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 40, .55); border: 1px solid var(--w2376-line); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.w2376-carousel-btn.w2376-prev { left: 8px; }
.w2376-carousel-btn.w2376-next { right: 8px; }
.w2376-carousel-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.w2376-carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.w2376-dot-active { background: var(--w2376-cyan) !important; }

/* ---------- Section title ---------- */
.w2376-section { padding: 14px 0 6px; }
.w2376-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.w2376-section-title .w2376-bar { width: 4px; height: 22px; background: linear-gradient(180deg, var(--w2376-cyan), var(--w2376-navy)); border-radius: 4px; }
.w2376-section-title h2 { font-size: 1.7rem; margin: 0; }
.w2376-section-title .w2376-more { margin-left: auto; font-size: 1.25rem; color: var(--w2376-muted); }

/* ---------- Game grid ---------- */
.w2376-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.w2376-game-card { background: var(--w2376-surface); border: 1px solid var(--w2376-line); border-radius: var(--w2376-radius); overflow: hidden; transition: transform .15s, border-color .15s; }
.w2376-game-card:active { transform: scale(0.97); border-color: var(--w2376-cyan); }
.w2376-game-card img { width: 100%; height: 88px; object-fit: cover; background: #0b1430; }
.w2376-game-card .w2376-game-name { padding: 6px 8px; font-size: 1.15rem; line-height: 1.25; min-height: 32px; color: var(--w2376-text); text-align: center; }
.w2376-game-card.w2376-hot::after { content: "HOT"; position: absolute; }
.w2376-cat-head { display: flex; align-items: center; gap: 10px; margin: 10px 0 12px; }
.w2376-cat-head .material-icons, .w2376-cat-head .fas { font-size: 20px; color: var(--w2376-gold); }
.w2376-cat-head h3 { margin: 0; font-size: 1.5rem; }
.w2376-cat-head .w2376-tag { margin-left: auto; font-size: 1.15rem; color: var(--w2376-cyan); background: rgba(0, 184, 212, .12); border: 1px solid rgba(0, 184, 212, .35); padding: 2px 8px; border-radius: 999px; }

/* ---------- Promo / features cards ---------- */
.w2376-card { background: var(--w2376-surface); border: 1px solid var(--w2376-line); border-radius: var(--w2376-radius-lg); padding: 14px; margin-bottom: 12px; }
.w2376-card h3 { color: var(--w2376-gold); font-size: 1.55rem; }
.w2376-card p { color: var(--w2376-muted); font-size: 1.3rem; }
.w2376-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.w2376-feature { background: var(--w2376-surface); border: 1px solid var(--w2376-line); border-radius: var(--w2376-radius); padding: 12px; text-align: center; }
.w2376-feature .material-icons-outlined, .w2376-feature .fas, .w2376-feature .bi { font-size: 26px; color: var(--w2376-cyan); }
.w2376-feature b { display: block; margin-top: 6px; font-size: 1.3rem; color: var(--w2376-text); }
.w2376-feature span { font-size: 1.15rem; color: var(--w2376-muted); }

/* ---------- FAQ ---------- */
.w2376-faq { border: 1px solid var(--w2376-line); border-radius: var(--w2376-radius); margin-bottom: 8px; overflow: hidden; background: var(--w2376-surface); }
.w2376-faq-q { width: 100%; text-align: left; background: transparent; border: none; padding: 12px; color: var(--w2376-text); font-size: 1.35rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.w2376-faq-q .material-icons { color: var(--w2376-cyan); transition: transform .2s; }
.w2376-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 12px; color: var(--w2376-muted); font-size: 1.25rem; }
.w2376-faq-open .w2376-faq-a { max-height: 360px; padding-bottom: 12px; }
.w2376-faq-open .w2376-faq-q .material-icons { transform: rotate(45deg); }

/* ---------- Inline promo banner ---------- */
.w2376-promo-inline { display: block; background: linear-gradient(135deg, #002b66, #006080); border: 1px solid var(--w2376-cyan); border-radius: var(--w2376-radius-lg); padding: 14px; color: #fff; margin: 10px 0; }
.w2376-promo-inline b { color: var(--w2376-gold); }
.w2376-promo-pill { color: var(--w2376-cyan); font-weight: 700; }

/* ---------- Winners list ---------- */
.w2376-winners { display: flex; flex-direction: column; gap: 6px; }
.w2376-winners li { list-style: none; background: var(--w2376-surface); border: 1px solid var(--w2376-line); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; font-size: 1.2rem; color: var(--w2376-muted); }
.w2376-winners li b { color: var(--w2376-success); }

/* ---------- Payment / app rows ---------- */
.w2376-row { display: flex; gap: 10px; align-items: center; background: var(--w2376-surface); border: 1px solid var(--w2376-line); border-radius: var(--w2376-radius); padding: 10px; margin-bottom: 8px; }
.w2376-row .w2376-ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(0, 184, 212, .15); display: inline-flex; align-items: center; justify-content: center; color: var(--w2376-cyan); }
.w2376-row b { color: var(--w2376-text); font-size: 1.3rem; }
.w2376-row span { color: var(--w2376-muted); font-size: 1.15rem; }

/* ---------- Footer ---------- */
.w2376-footer { background: var(--w2376-bg-2); border-top: 1px solid var(--w2376-line); padding: 18px 14px 24px; margin-top: 10px; }
.w2376-footer h4 { color: var(--w2376-gold); margin: 12px 0 6px; font-size: 1.35rem; }
.w2376-footer p { color: var(--w2376-muted); font-size: 1.2rem; }
.w2376-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; margin: 10px 0; }
.w2376-footer-links a { color: var(--w2376-muted); font-size: 1.2rem; }
.w2376-footer-links a:hover { color: var(--w2376-cyan); }
.w2376-footer-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.w2376-footer-copy { margin-top: 14px; color: #5a6c92; font-size: 1.1rem; text-align: center; }

/* ---------- Mobile bottom nav ---------- */
.w2376-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; height: var(--w2376-bottom-h); background: linear-gradient(180deg, rgba(10, 18, 48, .98), rgba(8, 14, 38, 1)); border-top: 1px solid var(--w2376-line); display: flex; justify-content: space-around; align-items: stretch; padding: 4px 0; }
.w2376-bottom-nav button { flex: 1; background: transparent; border: none; color: var(--w2376-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 60px; min-height: 56px; font-size: 1.05rem; transition: color .15s, transform .15s; }
.w2376-bottom-nav button .material-icons, .w2376-bottom-nav button .fas, .w2376-bottom-nav button .bi, .w2376-bottom-nav button ion-icon { font-size: 22px; }
.w2376-bottom-nav button:active { transform: scale(0.92); }
.w2376-bottom-nav button.w2376-active { color: var(--w2376-cyan); }
.w2376-bottom-nav button.w2376-promo { color: var(--w2376-gold); }

/* ---------- Helpers ---------- */
.w2376-text-cyan { color: var(--w2376-cyan); }
.w2376-text-gold { color: var(--w2376-gold); }
.w2376-divider { height: 1px; background: var(--w2376-line); margin: 14px 0; }
.w2376-lead { font-size: 1.35rem; color: var(--w2376-muted); }
.w2376-hide-mobile { display: none; }

/* ---------- Responsive: tablet/desktop ---------- */
@media (min-width: 768px) {
  :root { --w2376-max: 1100px; }
  .w2376-wrapper { max-width: 1100px; padding: 0 22px; }
  .w2376-game-grid { grid-template-columns: repeat(6, 1fr); }
  .w2376-feature-grid { grid-template-columns: repeat(4, 1fr); }
  .w2376-carousel-slide img { height: 360px; }
  .w2376-burger { display: none; }
  .w2376-bottom-nav { display: none; }
  .w2376-hide-mobile { display: inline-flex; }
  .w2376-footer-links { grid-template-columns: repeat(3, 1fr); }
  main { padding-bottom: 30px; }
}

@media (min-width: 769px) {
  .w2376-bottom-nav { display: none !important; }
}
