/* ============================================================
 * 2jl link - design-e354.css
 * Mobile-first responsive stylesheet (max-width: 430px target).
 * All custom classes use the we354- prefix for isolation.
 * ============================================================ */

:root {
  --we354-primary: #0097A7;
  --we354-primary-dark: #007887;
  --we354-primary-light: #4DB8C4;
  --we354-bg: #1E1E1E;
  --we354-bg-soft: #262626;
  --we354-bg-card: #2A2A2A;
  --we354-text: #F5F7F8;
  --we354-text-muted: #B8C0C2;
  --we354-accent: #FFB300;
  --we354-accent-soft: #FFD54F;
  --we354-border: #353535;
  --we354-success: #2ECC71;
  --we354-danger: #E74C3C;
  --we354-radius: 12px;
  --we354-radius-lg: 18px;
  --we354-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --we354-header-h: 56px;
  --we354-bnav-h: 62px;
  --we354-maxw: 430px;
}

* { box-sizing: border-box; }

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

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

img { max-width: 100%; display: block; }
a { color: var(--we354-primary-light); text-decoration: none; }
a:hover { color: var(--we354-accent-soft); }

.we354-wrapper {
  width: 100%;
  max-width: var(--we354-maxw);
  margin: 0 auto;
  position: relative;
}

.we354-container {
  padding: 0 1.4rem;
  width: 100%;
}

/* ============ Header ============ */
.we354-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--we354-header-h);
  background: rgba(30, 30, 30, 0.95);
  border-bottom: 1px solid var(--we354-border);
  z-index: 1000;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.we354-header.we354-scrolled {
  background: rgba(20, 20, 20, 0.98);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.we354-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--we354-maxw);
  margin: 0 auto;
  padding: 0 1.2rem;
}
.we354-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--we354-text);
}
.we354-brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}
.we354-brand-name {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.we354-brand-name span { color: var(--we354-primary); }

.we354-head-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.we354-menu-btn {
  background: transparent;
  border: 1px solid var(--we354-border);
  color: var(--we354-text);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============ Buttons ============ */
.we354-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.4rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  min-height: 38px;
}
.we354-btn:active { transform: scale(0.96); }
.we354-btn-login {
  background: transparent;
  color: var(--we354-text);
  border: 1px solid var(--we354-primary);
}
.we354-btn-register {
  background: linear-gradient(135deg, var(--we354-primary), var(--we354-primary-dark));
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 151, 167, 0.35);
}
.we354-btn-cta {
  background: linear-gradient(135deg, var(--we354-accent), #FF8F00);
  color: #1E1E1E;
  box-shadow: 0 3px 12px rgba(255, 179, 0, 0.4);
}
.we354-btn-ghost {
  background: var(--we354-bg-card);
  color: var(--we354-text);
  border: 1px solid var(--we354-border);
}
.we354-link-promo {
  color: var(--we354-accent);
  font-weight: 700;
  cursor: pointer;
}
.we354-link-promo:hover { color: var(--we354-accent-soft); text-decoration: underline; }

/* ============ Mobile Menu Panel ============ */
.we354-mobile-menu {
  position: fixed;
  top: var(--we354-header-h);
  left: 0; right: 0;
  background: rgba(22, 22, 22, 0.99);
  border-bottom: 1px solid var(--we354-border);
  z-index: 9999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}
.we354-mobile-menu.we354-menu-open { max-height: 80vh; overflow-y: auto; }
.we354-mobile-menu .we354-container { padding: 1rem 1.4rem 1.4rem; }
.we354-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.6rem;
  border-bottom: 1px solid var(--we354-border);
  color: var(--we354-text);
  font-size: 1.4rem;
  font-weight: 600;
}
.we354-menu-link i, .we354-menu-link span.iconify {
  color: var(--we354-primary);
  font-size: 1.8rem;
  width: 24px;
  text-align: center;
}

/* ============ Main / Sections ============ */
main.we354-main {
  padding-top: calc(var(--we354-header-h) + 8px);
  padding-bottom: calc(var(--we354-bnav-h) + 20px);
}
.we354-section {
  padding: 1.8rem 0;
}
.we354-section-alt {
  background: var(--we354-bg-soft);
  border-top: 1px solid var(--we354-border);
  border-bottom: 1px solid var(--we354-border);
}
.we354-h1 {
  font-size: 2.2rem;
  line-height: 1.3;
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--we354-text);
}
.we354-h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: var(--we354-text);
  border-left: 4px solid var(--we354-primary);
  padding-left: 0.8rem;
}
.we354-h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: var(--we354-primary-light);
}
.we354-lead {
  color: var(--we354-text-muted);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.we354-p {
  color: var(--we354-text-muted);
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

/* ============ Carousel ============ */
.we354-carousel {
  position: relative;
  border-radius: var(--we354-radius-lg);
  overflow: hidden;
  box-shadow: var(--we354-shadow);
  margin-bottom: 1.4rem;
}
.we354-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  cursor: pointer;
}
.we354-slide.we354-active { opacity: 1; position: relative; }
.we354-slide img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.we354-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.78));
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}
.we354-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}
.we354-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--we354-border);
  cursor: pointer;
  transition: background 0.2s ease;
}
.we354-dot.we354-active { background: var(--we354-primary); }

/* ============ Game Grid ============ */
.we354-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.6rem 0 0.8rem;
}
.we354-cat-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--we354-text);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.we354-cat-title i { color: var(--we354-accent); }
.we354-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}
.we354-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--we354-bg-card);
  border: 1px solid var(--we354-border);
  border-radius: var(--we354-radius);
  padding: 0.6rem 0.4rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.we354-game:hover, .we354-game:active {
  transform: translateY(-2px);
  border-color: var(--we354-primary);
}
.we354-game img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.4rem;
}
.we354-game-name {
  font-size: 1.1rem;
  color: var(--we354-text-muted);
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Cards ============ */
.we354-card {
  background: var(--we354-bg-card);
  border: 1px solid var(--we354-border);
  border-radius: var(--we354-radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
}
.we354-card-promo {
  background: linear-gradient(135deg, #00363d, #00606b);
  border-color: var(--we354-primary);
}
.we354-card-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--we354-border);
}
.we354-card-row:last-child { border-bottom: none; }
.we354-card-row .we354-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0, 151, 167, 0.18);
  color: var(--we354-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

/* ============ RTP / Data table ============ */
.we354-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.25rem;
}
.we354-table th, .we354-table td {
  padding: 0.8rem 0.6rem;
  border-bottom: 1px solid var(--we354-border);
  text-align: left;
}
.we354-table th {
  color: var(--we354-primary-light);
  font-weight: 700;
}
.we354-table td { color: var(--we354-text-muted); }
.we354-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--we354-border);
  overflow: hidden;
}
.we354-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--we354-primary), var(--we354-accent));
}

/* ============ FAQ / Steps ============ */
.we354-faq-item {
  border-bottom: 1px solid var(--we354-border);
  padding: 0.9rem 0;
}
.we354-faq-q {
  font-weight: 700;
  color: var(--we354-text);
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
}
.we354-faq-a { color: var(--we354-text-muted); font-size: 1.25rem; }

.we354-steps { counter-reset: step; padding-left: 0; list-style: none; }
.we354-steps li {
  position: relative;
  padding: 0.5rem 0 0.5rem 3rem;
  color: var(--we354-text-muted);
  font-size: 1.3rem;
}
.we354-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0.3rem;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--we354-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Testimonials / Winners ============ */
.we354-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
.we354-testi {
  background: var(--we354-bg-card);
  border: 1px solid var(--we354-border);
  border-radius: var(--we354-radius);
  padding: 0.9rem;
}
.we354-testi p { font-size: 1.2rem; color: var(--we354-text-muted); margin: 0 0 0.5rem; }
.we354-testi .we354-name { font-weight: 700; color: var(--we354-primary-light); font-size: 1.2rem; }
.we354-winner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--we354-border);
}
.we354-winner:last-child { border-bottom: none; }
.we354-winner .we354-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--we354-primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.we354-winner .we354-amt { color: var(--we354-accent); font-weight: 700; }

/* ============ Payment / Badges ============ */
.we354-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.we354-badge {
  background: var(--we354-bg-card);
  border: 1px solid var(--we354-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  color: var(--we354-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.we354-badge i { color: var(--we354-primary); }

/* ============ Play Now CTA banner ============ */
.we354-cta-banner {
  background: linear-gradient(135deg, var(--we354-primary-dark), var(--we354-primary));
  border-radius: var(--we354-radius-lg);
  padding: 1.6rem;
  text-align: center;
  box-shadow: var(--we354-shadow);
  margin: 1.4rem 0;
}
.we354-cta-banner h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.7rem; }
.we354-cta-banner p { color: rgba(255,255,255,0.85); margin: 0 0 1rem; font-size: 1.3rem; }

/* ============ Footer ============ */
.we354-footer {
  background: #161616;
  border-top: 1px solid var(--we354-border);
  padding: 2rem 0 calc(var(--we354-bnav-h) + 20px);
}
.we354-footer h4 {
  color: var(--we354-text);
  font-size: 1.4rem;
  margin: 1rem 0 0.6rem;
}
.we354-footer p { color: var(--we354-text-muted); font-size: 1.25rem; }
.we354-foot-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0.6rem 0;
}
.we354-foot-links a {
  color: var(--we354-text-muted);
  font-size: 1.25rem;
}
.we354-foot-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.we354-foot-promo .we354-btn { font-size: 1.2rem; padding: 0.6rem 1.1rem; }
.we354-copy {
  border-top: 1px solid var(--we354-border);
  margin-top: 1.2rem;
  padding-top: 1rem;
  color: var(--we354-text-muted);
  font-size: 1.15rem;
  text-align: center;
}

/* ============ Bottom Nav ============ */
.we354-bnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--we354-bnav-h);
  background: #181818;
  border-top: 1px solid var(--we354-border);
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.we354-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--we354-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color 0.2s ease, transform 0.15s ease;
}
.we354-bnav-btn i,
.we354-bnav-btn .material-icons,
.we354-bnav-btn ion-icon {
  font-size: 22px;
}
.we354-bnav-btn ion-icon { font-size: 24px; }
.we354-bnav-btn:active { transform: scale(0.92); }
.we354-bnav-btn:hover { color: var(--we354-text); }
.we354-bnav-btn.we354-current,
.we354-bnav-btn.we354-active {
  color: var(--we354-primary);
}
.we354-bnav-btn.we354-promo { color: var(--we354-accent); }
.we354-bnav-btn.we354-promo ion-icon,
.we354-bnav-btn.we354-promo .material-icons,
.we354-bnav-btn.we354-promo i {
  filter: drop-shadow(0 0 6px rgba(255, 179, 0, 0.4));
}

/* ============ Desktop rules ============ */
@media (min-width: 769px) {
  .we354-bnav { display: none; }
  main.we354-main { padding-bottom: 20px; }
  .we354-footer { padding-bottom: 2rem; }
  .we354-wrapper { max-width: 760px; }
  .we354-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ============ Fine mobile tuning ============ */
@media (max-width: 430px) {
  .we354-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .we354-game img { width: 56px; height: 56px; }
  .we354-h1 { font-size: 2rem; }
  .we354-slide img { height: 170px; }
  .we354-brand-name { font-size: 1.5rem; }
  .we354-btn { padding: 0.55rem 1rem; font-size: 1.2rem; }
  .we354-head-actions { gap: 0.4rem; }
}

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