/* ============================================================
 * okgames-app-apk.css
 * Shared mobile-first stylesheet for okgames app apk.
 * Palette: #1E1E1E (bg) | #FFB347 | #FFA500 | #DAA520
 * All classes use the "s835-" prefix.
 * Root font-size = 62.5% so 1rem == 10px.
 * ========================================================== */

:root {
  --s835-bg: #1E1E1E;
  --s835-bg-soft: #262626;
  --s835-bg-card: #2c2620;
  --s835-primary: #FFB347;
  --s835-accent: #FFA500;
  --s835-gold: #DAA520;
  --s835-text: #FFF6E6;
  --s835-text-muted: #C9B98E;
  --s835-border: #3a3328;
  --s835-radius: 1.2rem;
  --s835-shadow: 0 0.4rem 1.6rem rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 0%, #2a2118 0%, var(--s835-bg) 60%);
  color: var(--s835-text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

/* ---------- Layout ---------- */
.s835-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main.s835-main {
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.s835-section {
  margin: 2.4rem 0;
}

.s835-section-title {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--s835-primary);
  margin: 0 0 1.2rem;
  padding-left: 0.8rem;
  border-left: 0.4rem solid var(--s835-accent);
  line-height: 2.2rem;
}

.s835-h1 {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--s835-text);
  margin: 1.6rem 0 1rem;
  line-height: 2.8rem;
}

.s835-p {
  font-size: 1.45rem;
  line-height: 2.4rem;
  color: var(--s835-text);
  margin: 0 0 1rem;
}

.s835-muted { color: var(--s835-text-muted); }

/* ---------- Header ---------- */
.s835-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #161616 0%, #1E1E1E 100%);
  border-bottom: 0.2rem solid var(--s835-gold);
  box-shadow: var(--s835-shadow);
}

.s835-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  gap: 0.8rem;
}

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

.s835-brand img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
  flex-shrink: 0;
}

.s835-brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--s835-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.s835-menu-btn {
  background: transparent;
  border: 0.1rem solid var(--s835-border);
  color: var(--s835-primary);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 0.8rem;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.s835-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 4rem;
  padding: 0 1.4rem;
  border-radius: 1rem;
  font-weight: 800;
  font-size: 1.4rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.s835-btn:active { transform: scale(0.96); }

.s835-btn-primary {
  background: linear-gradient(135deg, var(--s835-accent), var(--s835-gold));
  color: #1E1E1E;
  box-shadow: 0 0.4rem 1rem rgba(255, 165, 0, 0.35);
}

.s835-btn-outline {
  background: transparent;
  color: var(--s835-primary);
  border: 0.15rem solid var(--s835-primary);
}

.s835-btn-block {
  width: 100%;
  margin: 0.6rem 0;
}

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

/* ---------- Mobile slide-down menu ---------- */
.s835-mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: var(--s835-bg-soft);
  border-top: 0.1rem solid var(--s835-border);
  transition: max-height 0.3s ease;
}

.s835-mobile-menu.s835-menu-open {
  max-height: 520px;
}

.s835-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1.2rem;
}

.s835-mobile-menu li {
  border-bottom: 0.1rem solid var(--s835-border);
}

.s835-mobile-menu li:last-child { border-bottom: 0; }

.s835-mobile-menu a {
  display: block;
  padding: 1.2rem 0.4rem;
  color: var(--s835-text);
  font-weight: 600;
  font-size: 1.4rem;
}

.s835-mobile-menu a:hover { color: var(--s835-primary); }

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

.s835-carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.s835-carousel-slide {
  min-width: 100%;
  position: relative;
}

.s835-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.s835-carousel-caption {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  background: rgba(0, 0, 0, 0.55);
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  color: var(--s835-primary);
  font-weight: 800;
  font-size: 1.4rem;
}

/* ---------- Cards & grids ---------- */
.s835-card {
  background: var(--s835-bg-card);
  border: 0.1rem solid var(--s835-border);
  border-radius: var(--s835-radius);
  padding: 1.4rem;
  box-shadow: var(--s835-shadow);
  margin: 1rem 0;
}

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

.s835-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.s835-game-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--s835-bg-soft);
  border-radius: 0.8rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.s835-game-tile:hover, .s835-game-tile:active {
  transform: translateY(-0.2rem);
  box-shadow: 0 0.3rem 0.9rem rgba(255, 165, 0, 0.35);
}

.s835-game-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.6rem;
}

.s835-game-name {
  font-size: 1.15rem;
  color: var(--s835-text);
  margin-top: 0.4rem;
  line-height: 1.4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ---------- Feature / list helpers ---------- */
.s835-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.s835-list li {
  padding: 0.6rem 0;
  border-bottom: 0.1rem dashed var(--s835-border);
  font-size: 1.35rem;
  line-height: 2rem;
}

.s835-list li:last-child { border-bottom: 0; }

.s835-badge {
  display: inline-block;
  background: var(--s835-gold);
  color: #1E1E1E;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  margin-right: 0.4rem;
}

.s835-pill {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 179, 71, 0.15);
  color: var(--s835-primary);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.2rem;
}

/* ---------- Payment / winners ---------- */
.s835-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.s835-pay-chip {
  background: var(--s835-bg-soft);
  border: 0.1rem solid var(--s835-border);
  color: var(--s835-text);
  padding: 0.6rem 1rem;
  border-radius: 0.8rem;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.s835-winner {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 0.1rem dashed var(--s835-border);
  font-size: 1.3rem;
}

.s835-winner .s835-winner-amount { color: var(--s835-gold); font-weight: 800; }

/* ---------- Testimonials ---------- */
.s835-quote {
  background: var(--s835-bg-card);
  border-left: 0.4rem solid var(--s835-accent);
  padding: 1rem 1.2rem;
  border-radius: 0.6rem;
  margin: 0.6rem 0;
}

.s835-quote p { margin: 0 0 0.4rem; font-size: 1.3rem; line-height: 1.9rem; }

.s835-quote cite { color: var(--s835-gold); font-style: normal; font-weight: 700; font-size: 1.2rem; }

/* ---------- Footer ---------- */
.s835-footer {
  background: #161616;
  border-top: 0.2rem solid var(--s835-gold);
  padding: 2rem 1.2rem 8rem;
  color: var(--s835-text-muted);
}

.s835-footer-inner { max-width: 430px; margin: 0 auto; }

.s835-footer h3 { color: var(--s835-primary); font-size: 1.5rem; margin: 1.4rem 0 0.6rem; }

.s835-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.6rem 0 1.2rem;
}

.s835-footer-links a {
  background: var(--s835-bg-soft);
  color: var(--s835-text);
  border: 0.1rem solid var(--s835-border);
  padding: 0.5rem 0.9rem;
  border-radius: 0.6rem;
  font-size: 1.2rem;
}

.s835-footer-promos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}

.s835-footer-promos .s835-btn { width: 100%; font-size: 1.2rem; min-height: 3.6rem; }

.s835-copyright {
  text-align: center;
  font-size: 1.15rem;
  color: var(--s835-text-muted);
  padding-top: 1rem;
  border-top: 0.1rem solid var(--s835-border);
}

/* ---------- Bottom navigation ---------- */
.s835-bottomnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 6rem;
  background: linear-gradient(180deg, #1E1E1E 0%, #111111 100%);
  border-top: 0.2rem solid var(--s835-gold);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -0.3rem 1rem rgba(0, 0, 0, 0.5);
}

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

.s835-bottomnav-btn .material-icons,
.s835-bottomnav-btn .fas,
.s835-bottomnav-btn .far,
.s835-bottomnav-btn ion-icon {
  font-size: 2.2rem;
}

.s835-bottomnav-btn ion-icon { display: block; }

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

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

.s835-bottomnav-active {
  color: var(--s835-accent);
}

.s835-bottomnav-badge {
  position: absolute;
  top: 0.6rem;
  right: 1.4rem;
  background: #e23b3b;
  color: #fff;
  font-size: 0.9rem;
  border-radius: 0.8rem;
  padding: 0 0.4rem;
  min-width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  text-align: center;
}

.s835-bottomnav-btn { position: relative; }

/* ---------- CTA banner ---------- */
.s835-cta {
  background: linear-gradient(135deg, rgba(255,165,0,0.18), rgba(218,165,32,0.18));
  border: 0.15rem solid var(--s835-gold);
  border-radius: var(--s835-radius);
  padding: 1.4rem;
  text-align: center;
  margin: 1.4rem 0;
}

.s835-cta h2 { color: var(--s835-primary); font-size: 1.8rem; margin: 0 0 0.6rem; }

.s835-cta p { font-size: 1.3rem; margin: 0 0 1rem; line-height: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 430px) {
  html { font-size: 58%; }
  .s835-grid-4 { grid-template-columns: repeat(3, 1fr); }
  .s835-brand-name { font-size: 1.35rem; }
  main.s835-main { padding-bottom: 8rem; }
}

@media (min-width: 769px) {
  .s835-bottomnav { display: none; }
  main.s835-main { padding-bottom: 4rem; }
  .s835-footer { padding-bottom: 2rem; }
}
