/* ===========================================================
   playtime game - layout-d873.css
   Mobile-first gaming website stylesheet (CSS class prefix: sd87-)
   Color palette: #FFAA00 | #273746 | #F5DEB3 | #F5F5F5 | #FFA500
   All comments in English.
   =========================================================== */

:root {
  --sd87-primary: #FFAA00;
  --sd87-accent: #FFA500;
  --sd87-bg: #273746;
  --sd87-bg-dark: #1c2833;
  --sd87-bg-soft: #324559;
  --sd87-text: #F5F5F5;
  --sd87-text-soft: #F5DEB3;
  --sd87-muted: #c7ced6;
  --sd87-line: rgba(245, 222, 179, 0.16);
  --sd87-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  --sd87-radius: 14px;
  --sd87-radius-sm: 9px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 62.5%; /* 1rem = 10px */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background: var(--sd87-bg);
  color: var(--sd87-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sd87-text-soft); text-decoration: none; }

.sd87-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.sd87-wrapper { width: 100%; }

/* ===================== HEADER ===================== */
.sd87-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #1c2833 0%, #273746 100%);
  border-bottom: 2px solid var(--sd87-primary);
  box-shadow: var(--sd87-shadow);
}

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

.sd87-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--sd87-text);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.3px;
}

.sd87-logo img { width: 30px; height: 30px; border-radius: 6px; }
.sd87-logo span { color: var(--sd87-primary); }

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

.sd87-menu-btn {
  background: transparent;
  border: 1px solid var(--sd87-line);
  color: var(--sd87-text);
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

.sd87-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.35rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  min-height: 38px;
}

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

.sd87-btn-login {
  background: transparent;
  color: var(--sd87-text-soft);
  border: 1px solid var(--sd87-text-soft);
  padding: 0.6rem 1.1rem;
}

.sd87-btn-register {
  background: linear-gradient(90deg, var(--sd87-primary), var(--sd87-accent));
  color: #1c2833;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 170, 0, 0.35);
}

/* ===================== MOBILE MENU ===================== */
.sd87-mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 82%;
  max-width: 340px;
  height: 100vh;
  background: var(--sd87-bg-dark);
  z-index: 9999;
  padding: 7rem 1.4rem 2rem;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  border-right: 2px solid var(--sd87-primary);
}

.sd87-mobile-menu.sd87-open { transform: translateX(0); }

.sd87-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
}

.sd87-menu-backdrop.sd87-open { opacity: 1; visibility: visible; }

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

.sd87-menu-title {
  color: var(--sd87-primary);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.sd87-menu-list { list-style: none; }

.sd87-menu-list li { margin-bottom: 0.4rem; }

.sd87-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0.8rem;
  color: var(--sd87-text);
  border-radius: var(--sd87-radius-sm);
  font-size: 1.45rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.sd87-menu-list a:active,
.sd87-menu-list a:hover {
  background: var(--sd87-bg-soft);
  border-color: var(--sd87-line);
}

.sd87-menu-list i { color: var(--sd87-primary); width: 22px; text-align: center; }

/* ===================== MAIN ===================== */
.sd87-main { padding-top: 6.4rem; }

.sd87-section { padding: 2.2rem 0; }

.sd87-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.sd87-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--sd87-text-soft);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sd87-section-title i { color: var(--sd87-primary); }

.sd87-more {
  color: var(--sd87-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

.sd87-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--sd87-text);
  margin: 1.2rem 0;
  line-height: 1.3;
}

.sd87-h1 span, .sd87-h2 span { color: var(--sd87-primary); }

.sd87-h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--sd87-text);
  margin: 1.4rem 0 0.8rem;
}

.sd87-h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sd87-text-soft);
  margin: 1rem 0 0.5rem;
}

.sd87-lead {
  color: var(--sd87-muted);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* ===================== HERO CAROUSEL ===================== */
.sd87-carousel {
  position: relative;
  border-radius: var(--sd87-radius);
  overflow: hidden;
  box-shadow: var(--sd87-shadow);
  margin-bottom: 1.2rem;
}

.sd87-slides { display: flex; scroll-snap-type: x mandatory; overflow-x: auto; scroll-behavior: smooth; }
.sd87-slides::-webkit-scrollbar { display: none; }

.sd87-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  position: relative;
  cursor: pointer;
}

.sd87-slide img { width: 100%; height: 180px; object-fit: cover; }

.sd87-slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.9rem 1.2rem;
  background: linear-gradient(0deg, rgba(28,40,51,0.92) 0%, rgba(28,40,51,0) 100%);
  color: var(--sd87-text);
  font-weight: 700;
  font-size: 1.35rem;
}

.sd87-slide-cap b { color: var(--sd87-primary); }

.sd87-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0;
}

.sd87-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245, 222, 179, 0.35);
  border: none; cursor: pointer;
}

.sd87-dot.sd87-active { background: var(--sd87-primary); width: 22px; border-radius: 5px; }

/* ===================== CTA ===================== */
.sd87-cta {
  background: linear-gradient(135deg, #324559, #1c2833);
  border: 1px solid var(--sd87-line);
  border-radius: var(--sd87-radius);
  padding: 1.4rem;
  margin: 1.4rem 0;
  text-align: center;
}

.sd87-cta h3 { color: var(--sd87-primary); margin-bottom: 0.4rem; }

.sd87-cta p { color: var(--sd87-muted); font-size: 1.35rem; margin-bottom: 1rem; }

.sd87-cta-row { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

.sd87-btn-cta {
  background: linear-gradient(90deg, var(--sd87-primary), var(--sd87-accent));
  color: #1c2833; font-weight: 800;
  padding: 0.9rem 1.6rem;
}

.sd87-btn-outline {
  background: transparent;
  border: 1px solid var(--sd87-primary);
  color: var(--sd87-primary);
  padding: 0.9rem 1.6rem;
}

.sd87-link-text {
  color: var(--sd87-primary);
  font-weight: 700;
  border-bottom: 1px dashed var(--sd87-primary);
  cursor: pointer;
}

/* ===================== GAME GRID ===================== */
.sd87-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.sd87-card {
  background: var(--sd87-bg-soft);
  border: 1px solid var(--sd87-line);
  border-radius: var(--sd87-radius-sm);
  padding: 0.6rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
}

.sd87-card:active { transform: scale(0.95); }

.sd87-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 0.4rem;
}

.sd87-card-name {
  font-size: 1.15rem;
  color: var(--sd87-text);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sd87-cat-tag {
  display: inline-block;
  background: rgba(255, 170, 0, 0.18);
  color: var(--sd87-primary);
  font-size: 1.1rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===================== FEATURES / CARDS ===================== */
.sd87-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.sd87-feature {
  background: var(--sd87-bg-soft);
  border: 1px solid var(--sd87-line);
  border-radius: var(--sd87-radius-sm);
  padding: 1.1rem 1rem;
  text-align: center;
}

.sd87-feature i {
  font-size: 2.2rem;
  color: var(--sd87-primary);
  margin-bottom: 0.5rem;
}

.sd87-feature h4 { font-size: 1.3rem; color: var(--sd87-text); margin-bottom: 0.3rem; }
.sd87-feature p { font-size: 1.2rem; color: var(--sd87-muted); line-height: 1.35; }

/* ===================== STEPS ===================== */
.sd87-steps { list-style: none; counter-reset: step; }

.sd87-steps li {
  position: relative;
  padding: 0.7rem 0 0.7rem 3.4rem;
  counter-increment: step;
  color: var(--sd87-muted);
  font-size: 1.32rem;
  border-bottom: 1px dashed var(--sd87-line);
}

.sd87-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0.55rem;
  width: 2.4rem; height: 2.4rem;
  background: linear-gradient(135deg, var(--sd87-primary), var(--sd87-accent));
  color: #1c2833;
  font-weight: 800;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

/* ===================== RTP TABLE ===================== */
.sd87-rtp {
  background: var(--sd87-bg-soft);
  border: 1px solid var(--sd87-line);
  border-radius: var(--sd87-radius-sm);
  overflow: hidden;
}

.sd87-rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--sd87-line);
  font-size: 1.3rem;
}

.sd87-rtp-row:last-child { border-bottom: none; }

.sd87-rtp-name { color: var(--sd87-text); font-weight: 600; }
.sd87-rtp-bar {
  flex: 1;
  height: 7px;
  margin: 0 0.8rem;
  background: rgba(245, 222, 179, 0.15);
  border-radius: 4px;
  overflow: hidden;
}

.sd87-rtp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sd87-primary), var(--sd87-accent));
}

.sd87-rtp-value { color: var(--sd87-primary); font-weight: 800; }

/* ===================== FAQ ===================== */
.sd87-faq-item {
  background: var(--sd87-bg-soft);
  border: 1px solid var(--sd87-line);
  border-radius: var(--sd87-radius-sm);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.sd87-faq-q {
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--sd87-text-soft);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.32rem;
}

.sd87-faq-a {
  padding: 0 1rem 0.9rem;
  color: var(--sd87-muted);
  font-size: 1.28rem;
  display: none;
}

.sd87-faq-item.sd87-open .sd87-faq-a { display: block; }

/* ===================== TESTIMONIALS ===================== */
.sd87-testi {
  background: var(--sd87-bg-soft);
  border: 1px solid var(--sd87-line);
  border-radius: var(--sd87-radius-sm);
  padding: 1rem;
  margin-bottom: 0.7rem;
}

.sd87-testi-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }

.sd87-testi-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sd87-primary), var(--sd87-accent));
  color: #1c2833;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

.sd87-testi-name { font-weight: 700; color: var(--sd87-text); font-size: 1.28rem; }
.sd87-stars { color: var(--sd87-primary); font-size: 1.1rem; }
.sd87-testi p { color: var(--sd87-muted); font-size: 1.25rem; line-height: 1.4; }

/* ===================== PAYMENT / BADGES ===================== */
.sd87-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.sd87-badge {
  background: var(--sd87-bg-soft);
  border: 1px solid var(--sd87-line);
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-size: 1.2rem;
  color: var(--sd87-text);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.sd87-badge i { color: var(--sd87-primary); }

/* ===================== WINNERS ===================== */
.sd87-winner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--sd87-bg-soft);
  border: 1px solid var(--sd87-line);
  border-radius: var(--sd87-radius-sm);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.sd87-winner b { color: var(--sd87-primary); }

/* ===================== TEXT BLOCK ===================== */
.sd87-prose { color: var(--sd87-muted); font-size: 1.32rem; line-height: 1.6; }
.sd87-prose p { margin-bottom: 0.9rem; }
.sd87-prose a { color: var(--sd87-primary); font-weight: 700; }

.sd87-list { padding-left: 1.6rem; color: var(--sd87-muted); font-size: 1.3rem; line-height: 1.7; }

/* ===================== FOOTER ===================== */
.sd87-footer {
  background: var(--sd87-bg-dark);
  border-top: 2px solid var(--sd87-primary);
  padding: 2rem 0 9rem;
  margin-top: 2rem;
}

.sd87-footer-brand {
  color: var(--sd87-text-soft);
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 1.2rem;
}

.sd87-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.sd87-footer-promo .sd87-btn { padding: 0.6rem 1rem; font-size: 1.2rem; }

.sd87-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 1rem;
  margin-bottom: 1.2rem;
}

.sd87-footer-links a {
  color: var(--sd87-muted);
  font-size: 1.22rem;
}

.sd87-footer-links a:hover { color: var(--sd87-primary); }

.sd87-copy {
  text-align: center;
  color: var(--sd87-muted);
  font-size: 1.15rem;
  border-top: 1px solid var(--sd87-line);
  padding-top: 1rem;
}

/* ===================== MOBILE BOTTOM NAV ===================== */
.sd87-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1000;
  height: 62px;
  background: linear-gradient(180deg, #273746 0%, #1c2833 100%);
  border-top: 2px solid var(--sd87-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 0;
}

.sd87-bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--sd87-muted);
  font-size: 1.05rem;
  min-width: 60px;
  min-height: 60px;
  transition: color 0.15s ease;
  position: relative;
}

.sd87-bottom-nav a.sd87-active { color: var(--sd87-primary); }

.sd87-bottom-nav a.sd87-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px; height: 3px;
  background: var(--sd87-primary);
  border-radius: 0 0 4px 4px;
}

.sd87-bottom-nav a:active { transform: scale(0.92); }

.sd87-bottom-nav i,
.sd87-bottom-nav .material-icons,
.sd87-bottom-nav .ion-icon {
  font-size: 22px;
  line-height: 1;
}

.sd87-bottom-nav .material-icons { font-family: 'Material Icons'; }
.sd87-bottom-nav .ion-icon { font-size: 24px; }

.sd87-bn-badge {
  position: absolute;
  top: 6px; right: 22%;
  background: #e53e3e;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0 4px;
  border-radius: 8px;
  min-width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .sd87-main { padding-bottom: 80px; }
}

@media (min-width: 769px) {
  .sd87-bottom-nav { display: none; }
  .sd87-container { max-width: 760px; }
  .sd87-header-inner { max-width: 760px; }
  .sd87-grid { grid-template-columns: repeat(6, 1fr); }
}

/* Utility */
.sd87-text-center { text-align: center; }
.sd87-mt-1 { margin-top: 0.6rem; }
.sd87-mt-2 { margin-top: 1.2rem; }
.sd87-hidden { display: none; }
