/* ============================================================
 * Milyon (milyon.cyou) - layout.css
 * Mobile-first casino layout. Every custom class uses the
 * s44d- prefix. Color tokens follow the brand palette:
 *   --s44d-bg:      #141414 (deep dark base)
 *   --s44d-bg-2:    #A0522D (sienna, panels)
 *   --s44d-primary: #CD853F (peru, brand)
 *   --s44d-accent:  #FA8072 (salmon, CTA highlights)
 *   --s44d-cream:   #F5DEB3 (wheat text accent)
 *   --s44d-text:    #F0F0F0 (main text)
 * ============================================================ */

:root {
  --s44d-bg: #141414;
  --s44d-bg-2: #A0522D;
  --s44d-bg-3: #1f1a17;
  --s44d-primary: #CD853F;
  --s44d-accent: #FA8072;
  --s44d-cream: #F5DEB3;
  --s44d-text: #F0F0F0;
  --s44d-muted: #c9bdaa;
  --s44d-line: rgba(245, 222, 179, 0.16);
  --s44d-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --s44d-radius: 14px;
  --s44d-radius-sm: 10px;
  --s44d-header-h: 60px;
  --s44d-bottomnav-h: 62px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--s44d-bg);
  color: var(--s44d-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--s44d-cream); text-decoration: none; }
a:hover, a:focus { color: var(--s44d-accent); }
img { max-width: 100%; display: block; }

h1, h2, h3, h4 { color: var(--s44d-cream); line-height: 1.4rem; margin: 0 0 .8rem; }
h1 { font-size: 2.4rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.8rem; }
p  { margin: 0 0 1.1rem; }

/* ============== Layout containers ============== */
.s44d-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
  position: relative;
}
.s44d-container { padding: 18px 14px 24px; }
.s44d-section { margin: 26px 0; }
.s44d-section--alt {
  background: linear-gradient(180deg, rgba(160,82,45,0.18), rgba(20,20,20,0));
  border-radius: var(--s44d-radius);
  padding: 18px 14px;
}
.s44d-divider { height: 1px; background: var(--s44d-line); margin: 18px 0; }
.s44d-hidden { display: none !important; }

/* ============== Header ============== */
.s44d-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #141414 0%, #2a1c12 100%);
  border-bottom: 2px solid var(--s44d-primary);
  box-shadow: var(--s44d-shadow);
}
.s44d-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--s44d-header-h);
  padding: 0 12px;
}
.s44d-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--s44d-cream);
  font-size: 1.9rem;
  letter-spacing: .3px;
}
.s44d-brand .s44d-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, var(--s44d-accent), var(--s44d-bg-2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
}
.s44d-brand .s44d-brand-tld { color: var(--s44d-accent); font-weight: 700; }

.s44d-actions { display: flex; align-items: center; gap: 8px; }
.s44d-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  min-height: 38px;
}
.s44d-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.s44d-btn--login {
  background: transparent;
  border: 1px solid var(--s44d-primary);
  color: var(--s44d-cream);
}
.s44d-btn--register {
  background: linear-gradient(90deg, var(--s44d-accent), var(--s44d-primary));
  color: #1a0d05;
  box-shadow: 0 6px 16px rgba(250, 128, 114, 0.35);
}
.s44d-menu-btn {
  background: transparent;
  border: none;
  color: var(--s44d-cream);
  font-size: 2rem;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
}

/* ============== Mobile slide menu ============== */
.s44d-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 78%;
  max-width: 320px;
  height: 100%;
  background: #1c1209;
  z-index: 9999;
  padding: 18px 16px;
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 2px solid var(--s44d-primary);
}
.s44d-menu--open { right: 0; }
.s44d-menu h3 {
  color: var(--s44d-cream);
  font-size: 1.6rem;
  margin: 18px 0 8px;
  border-bottom: 1px solid var(--s44d-line);
  padding-bottom: 6px;
}
.s44d-menu a {
  display: block;
  padding: 11px 10px;
  color: var(--s44d-text);
  border-radius: 8px;
  margin-bottom: 4px;
  font-size: 1.45rem;
}
.s44d-menu a:hover { background: rgba(205, 133, 63, 0.18); color: var(--s44d-cream); }
.s44d-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.s44d-menu--open ~ .s44d-menu-overlay { opacity: 1; visibility: visible; }
.s44d-no-scroll { overflow: hidden; }
.s44d-menu-cta {
  background: linear-gradient(90deg, var(--s44d-accent), var(--s44d-primary));
  color: #1a0d05 !important;
  font-weight: 800;
  text-align: center;
}

/* ============== Hero / carousel ============== */
.s44d-carousel {
  position: relative;
  border-radius: var(--s44d-radius);
  overflow: hidden;
  box-shadow: var(--s44d-shadow);
  margin: 14px 0;
}
.s44d-slide {
  display: none;
  position: relative;
}
.s44d-slide--active { display: block; }
.s44d-slide img { width: 100%; height: 200px; object-fit: cover; }
.s44d-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(20,20,20,0) 0%, rgba(20,20,20,0.85) 100%);
  color: var(--s44d-cream);
}
.s44d-slide-cap strong { color: var(--s44d-accent); display: block; font-size: 1.6rem; }
.s44d-dots {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: flex;
  gap: 6px;
}
.s44d-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(245,222,179,0.4);
  cursor: pointer;
}
.s44d-dot--active { background: var(--s44d-accent); }

/* ============== Game grids ============== */
.s44d-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 10px;
}
.s44d-block-head h2 {
  margin: 0;
  font-size: 1.85rem;
  color: var(--s44d-cream);
}
.s44d-block-head .s44d-more {
  color: var(--s44d-accent);
  font-size: 1.3rem;
}
.s44d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s44d-grid--2 { grid-template-columns: repeat(2, 1fr); }
.s44d-game {
  background: var(--s44d-bg-3);
  border-radius: var(--s44d-radius-sm);
  overflow: hidden;
  border: 1px solid var(--s44d-line);
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
}
.s44d-game:hover { transform: translateY(-2px); border-color: var(--s44d-primary); }
.s44d-game img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  background: #0d0d0d;
}
.s44d-game-name {
  display: block;
  font-size: 1.2rem;
  color: var(--s44d-cream);
  padding: 6px 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s44d-game-tag {
  position: absolute;
  background: var(--s44d-accent);
  color: #1a0d05;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 6px;
  font-weight: 800;
}

/* ============== Filter buttons ============== */
.s44d-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.s44d-filter-btn {
  border: 1px solid var(--s44d-line);
  background: transparent;
  color: var(--s44d-cream);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 1.3rem;
  cursor: pointer;
  white-space: nowrap;
}
.s44d-filter-btn--active {
  background: var(--s44d-primary);
  color: #1a0d05;
  border-color: var(--s44d-primary);
  font-weight: 700;
}

/* ============== Cards / features ============== */
.s44d-card {
  background: var(--s44d-bg-3);
  border: 1px solid var(--s44d-line);
  border-radius: var(--s44d-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.s44d-card h3 { color: var(--s44d-cream); margin-top: 0; }
.s44d-card .s44d-icon {
  font-size: 2.2rem;
  color: var(--s44d-accent);
}
.s44d-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s44d-feature {
  background: linear-gradient(160deg, rgba(205,133,63,0.12), rgba(20,20,20,0.4));
  border-radius: var(--s44d-radius-sm);
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--s44d-line);
}
.s44d-feature .material-icons,
.s44d-feature .s44d-fa {
  font-size: 2.6rem;
  color: var(--s44d-accent);
}
.s44d-feature strong { display: block; color: var(--s44d-cream); margin-top: 6px; }
.s44d-feature span { font-size: 1.25rem; color: var(--s44d-muted); }

/* ============== Promo CTA banner ============== */
.s44d-cta {
  background: linear-gradient(120deg, #A0522D, #FA8072);
  border-radius: var(--s44d-radius);
  padding: 18px 16px;
  color: #1a0d05;
  text-align: center;
  margin: 18px 0;
  box-shadow: var(--s44d-shadow);
}
.s44d-cta h2 { color: #1a0d05; margin-top: 0; }
.s44d-cta p { color: #2a1605; }
.s44d-cta .s44d-btn--register {
  background: #141414;
  color: var(--s44d-cream);
  margin-top: 8px;
}

/* ============== FAQ ============== */
.s44d-faq-item {
  background: var(--s44d-bg-3);
  border: 1px solid var(--s44d-line);
  border-radius: var(--s44d-radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.s44d-faq-q {
  padding: 12px 14px;
  font-weight: 700;
  color: var(--s44d-cream);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.s44d-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  padding: 0 14px;
  color: var(--s44d-muted);
}
.app44d-faq--open .s44d-faq-a { max-height: 320px; padding-bottom: 12px; }

/* ============== Testimonials ============== */
.s44d-testi {
  background: var(--s44d-bg-3);
  border-left: 3px solid var(--s44d-accent);
  border-radius: 0 var(--s44d-radius-sm) var(--s44d-radius-sm) 0;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.s44d-testi strong { color: var(--s44d-cream); }
.s44d-testi .s44d-stars { color: #FFD27A; }

/* ============== Payment methods ============== */
.s44d-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.s44d-pay {
  background: var(--s44d-bg-3);
  border: 1px solid var(--s44d-line);
  border-radius: 10px;
  padding: 10px 4px;
  text-align: center;
  font-size: 1.15rem;
  color: var(--s44d-cream);
}

/* ============== Footer ============== */
.s44d-footer {
  background: #0d0d0d;
  border-top: 2px solid var(--s44d-primary);
  padding: 22px 14px 90px;
  margin-top: 24px;
}
.s44d-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}
.s44d-footer h4 {
  color: var(--s44d-accent);
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.s44d-footer a {
  display: block;
  color: var(--s44d-muted);
  font-size: 1.3rem;
  padding: 4px 0;
}
.s44d-footer .s44d-foot-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.s44d-footer .s44d-foot-btns .s44d-btn { flex: 1 1 45%; justify-content: center; }
.s44d-foot-brand { color: var(--s44d-cream); font-size: 1.3rem; }
.s44d-copy { color: var(--s44d-muted); font-size: 1.2rem; margin-top: 10px; }

/* ============== Bottom navigation (mobile only) ============== */
.s44d-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--s44d-bottomnav-h);
  background: rgba(20, 20, 20, 0.97);
  border-top: 2px solid var(--s44d-primary);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.5);
}
.s44d-bottomnav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--s44d-muted);
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 60px;
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.s44d-bottomnav a .material-icons,
.s44d-bottomnav a i,
.s44d-bottomnav a ion-icon,
.s44d-bottomnav a bi {
  font-size: 22px;
  margin-bottom: 2px;
}
.s44d-bottomnav a:active { transform: scale(0.92); }
.app44d-navbtn--active,
.s44d-bottomnav a:hover { color: var(--s44d-accent); }

/* ============== Reveal animation ============== */
.app44d-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.app44d-reveal--in {
  opacity: 1;
  transform: none;
}

/* ============== Responsive + desktop tweaks ============== */
@media (min-width: 769px) {
  .s44d-bottomnav { display: none; }
  .s44d-wrapper { max-width: 430px; }
}
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}
@media (max-width: 360px) {
  .s44d-grid { grid-template-columns: repeat(2, 1fr); }
  .s44d-game img { height: 76px; }
}
