/* jilliqq - theme-273d.css
 * Mobile-first casino/gaming theme. Palette: #0D1117 / #FFEF94 / #FFE135.
 * All custom classes use the w273d- prefix. Root font 62.5% (1rem = 10px).
 */

:root {
  --w273d-bg: #0D1117;
  --w273d-bg-2: #161B22;
  --w273d-bg-3: #1F2630;
  --w273d-text: #FFEF94;
  --w273d-accent: #FFE135;
  --w273d-muted: #9AA4B2;
  --w273d-border: rgba(255, 239, 148, 0.18);
  --w273d-primary: #FFE135;
  --w273d-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  --w273d-radius: 12px;
  --w273d-header-h: 56px;
  --w273d-bottomnav-h: 60px;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--w273d-bg);
  color: var(--w273d-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  -webkit-text-size-adjust: 100%;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
}

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

.w273d-container { width: 100%; padding: 0 1.2rem; }
.w273d-wrapper { padding-top: var(--w273d-header-h); padding-bottom: var(--w273d-bottomnav-h); min-height: 100vh; }

/* ============ Header / Top Nav ============ */
.w273d-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--w273d-header-h);
  background: linear-gradient(180deg, #11161E, #0D1117);
  border-bottom: 1px solid var(--w273d-border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; z-index: 1000; box-shadow: var(--w273d-shadow);
}
.w273d-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.w273d-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.w273d-brand-name { font-weight: 800; color: var(--w273d-accent); font-size: 1.6rem; letter-spacing: 0.5px; white-space: nowrap; }
.w273d-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.w273d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 34px; padding: 0 1rem; border-radius: 8px; border: none;
  font-weight: 700; font-size: 1.3rem; cursor: pointer; transition: transform 0.15s, opacity 0.15s;
}
.w273d-btn:active { transform: scale(0.95); }
.w273d-btn-login { background: transparent; color: var(--w273d-text); border: 1px solid var(--w273d-border); }
.w273d-btn-register { background: var(--w273d-accent); color: #1a1500; }
.w273d-btn-register:hover { text-decoration: none; opacity: 0.92; }
.w273d-menu-btn {
  background: transparent; border: 1px solid var(--w273d-border); color: var(--w273d-text);
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1.8rem; display: flex; align-items: center; justify-content: center;
}

/* Expandable nav menu */
.w273d-nav-menu {
  position: fixed; top: var(--w273d-header-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; background: var(--w273d-bg-2);
  border-bottom: 1px solid var(--w273d-border); max-height: 0; overflow: hidden;
  transition: max-height 0.28s ease; z-index: 999;
}
.w273d-nav-menu.w273d-open { max-height: 460px; box-shadow: var(--w273d-shadow); }
.w273d-nav-list { list-style: none; padding: 0.6rem 1rem; }
.w273d-nav-list li { border-bottom: 1px solid rgba(255,239,148,0.08); }
.w273d-nav-list li:last-child { border-bottom: none; }
.w273d-nav-list a { display: flex; align-items: center; gap: 0.7rem; padding: 1rem 0.4rem; color: var(--w273d-text); font-size: 1.4rem; }
.w273d-nav-list a:hover { color: var(--w273d-accent); text-decoration: none; }
.w273d-nav-list .material-icons, .w273d-nav-list .ionicon { font-size: 2rem; color: var(--w273d-accent); }

/* ============ Hero / Carousel ============ */
.w273d-carousel { position: relative; width: 100%; margin: 1rem 0 0; border-radius: var(--w273d-radius); overflow: hidden; }
.w273d-slides { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.w273d-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; cursor: pointer; }
.w273d-slide.w273d-active { opacity: 1; }
.w273d-slide img { width: 100%; height: 100%; object-fit: cover; }
.w273d-slide-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: var(--w273d-text); font-weight: 700; font-size: 1.4rem; }
.w273d-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.w273d-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,239,148,0.45); cursor: pointer; }
.w273d-dot.w273d-active { background: var(--w273d-accent); }

/* ============ Sections ============ */
.w273d-section { padding: 1.6rem 1.2rem; }
.w273d-section-title { font-size: 1.9rem; font-weight: 800; color: var(--w273d-accent); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.w273d-section-title .material-icons { font-size: 2.4rem; }
.w273d-h1 { font-size: 2.2rem; font-weight: 900; color: var(--w273d-accent); line-height: 1.3; padding: 1.2rem 1.2rem 0; }
.w273d-lead { padding: 0.6rem 1.2rem 0; color: var(--w273d-text); font-size: 1.4rem; }

/* ============ Game grid ============ */
.w273d-cat-head { display: flex; align-items: center; gap: 0.5rem; margin: 1.4rem 0 0.8rem; font-size: 1.6rem; font-weight: 700; color: var(--w273d-accent); }
.w273d-cat-head .ionicon { font-size: 2.2rem; }
.w273d-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.w273d-game { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; cursor: pointer; background: var(--w273d-bg-2); border-radius: 10px; padding: 0.5rem 0.3rem; transition: transform 0.15s; }
.w273d-game:active { transform: scale(0.95); }
.w273d-game img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--w273d-border); }
.w273d-game-name { font-size: 1.1rem; color: var(--w273d-text); text-align: center; line-height: 1.2; height: 2.6rem; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ============ Cards ============ */
.w273d-card { background: var(--w273d-bg-2); border: 1px solid var(--w273d-border); border-radius: var(--w273d-radius); padding: 1.2rem; margin-bottom: 1rem; box-shadow: var(--w273d-shadow); }
.w273d-card h2, .w273d-card h3 { color: var(--w273d-accent); margin-bottom: 0.6rem; }
.w273d-card p { margin-bottom: 0.6rem; font-size: 1.35rem; }
.w273d-card ul { padding-left: 1.6rem; }
.w273d-card li { margin-bottom: 0.4rem; }

/* CTA button (full width) */
.w273d-cta { display: block; width: 100%; text-align: center; padding: 1.2rem; background: var(--w273d-accent); color: #1a1500; font-weight: 800; font-size: 1.6rem; border-radius: 10px; margin: 1rem 0; }
.w273d-cta:hover { text-decoration: none; opacity: 0.92; }
.w273d-cta-outline { display: inline-block; color: var(--w273d-accent); border: 1px solid var(--w273d-accent); padding: 0.5rem 1rem; border-radius: 8px; font-weight: 700; }

/* Inline promo text link */
.w273d-promo-link { color: var(--w273d-accent); font-weight: 700; cursor: pointer; }

/* FAQ accordion */
.w273d-faq-item { border-bottom: 1px solid var(--w273d-border); }
.w273d-faq-q { width: 100%; text-align: left; background: none; border: none; color: var(--w273d-text); font-weight: 700; font-size: 1.4rem; padding: 1rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.w273d-faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--w273d-muted); font-size: 1.3rem; }
.w273d-faq-item.w273d-open .w273d-faq-a { max-height: 240px; padding-bottom: 0.8rem; }

/* RTP compact bars */
.w273d-rtp-row { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; border-bottom: 1px dashed var(--w273d-border); font-size: 1.3rem; }
.w273d-rtp-bar { height: 8px; border-radius: 4px; background: var(--w273d-bg-3); flex: 1; margin: 0 0.8rem; overflow: hidden; }
.w273d-rtp-fill { height: 100%; background: linear-gradient(90deg, #FFEF94, #FFE135); }

/* Testimonial / winners */
.w273d-testi { background: var(--w273d-bg-2); border-radius: 10px; padding: 1rem; margin-bottom: 0.8rem; border-left: 3px solid var(--w273d-accent); }
.w273d-testi-name { font-weight: 700; color: var(--w273d-accent); font-size: 1.3rem; }
.w273d-testi-text { color: var(--w273d-text); font-size: 1.3rem; margin-top: 0.3rem; }

/* Payment methods row */
.w273d-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.w273d-pay-chip { background: var(--w273d-bg-2); border: 1px solid var(--w273d-border); border-radius: 20px; padding: 0.5rem 1rem; font-size: 1.2rem; color: var(--w273d-text); display: flex; align-items: center; gap: 0.4rem; }

/* Winners showcase */
.w273d-winner { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,239,148,0.08); font-size: 1.3rem; }
.w273d-winner span:last-child { color: var(--w273d-accent); font-weight: 700; }

/* App download CTA */
.w273d-app-cta { background: linear-gradient(135deg, #1F2630, #161B22); border: 1px solid var(--w273d-border); border-radius: var(--w273d-radius); padding: 1.2rem; text-align: center; }
.w273d-app-cta img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; margin-bottom: 0.8rem; }
.w273d-app-btn { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--w273d-accent); color: #1a1500; padding: 0.9rem 1.6rem; border-radius: 8px; font-weight: 800; font-size: 1.4rem; }

/* ============ Footer ============ */
.w273d-footer { background: var(--w273d-bg-2); border-top: 1px solid var(--w273d-border); padding: 1.6rem 1.2rem; margin-top: 1.6rem; }
.w273d-footer-brand { color: var(--w273d-muted); font-size: 1.25rem; margin-bottom: 0.8rem; }
.w273d-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-bottom: 0.8rem; }
.w273d-footer-links a { color: var(--w273d-text); font-size: 1.2rem; }
.w273d-footer-promos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
.w273d-footer-promos .w273d-btn { font-size: 1.2rem; padding: 0.5rem 0.9rem; }
.w273d-footer-copy { color: var(--w273d-muted); font-size: 1.1rem; border-top: 1px solid rgba(255,239,148,0.08); padding-top: 0.8rem; margin-top: 0.6rem; }

/* ============ Mobile bottom nav ============ */
.w273d-bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--w273d-bottomnav-h);
  background: linear-gradient(180deg, #161B22, #0D1117);
  border-top: 1px solid var(--w273d-border);
  display: flex; justify-content: space-around; align-items: stretch;
  z-index: 1000; box-shadow: 0 -4px 18px rgba(0,0,0,0.45);
}
.w273d-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: none; border: none; color: var(--w273d-muted); cursor: pointer;
  font-size: 1.1rem; transition: color 0.15s, transform 0.15s; text-decoration: none;
}
.w273d-bottomnav-btn:active { transform: scale(0.92); }
.w273d-bottomnav-btn .material-icons, .w273d-bottomnav-btn .ionicon, .w273d-bottomnav-btn .fas, .w273d-bottomnav-btn .far { font-size: 24px; }
.w273d-bottomnav-btn.w273d-current { color: var(--w273d-accent); }
.w273d-bottomnav-btn:hover { color: var(--w273d-accent); text-decoration: none; }
.w273d-bottomnav-badge { position: absolute; top: 6px; right: 18px; background: #e23; color: #fff; font-size: 0.9rem; border-radius: 8px; padding: 0 4px; }

/* Hide bottom nav on desktop, show desktop nav */
@media (min-width: 769px) {
  .w273d-bottomnav { display: none; }
  .w273d-wrapper { padding-bottom: 0; }
}

/* Mobile bottom padding clearance */
@media (max-width: 768px) {
  .w273d-wrapper { padding-bottom: calc(var(--w273d-bottomnav-h) + 16px); }
}

/* Desktop wide layout adjustments */
@media (min-width: 431px) {
  .w273d-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Utility */
.w273d-text-center { text-align: center; }
.w273d-mt1 { margin-top: 1rem; }
.w273d-mb1 { margin-bottom: 1rem; }
.w273d-hidden { display: none !important; }
