/*!
 * open 88 - style-6535.css
 * Mobile-first stylesheet for open-88.sbs (Vietnamese market)
 * Prefix: s653-
 * Palette: #FF4500 / #40E0D0 / #212F3D / #E0E0E0 / #004D40 / #00695C
 */

:root {
  --s653-primary: #FF4500;
  --s653-accent: #40E0D0;
  --s653-bg: #212F3D;
  --s653-bg-2: #004D40;
  --s653-bg-3: #00695C;
  --s653-text: #E0E0E0;
  --s653-text-muted: #a9b4bd;
  --s653-white: #ffffff;
  --s653-radius: 12px;
  --s653-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html {
  font-size: 62.5%; /* 1rem = 10px baseline for rem-based spacing */
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--s653-bg) 0%, var(--s653-bg-2) 100%);
  color: var(--s653-text);
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* Main container is mobile-first, capped at 430px per spec */
.s653-wrapper {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, var(--s653-bg) 0%, var(--s653-bg-3) 100%);
  overflow-x: hidden;
}

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

/* ---------- Header ---------- */
.s653-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(33, 47, 61, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--s653-primary);
  transition: padding .25s ease;
}

.s653-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  gap: .8rem;
}

.s653-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--s653-white);
  text-decoration: none;
  min-width: 0;
}

.s653-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.s653-brand-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .3px;
  white-space: nowrap;
}
.s653-brand-name b { color: var(--s653-primary); }

.s653-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.s653-menu-btn {
  background: transparent;
  border: 0;
  color: var(--s653-text);
  font-size: 2rem;
  cursor: pointer;
  padding: .2rem .4rem;
  line-height: 1;
}

.s653-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  min-height: 36px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.s653-btn:active { transform: scale(.96); }

.s653-btn-primary {
  background: linear-gradient(135deg, var(--s653-primary), #ff7a3d);
  color: var(--s653-white);
  box-shadow: 0 4px 12px rgba(255, 69, 0, .4);
}
.s653-btn-ghost {
  background: transparent;
  color: var(--s653-accent);
  border: 1.5px solid var(--s653-accent);
}
.s653-btn-accent {
  background: linear-gradient(135deg, var(--s653-accent), #1ad3c4);
  color: #06231f;
}

/* ---------- Expandable Nav Menu ---------- */
.s653-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: rgba(0, 77, 64, .98);
  border-top: 1px solid rgba(64, 224, 208, .25);
}
.s653-nav-open { max-height: 520px; }

.s653-nav-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: .8rem 1rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.s653-nav a {
  display: block;
  padding: .8rem 1rem;
  font-size: 1.3rem;
  color: var(--s653-text);
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  text-decoration: none;
  border-left: 3px solid var(--s653-primary);
}
.s653-nav a:active { background: rgba(255, 69, 0, .18); }

/* ---------- Main / Sections ---------- */
main.s653-main {
  padding-top: 6.2rem;
  padding-bottom: 8.4rem; /* clearance for fixed bottom nav */
}

.s653-section {
  padding: 1.6rem 0 0.4rem;
}
.s653-section-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.s653-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s653-white);
  margin: 0;
}
.s653-section-title span { color: var(--s653-primary); }

.s653-h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--s653-white);
  margin: 1rem 0 .6rem;
  line-height: 1.3;
}

.s653-lead {
  font-size: 1.35rem;
  color: var(--s653-text-muted);
  margin: 0 0 1.2rem;
}

.s653-text-link {
  color: var(--s653-accent);
  font-weight: 700;
  text-decoration: underline;
}
.s653-promo-link {
  color: var(--s653-primary);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Hero Carousel ---------- */
.s653-hero {
  position: relative;
  border-radius: var(--s653-radius);
  overflow: hidden;
  margin-bottom: 1.2rem;
  box-shadow: var(--s653-shadow);
}
.s653-hero-slide {
  display: none;
  cursor: pointer;
}
.s653-hero-slide.s653-active { display: block; }
.s653-hero-slide img {
  width: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.s653-hero-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.s653-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
}
.s653-hero-dot.s653-active { background: var(--s653-primary); }

/* ---------- Game Grid ---------- */
.s653-cat-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.4rem 0 .8rem;
}
.s653-cat-head i { color: var(--s653-accent); font-size: 1.6rem; }
.s653-cat-head h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--s653-white);
  font-weight: 800;
}
.s653-cat-tag {
  margin-left: auto;
  font-size: 1.1rem;
  color: var(--s653-primary);
  background: rgba(255,69,0,.12);
  padding: .2rem .6rem;
  border-radius: 6px;
  font-weight: 700;
}

.s653-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.s653-game {
  display: block;
  text-align: center;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  padding: .6rem .3rem;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid rgba(64,224,208,.12);
  transition: transform .15s ease, border-color .15s ease;
}
.s653-game:active {
  transform: scale(.95);
  border-color: var(--s653-primary);
}
.s653-game img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.s653-game-name {
  margin-top: .4rem;
  font-size: 1.1rem;
  color: var(--s653-text);
  line-height: 1.25;
  min-height: 2.6em;
  overflow: hidden;
}

/* ---------- Cards ---------- */
.s653-card {
  background: rgba(255,255,255,.05);
  border-radius: var(--s653-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(64,224,208,.15);
}
.s653-card h2 {
  margin: 0 0 .6rem;
  font-size: 1.6rem;
  color: var(--s653-white);
}
.s653-card h3 {
  margin: .8rem 0 .4rem;
  font-size: 1.35rem;
  color: var(--s653-accent);
}
.s653-card p {
  margin: 0 0 .8rem;
  font-size: 1.25rem;
  color: var(--s653-text-muted);
}

/* ---------- Feature list ---------- */
.s653-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .6rem;
}
.s653-feature-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: rgba(0,0,0,.18);
  padding: .8rem;
  border-radius: 8px;
  font-size: 1.25rem;
}
.s653-feature-list i {
  color: var(--s653-primary);
  font-size: 1.6rem;
  margin-top: .1rem;
}

/* ---------- RTP table ---------- */
.s653-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}
.s653-rtp-table th, .s653-rtp-table td {
  padding: .6rem .4rem;
  border-bottom: 1px solid rgba(64,224,208,.15);
  text-align: left;
}
.s653-rtp-table th { color: var(--s653-accent); }
.s653-rtp-table td:last-child { color: var(--s653-primary); font-weight: 700; }

/* ---------- Testimonials ---------- */
.s653-testi {
  background: rgba(0,0,0,.2);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: .8rem;
  border-left: 3px solid var(--s653-primary);
}
.s653-testi .s653-testi-name {
  font-weight: 800;
  color: var(--s653-accent);
  font-size: 1.3rem;
}
.s653-stars { color: #ffd84d; font-size: 1.2rem; }

/* ---------- Payment / winners ---------- */
.s653-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.s653-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(64,224,208,.12);
  color: var(--s653-text);
  padding: .5rem .9rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 600;
}
.s653-chip i { color: var(--s653-accent); }

.s653-winner {
  display: flex;
  justify-content: space-between;
  padding: .55rem .2rem;
  font-size: 1.2rem;
  border-bottom: 1px dashed rgba(255,255,255,.1);
}
.s653-winner b { color: var(--s653-primary); }

/* ---------- FAQ ---------- */
.s653-faq-item {
  border-bottom: 1px solid rgba(64,224,208,.15);
  padding: .8rem 0;
}
.s653-faq-item h3 {
  margin: 0 0 .4rem;
  font-size: 1.3rem;
  color: var(--s653-accent);
}
.s653-faq-item p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--s653-text-muted);
}

/* ---------- CTA band ---------- */
.s653-cta {
  background: linear-gradient(135deg, var(--s653-primary), #ff7a3d);
  border-radius: var(--s653-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
  color: var(--s653-white);
}
.s653-cta h2 {
  margin: 0 0 .6rem;
  font-size: 1.7rem;
  color: var(--s653-white);
}
.s653-cta p {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  color: rgba(255,255,255,.92);
}

/* ---------- Footer ---------- */
.s653-footer {
  background: rgba(0,0,0,.32);
  padding: 2rem 0 1.2rem;
  margin-top: 1.4rem;
  border-top: 2px solid var(--s653-primary);
}
.s653-footer-about {
  font-size: 1.2rem;
  color: var(--s653-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.s653-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.s653-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .4rem 1rem;
  margin-bottom: 1rem;
}
.s653-footer-links a {
  font-size: 1.15rem;
  color: var(--s653-text-muted);
  text-decoration: none;
}
.s653-footer-links a:hover { color: var(--s653-accent); }
.s653-copy {
  font-size: 1.1rem;
  color: var(--s653-text-muted);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: .8rem;
}

/* ---------- Bottom Nav ---------- */
.s653-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(33, 47, 61, .98);
  border-top: 2px solid var(--s653-primary);
  display: flex;
  justify-content: space-around;
  height: 60px;
}
.s653-bottomnav-inner {
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
}
.s653-bottombtn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .15rem;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--s653-text-muted);
  text-decoration: none;
  cursor: pointer;
  padding: .25rem;
  transition: color .15s ease, transform .15s ease;
}
.s653-bottombtn:active { transform: scale(.9); }
.s653-bottombtn i { font-size: 22px; }
.s653-bottombtn .material-icons { font-size: 22px; }
.s653-bottombtn span {
  font-size: 11px;
  font-weight: 600;
}
.s653-bottombtn-active {
  color: var(--s653-primary);
}

/* ---------- Desktop: hide bottom nav, widen layout ---------- */
@media (min-width: 769px) {
  .s653-bottomnav { display: none; }
  main.s653-main { padding-bottom: 2rem; }
  .s653-wrapper { max-width: 760px; }
  .s653-grid { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 768px) {
  main.s653-main { padding-bottom: 84px; }
}

@media (max-width: 360px) {
  .s653-grid { grid-template-columns: repeat(2, 1fr); }
  .s653-brand-name { font-size: 1.4rem; }
}
