/* jiliee - Layout CSS | prefix: ui57- */
/* Colors: #FF1493 (hot pink accent) | #0A0A0A (deep black bg) | #E91E63 (pink) | #BBBBBB (gray text) | #1A0010 (dark pink-black) */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 1.4rem;
  background: #0A0A0A;
  color: #BBBBBB;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.ui57-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 5.6rem;
  background: linear-gradient(90deg, #1A0010 0%, #0A0A0A 100%);
  border-bottom: 2px solid #FF1493;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.4rem;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(255, 20, 147, 0.3);
}

.ui57-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
}

.ui57-logo img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.ui57-logo-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: #FF1493;
  letter-spacing: -0.3px;
}

.ui57-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ui57-btn {
  border: none;
  border-radius: 2rem;
  padding: 0.6rem 1.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s, opacity 0.15s;
}

.ui57-btn:active { transform: scale(0.96); opacity: 0.9; }

.ui57-btn-reg {
  background: linear-gradient(135deg, #FF1493, #E91E63);
  color: #fff;
  border: 1px solid rgba(255, 100, 170, 0.3);
}

.ui57-btn-login {
  background: transparent;
  color: #FF1493;
  border: 1.5px solid #FF1493;
}

.ui57-menu-btn {
  background: transparent;
  border: none;
  color: #FF1493;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
}

/* ===== MENU OVERLAY ===== */
#appc57-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9998;
}

/* ===== SIDE MENU ===== */
#appc57-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 82%;
  max-width: 320px;
  height: 100dvh;
  background: linear-gradient(180deg, #1A0010 0%, #0A0A0A 100%);
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease;
  border-left: 2px solid #FF1493;
}

#appc57-menu.open { right: 0; }

.ui57-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 1.6rem;
  border-bottom: 1px solid rgba(255, 20, 147, 0.3);
}

.ui57-menu-title {
  font-size: 2rem;
  font-weight: 800;
  color: #FF1493;
}

.ui57-menu-close {
  background: none;
  border: none;
  color: #BBBBBB;
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
}

.ui57-menu-section { padding: 1.2rem 1.6rem 0; }

.ui57-menu-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FF1493;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.8rem;
}

.ui57-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #BBBBBB;
  text-decoration: none;
  padding: 0.9rem 0;
  font-size: 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.15s;
}

.ui57-menu-link:hover { color: #FF1493; }

.ui57-menu-promo {
  padding: 1.8rem 1.6rem;
  text-align: center;
}

.ui57-menu-promo p {
  font-size: 1.2rem;
  color: #BBBBBB;
  margin-bottom: 1.2rem;
}

/* ===== WRAPPER & MAIN ===== */
.ui57-wrapper { padding-top: 5.6rem; }

.ui57-main { min-height: 100vh; }

@media (max-width: 768px) {
  .ui57-main { padding-bottom: 8rem; }
}

/* ===== SLIDER ===== */
.ui57-slider {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/8;
  background: #1A0010;
  cursor: pointer;
}

.ui57-slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s ease;
}

.ui57-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.ui57-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ui57-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(255, 20, 147, 0.5) 100%);
}

.ui57-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 20, 147, 0.45);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  border-radius: 0.4rem;
  z-index: 2;
}

.ui57-slider-nav.prev { left: 0.8rem; }
.ui57-slider-nav.next { right: 0.8rem; }

.ui57-slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
  z-index: 2;
}

.ui57-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ui57-dot.active {
  background: #FF1493;
  transform: scale(1.3);
}

/* ===== SECTIONS ===== */
.ui57-section {
  padding: 2.4rem 1.6rem;
  border-bottom: 1px solid rgba(255, 20, 147, 0.12);
}

.ui57-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.ui57-section-alt {
  background: rgba(26, 0, 16, 0.5);
}

/* ===== GAME GRID ===== */
.ui57-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}

.ui57-game-item {
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s;
}

.ui57-game-item:active { transform: scale(0.95); }

.ui57-game-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 0.8rem;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 20, 147, 0.2);
}

.ui57-game-name {
  font-size: 1rem;
  color: #BBBBBB;
  margin-top: 0.4rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== CTA BUTTON ===== */
.ui57-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #FF1493 0%, #E91E63 100%);
  color: #fff;
  border: none;
  border-radius: 3rem;
  padding: 1.2rem 2.4rem;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 16px rgba(255, 20, 147, 0.4);
}

.ui57-cta:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(255, 20, 147, 0.3);
}

/* ===== FAQ ===== */
.ui57-faq-item {
  border-bottom: 1px solid rgba(255, 20, 147, 0.15);
  overflow: hidden;
}

.ui57-faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  text-align: left;
  padding: 1.4rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ui57-faq-icon {
  font-size: 2rem;
  color: #FF1493;
  flex-shrink: 0;
  font-weight: 400;
}

.ui57-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.ui57-faq-answer-inner {
  padding: 0 0 1.4rem;
  font-size: 1.35rem;
  color: rgba(187, 187, 187, 0.8);
  line-height: 1.8;
}

/* ===== STATS STRIP ===== */
.ui57-stats {
  display: flex;
  justify-content: space-around;
  background: rgba(26, 0, 16, 0.8);
  padding: 1.4rem 1rem;
  flex-wrap: wrap;
  gap: 0.8rem;
  border-bottom: 1px solid rgba(255, 20, 147, 0.2);
}

.ui57-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: #FF1493;
  display: block;
}

.ui57-stat-label {
  font-size: 1rem;
  color: rgba(187, 187, 187, 0.6);
}

/* ===== PARTNERS ===== */
.ui57-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: center;
  padding: 1.6rem 0;
}

.ui57-partner-img {
  height: 3.2rem;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: brightness(1.15);
}

/* ===== FOOTER ===== */
.ui57-footer {
  background: #0A0A0A;
  padding: 2.4rem 1.6rem;
  border-top: 2px solid #FF1493;
}

.ui57-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  margin-bottom: 1.6rem;
}

.ui57-footer-link {
  color: #BBBBBB;
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.15s;
}

.ui57-footer-link:hover { color: #FF1493; }

.ui57-footer-copy {
  font-size: 1.1rem;
  color: rgba(187, 187, 187, 0.4);
  margin-top: 1.2rem;
}

/* ===== BOTTOM NAV ===== */
.ui57-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 6rem;
  background: #0A0A0A;
  border-top: 2px solid #FF1493;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(255, 20, 147, 0.2);
}

@media (min-width: 769px) {
  .ui57-bnav { display: none; }
}

.ui57-bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 6rem;
  min-height: 6rem;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(187, 187, 187, 0.5);
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
  padding: 0.4rem;
}

.ui57-bnav-item:active { transform: scale(0.92); }

.ui57-bnav-item.active { color: #FF1493; }

.ui57-bnav-item .ni {
  font-size: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ui57-bnav-item .nl {
  font-size: 1rem;
  font-weight: 600;
}

/* ===== H1 AREA ===== */
.ui57-h1-area {
  padding: 2rem 1.6rem 1.6rem;
  background: linear-gradient(180deg, rgba(255, 20, 147, 0.18) 0%, transparent 100%);
}

.ui57-h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.ui57-h1-sub {
  font-size: 1.4rem;
  color: #BBBBBB;
  line-height: 1.7;
}

/* ===== TABLE ===== */
.ui57-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.3rem;
}

.ui57-table th {
  text-align: left;
  padding: 1rem 0.8rem;
  color: #FF1493;
  border-bottom: 2px solid rgba(255, 20, 147, 0.3);
  font-size: 1.2rem;
}

.ui57-table td {
  padding: 0.9rem 0.8rem;
  color: #BBBBBB;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ui57-table tr:nth-child(even) td { background: rgba(255, 20, 147, 0.04); }
