/* ============================================================
 * Lakiwin Casino - theme-054b.css
 * Mobile-first responsive theme. Root font 62.5% => 1rem = 10px.
 * All custom classes use the w054b- prefix for namespace isolation.
 * Color palette:
 *   Salmon   #FA8072  (primary accent)
 *   Cream    #FFFFBA  (highlight)
 *   Charcoal #1E1E1E  (dark background)
 *   Alice    #F0F8FF  (light surface / text)
 *   Pink     #FFB6C1  (secondary accent)
 * ============================================================ */

:root {
  --w054b-primary: #FA8072;
  --w054b-highlight: #FFFFBA;
  --w054b-bg: #1E1E1E;
  --w054b-bg-alt: #262626;
  --w054b-surface: #F0F8FF;
  --w054b-pink: #FFB6C1;
  --w054b-text: #F0F8FF;
  --w054b-text-dim: #B8C0CC;
  --w054b-gold: #FFD56B;
  --w054b-radius: 12px;
  --w054b-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --w054b-maxw: 430px;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--w054b-bg);
  color: var(--w054b-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: var(--w054b-primary);
  text-decoration: none;
}

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

/* ---------- Layout containers ---------- */
.w054b-wrapper {
  max-width: var(--w054b-maxw);
  margin: 0 auto;
  background: var(--w054b-bg);
  min-height: 100vh;
}

.w054b-container {
  width: 100%;
  padding: 1.4rem 1.2rem;
}

.w054b-main {
  padding-bottom: 9rem; /* clearance for fixed bottom nav */
}

/* ---------- Header ---------- */
.w054b-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, #1E1E1E 0%, #2a1a1a 100%);
  border-bottom: 2px solid var(--w054b-primary);
  box-shadow: var(--w054b-shadow);
}

.w054b-header-inner {
  max-width: var(--w054b-maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.8rem;
}

.w054b-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.w054b-brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 6px;
}

.w054b-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w054b-highlight);
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.w054b-brand-name span {
  color: var(--w054b-primary);
}

.w054b-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ---------- Buttons ---------- */
.w054b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3.6rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  text-decoration: none;
  line-height: 1;
}

.w054b-btn:active {
  transform: scale(0.95);
}

.w054b-btn-primary {
  background: linear-gradient(135deg, var(--w054b-primary), #ff6a5a);
  color: #1E1E1E;
  box-shadow: 0 4px 12px rgba(250, 128, 114, 0.45);
}

.w054b-btn-secondary {
  background: transparent;
  color: var(--w054b-highlight);
  border: 2px solid var(--w054b-highlight);
}

.w054b-btn-ghost {
  background: rgba(240, 248, 255, 0.08);
  color: var(--w054b-text);
  border: 1px solid rgba(240, 248, 255, 0.2);
}

.w054b-btn-block {
  width: 100%;
}

.w054b-menu-btn {
  background: transparent;
  border: none;
  color: var(--w054b-highlight);
  font-size: 2rem;
  cursor: pointer;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
}

/* ---------- Expandable nav menu ---------- */
.w054b-mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #181818;
  border-top: 1px solid rgba(250, 128, 114, 0.15);
}

.w054b-menu-open {
  max-height: 480px;
}

.w054b-mobile-menu ul {
  list-style: none;
  padding: 0.4rem 0.8rem;
}

.w054b-mobile-menu li a {
  display: block;
  padding: 1rem 0.8rem;
  color: var(--w054b-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.4rem;
}

.w054b-mobile-menu li a:hover,
.w054b-mobile-menu li a:active {
  color: var(--w054b-primary);
  background: rgba(250, 128, 114, 0.08);
}

/* ---------- Carousel ---------- */
.w054b-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--w054b-radius);
  margin: 1rem;
  box-shadow: var(--w054b-shadow);
}

.w054b-slide {
  display: none;
  position: relative;
  cursor: pointer;
}

.w054b-slide.w054b-active {
  display: block;
}

.w054b-slide img {
  width: 100%;
  height: auto;
  border-radius: var(--w054b-radius);
}

.w054b-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--w054b-highlight);
  font-size: 1.4rem;
  font-weight: 700;
}

.w054b-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.w054b-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  border: none;
}

.w054b-dot.w054b-active {
  background: var(--w054b-primary);
}

/* ---------- Headings & sections ---------- */
.w054b-section {
  margin: 1.6rem 0;
  padding: 1.2rem;
  background: var(--w054b-bg-alt);
  border-radius: var(--w054b-radius);
  border-left: 4px solid var(--w054b-primary);
}

.w054b-h1 {
  font-size: 2.2rem;
  line-height: 2.8rem;
  color: var(--w054b-highlight);
  margin-bottom: 0.6rem;
  font-weight: 800;
}

.w054b-h2 {
  font-size: 1.8rem;
  line-height: 2.4rem;
  color: var(--w054b-primary);
  margin: 1rem 0 0.6rem;
  font-weight: 700;
}

.w054b-h3 {
  font-size: 1.5rem;
  color: var(--w054b-pink);
  margin: 0.8rem 0 0.4rem;
  font-weight: 700;
}

.w054b-lead {
  color: var(--w054b-text-dim);
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
}

.w054b-text-link {
  color: var(--w054b-primary);
  font-weight: 700;
  text-decoration: underline;
}

.w054b-text-link:hover {
  color: var(--w054b-highlight);
}

/* ---------- Game grid ---------- */
.w054b-cat-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--w054b-highlight);
  margin: 1.4rem 0 0.8rem;
  padding: 0 1.2rem;
  text-transform: capitalize;
}

.w054b-cat-title i {
  color: var(--w054b-primary);
}

.w054b-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0 1.2rem;
}

.w054b-card {
  background: #232323;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.w054b-card:active {
  transform: scale(0.96);
}

.w054b-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}

.w054b-card-name {
  display: block;
  font-size: 1.15rem;
  color: var(--w054b-text);
  padding: 0.5rem 0.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Feature / highlight cards ---------- */
.w054b-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-top: 0.8rem;
}

.w054b-feature {
  background: #232323;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(250, 128, 114, 0.18);
}

.w054b-feature i {
  font-size: 2.2rem;
  color: var(--w054b-primary);
  margin-bottom: 0.4rem;
}

.w054b-feature strong {
  display: block;
  color: var(--w054b-highlight);
  font-size: 1.25rem;
  margin-bottom: 0.2rem;
}

.w054b-feature span {
  color: var(--w054b-text-dim);
  font-size: 1.2rem;
}

/* ---------- RTP / data table ---------- */
.w054b-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
  margin-top: 0.6rem;
}

.w054b-table th,
.w054b-table td {
  text-align: left;
  padding: 0.7rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.w054b-table th {
  color: var(--w054b-highlight);
  background: rgba(250, 128, 114, 0.12);
}

.w054b-table td.rtp {
  color: var(--w054b-gold);
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.w054b-quote {
  background: #232323;
  border-left: 3px solid var(--w054b-pink);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  font-size: 1.3rem;
  color: var(--w054b-text);
}

.w054b-quote cite {
  display: block;
  margin-top: 0.4rem;
  color: var(--w054b-primary);
  font-style: normal;
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---------- Payment pills ---------- */
.w054b-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.w054b-pill {
  background: #232323;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--w054b-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Winner ticker ---------- */
.w054b-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  font-size: 1.3rem;
}

.w054b-winner span:last-child {
  color: var(--w054b-gold);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.w054b-faq details {
  background: #232323;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.w054b-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--w054b-highlight);
  font-size: 1.35rem;
}

.w054b-faq p {
  margin-top: 0.5rem;
  color: var(--w054b-text-dim);
  font-size: 1.3rem;
}

/* ---------- CTA band ---------- */
.w054b-cta {
  background: linear-gradient(135deg, var(--w054b-primary), var(--w054b-pink));
  color: #1E1E1E;
  padding: 1.4rem;
  border-radius: var(--w054b-radius);
  text-align: center;
  margin: 1.4rem 0;
}

.w054b-cta h3 {
  color: #1E1E1E;
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.w054b-cta p {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.w054b-cta .w054b-btn {
  background: #1E1E1E;
  color: var(--w054b-highlight);
}

/* ---------- Footer ---------- */
.w054b-footer {
  background: #141414;
  padding: 1.6rem 1.2rem 2rem;
  border-top: 2px solid var(--w054b-primary);
  margin-top: 1.6rem;
}

.w054b-footer p {
  color: var(--w054b-text-dim);
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.w054b-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.6rem 0;
}

.w054b-footer-links a {
  color: var(--w054b-text);
  font-size: 1.2rem;
  text-decoration: underline;
}

.w054b-footer-links a:hover {
  color: var(--w054b-primary);
}

.w054b-promo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.w054b-copy {
  color: #777;
  font-size: 1.1rem;
  margin-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.8rem;
}

/* ---------- Bottom navigation (mobile only) ---------- */
.w054b-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: #141414;
  border-top: 2px solid var(--w054b-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.45);
}

.w054b-bottomnav-btn {
  flex: 1;
  min-width: 6rem;
  background: transparent;
  border: none;
  color: var(--w054b-text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.3rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.w054b-bottomnav-btn i,
.w054b-bottomnav-btn .material-icons,
.w054b-bottomnav-btn ion-icon {
  font-size: 2.2rem;
}

.w054b-bottomnav-btn:active {
  transform: scale(0.92);
}

.w054b-bottomnav-btn:hover {
  color: var(--w054b-primary);
}

.w054b-bottomnav-active,
.w054b-bottomnav-btn.w054b-bottomnav-active {
  color: var(--w054b-highlight);
}

.w054b-bottomnav-promo {
  color: var(--w054b-primary);
}

/* ---------- Desktop: hide bottom nav, widen wrapper ---------- */
@media (min-width: 769px) {
  .w054b-bottomnav {
    display: none;
  }
  .w054b-main {
    padding-bottom: 2rem;
  }
  .w054b-wrapper {
    max-width: 760px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- Small phones ---------- */
@media (max-width: 430px) {
  .w054b-h1 {
    font-size: 1.9rem;
    line-height: 2.4rem;
  }
  .w054b-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }
  .w054b-card-name {
    font-size: 1.05rem;
  }
  .w054b-brand-name {
    font-size: 1.4rem;
  }
  .w054b-btn {
    font-size: 1.2rem;
    padding: 0 1rem;
    min-height: 3.4rem;
  }
}

@media (max-width: 360px) {
  .w054b-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
