/* ============================================================
 * playtime app - design.css
 * All custom classes use the "s718-" prefix.
 * Palette: #1A1A1A | #EE82EE | #E6E6FA | #4B0082
 * ============================================================ */

:root {
  --s718-bg: #1A1A1A;
  --s718-primary: #EE82EE;
  --s718-text: #E6E6FA;
  --s718-accent: #4B0082;
  --s718-dark-2: #141414;
  --s718-card: #242124;
  --s718-border: rgba(238, 130, 238, 0.22);
  --s718-gradient: linear-gradient(135deg, #4B0082 0%, #EE82EE 100%);
  --s718-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.45);
  --s718-radius: 1rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  background: var(--s718-bg);
  color: var(--s718-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.s718-wrapper { padding: 1rem 0; }

.s718-grid {
  display: grid;
  gap: 0.8rem;
}

/* =================== Header =================== */
.s718-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s718-border);
}

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

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

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

.s718-brand-name {
  font-weight: 700;
  color: var(--s718-text);
  font-size: 1.5rem;
  white-space: nowrap;
}

.s718-brand-name b { color: var(--s718-primary); }

.s718-header-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

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

/* =================== Buttons =================== */
.s718-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.25rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  min-height: 3.6rem;
  text-decoration: none;
}

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

.s718-btn-primary {
  background: var(--s718-gradient);
  color: #fff;
  box-shadow: 0 0.3rem 0.8rem rgba(238, 130, 238, 0.35);
}

.s718-btn-outline {
  background: transparent;
  color: var(--s718-primary);
  border: 1px solid var(--s718-primary);
}

.s718-btn-block { display: flex; width: 100%; }

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

/* =================== Mobile menu =================== */
.s718-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--s718-dark-2);
  z-index: 9999;
  padding: 6rem 1.4rem 2rem;
  transition: right 0.28s ease;
  border-left: 1px solid var(--s718-border);
  overflow-y: auto;
}

.s718-mobile-menu.s718-menu-open { right: 0; }

.s718-mobile-menu h3 {
  color: var(--s718-primary);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.2rem 0 0.5rem;
}

.s718-mobile-menu a {
  display: block;
  padding: 0.9rem 0.6rem;
  color: var(--s718-text);
  border-bottom: 1px solid rgba(238, 130, 238, 0.12);
  font-size: 1.35rem;
}

.s718-mobile-menu a:active { background: rgba(238, 130, 238, 0.08); }

.s718-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: var(--s718-text);
  font-size: 2rem;
  cursor: pointer;
}

.s718-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  display: none;
}

.s718-overlay.s718-menu-open { display: block; }

/* =================== Main spacing =================== */
.s718-main {
  padding-top: 6rem;
  padding-bottom: 1rem;
}

@media (max-width: 768px) {
  .s718-main { padding-bottom: 8rem; }
}

/* =================== Hero carousel =================== */
.s718-hero {
  position: relative;
  border-radius: var(--s718-radius);
  overflow: hidden;
  margin: 1rem 0;
  box-shadow: var(--s718-shadow);
}

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

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

.s718-slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.s718-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 1.3rem;
}

.s718-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
}

.s718-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(230, 230, 250, 0.4);
}

/* =================== Sections =================== */
.s718-section {
  margin: 1.6rem 0;
}

.s718-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--s718-text);
  margin: 0 0 1rem;
  padding-left: 0.8rem;
  border-left: 4px solid var(--s718-primary);
}

.s718-section-title b { color: var(--s718-primary); }

.s718-card {
  background: var(--s718-card);
  border: 1px solid var(--s718-border);
  border-radius: var(--s718-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
}

.s718-card h3 {
  margin: 0 0 0.5rem;
  color: var(--s718-primary);
  font-size: 1.4rem;
}

.s718-card p { margin: 0 0 0.6rem; font-size: 1.3rem; }

/* =================== Game grid =================== */
.s718-cat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.4rem 0 0.8rem;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--s718-primary);
}

.s718-cat-head i { font-size: 1.7rem; }

.s718-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.s718-game-item {
  background: var(--s718-card);
  border-radius: 0.8rem;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.s718-game-item:active {
  transform: scale(0.96);
  border-color: var(--s718-primary);
}

.s718-game-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.s718-game-name {
  font-size: 1.05rem;
  padding: 0.35rem 0.2rem 0.5rem;
  color: var(--s718-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =================== Features / lists =================== */
.s718-feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.s718-feature {
  background: var(--s718-card);
  border-radius: 0.8rem;
  padding: 1rem;
  text-align: center;
  border: 1px solid var(--s718-border);
}

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

.s718-feature h4 {
  margin: 0.3rem 0;
  font-size: 1.25rem;
  color: var(--s718-text);
}

.s718-feature p { margin: 0; font-size: 1.15rem; color: rgba(230,230,250,0.75); }

/* =================== Testimonials =================== */
.s718-testimonial {
  background: var(--s718-card);
  border-left: 3px solid var(--s718-primary);
  border-radius: 0.6rem;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}

.s718-testimonial .s718-stars { color: #FFD700; font-size: 1.1rem; }

.s718-testimonial p { margin: 0.3rem 0; font-size: 1.25rem; }

.s718-testimonial cite { color: var(--s718-primary); font-style: normal; font-weight: 700; }

/* =================== Winners =================== */
.s718-winner-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid rgba(238,130,238,0.1);
  font-size: 1.2rem;
}

.s718-winner-row span:last-child { color: #FFD700; font-weight: 700; }

/* =================== Payment / download =================== */
.s718-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.s718-pay-chip {
  background: var(--s718-dark-2);
  border: 1px solid var(--s718-border);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.s718-download-cta {
  background: var(--s718-gradient);
  border-radius: var(--s718-radius);
  padding: 1.4rem;
  text-align: center;
  color: #fff;
  margin: 1.2rem 0;
}

.s718-download-cta h3 { margin: 0 0 0.4rem; font-size: 1.6rem; }

/* =================== Footer =================== */
.s718-footer {
  background: var(--s718-dark-2);
  border-top: 1px solid var(--s718-border);
  padding: 1.6rem 1.2rem 2rem;
  margin-top: 1.5rem;
}

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

.s718-footer h4 {
  color: var(--s718-primary);
  margin: 1rem 0 0.5rem;
  font-size: 1.3rem;
}

.s718-footer p { font-size: 1.2rem; color: rgba(230,230,250,0.75); }

.s718-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

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

.s718-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.s718-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(230,230,250,0.55);
  margin-top: 1rem;
}

/* =================== Bottom nav =================== */
.s718-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: rgba(20, 20, 20, 0.98);
  border-top: 1px solid var(--s718-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0;
}

.s718-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s718-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  transition: color 0.18s ease;
}

.s718-bnav-btn .material-icons,
.s718-bnav-btn i {
  font-size: 22px;
}

.s718-bnav-btn:active { transform: scale(0.92); }

.s718-bnav-btn.s718-bnav-active {
  color: var(--s718-primary);
}

.s718-bnav-btn.s718-bnav-active::before {
  content: "";
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--s718-gradient);
}

.s718-bnav-promo {
  background: var(--s718-gradient);
  color: #fff;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  margin-top: -16px;
  box-shadow: 0 0 0.8rem rgba(238,130,238,0.55);
}

.s718-bnav-promo i { font-size: 24px; }

@media (min-width: 769px) {
  .s718-bottom-nav { display: none; }
}

/* =================== Helpers =================== */
.s718-text-center { text-align: center; }
.s718-mt-1 { margin-top: 0.6rem; }
.s718-hidden { display: none; }
