/* ==========================================================================
   Playtime Game - Core Stylesheet
   Prefix: v515- (all custom classes)
   Mobile-first HTML5 casino layout (max-width: 430px)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --v515-primary: #228B22;       /* casino green */
  --v515-primary-dark: #176417;
  --v515-accent: #A0522D;        /* saddle brown */
  --v515-gold: #DEB887;          /* burlywood gold */
  --v515-gold-soft: #F5DEB3;     /* wheat */
  --v515-bg: #0C0C0C;            /* near-black background */
  --v515-bg-alt: #141414;
  --v515-bg-card: #1c1c1c;
  --v515-text: #E0E0E0;
  --v515-text-muted: #9a9a9a;
  --v515-border: rgba(222,184,135,0.18);
  --v515-success: #28a745;
  --v515-danger: #c0392b;
  --v515-shadow: 0 6px 24px rgba(0,0,0,0.45);
  --v515-radius: 12px;
  --v515-radius-sm: 8px;
  --v515-radius-lg: 18px;
  --v515-header-h: 60px;
  --v515-bottomnav-h: 62px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  background: var(--v515-bg);
  color: var(--v515-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v515-gold); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--v515-gold-soft); }
ul, ol { list-style: none; }

/* ---------- Layout Containers ---------- */
.v515-wrapper {
  max-width: 430px;
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(34,139,34,0.15), transparent 60%),
    var(--v515-bg);
}
.v515-container {
  width: 100%;
  padding: 0 14px;
}
main.v515-main { padding-bottom: 84px; }

/* ---------- Header ---------- */
.v515-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v515-header-h);
  background: linear-gradient(180deg, rgba(12,12,12,0.98), rgba(20,20,20,0.95));
  border-bottom: 1px solid var(--v515-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.v515-header-inner {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.v515-brand {
  display: flex; align-items: center; gap: 8px;
  color: var(--v515-text);
}
.v515-brand img { width: 30px; height: 30px; border-radius: 6px; }
.v515-brand-name {
  font-size: 1.65rem; font-weight: 800; letter-spacing: 0.3px;
  background: linear-gradient(90deg, var(--v515-gold), var(--v515-gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v515-brand-name span { color: var(--v515-primary); -webkit-text-fill-color: var(--v515-primary); }

.v515-header-actions { display: flex; align-items: center; gap: 6px; }
.v515-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px;
  border: none; border-radius: 20px;
  font-size: 1.35rem; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.4px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.v515-btn:active { transform: scale(0.95); }
.v515-btn-login {
  background: transparent; color: var(--v515-text);
  border: 1px solid var(--v515-border);
}
.v515-btn-register {
  background: linear-gradient(90deg, var(--v515-primary), #2fbf2f);
  color: #fff;
  box-shadow: 0 4px 14px rgba(34,139,34,0.45);
}
.v515-btn-gold {
  background: linear-gradient(90deg, var(--v515-gold), var(--v515-gold-soft));
  color: #2a1a05;
}
.v515-menu-toggle {
  background: transparent; border: none; color: var(--v515-text);
  font-size: 2.2rem; cursor: pointer; padding: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Mobile Menu Drawer ---------- */
.v515-mobile-menu {
  position: fixed;
  top: 0; right: -100%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: var(--v515-bg-alt);
  border-left: 1px solid var(--v515-border);
  z-index: 9999;
  padding: 80px 18px 30px;
  transition: right .28s ease;
  overflow-y: auto;
}
.v515-mobile-menu.open { right: 0; }
.v515-mobile-menu h4 {
  font-size: 1.3rem; color: var(--v515-text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin: 18px 0 8px;
}
.v515-mobile-menu a {
  display: block; padding: 11px 12px;
  border-radius: var(--v515-radius-sm);
  font-size: 1.45rem; color: var(--v515-text);
  border: 1px solid transparent;
}
.v515-mobile-menu a:hover, .v515-mobile-menu a:active {
  background: rgba(34,139,34,0.14); border-color: var(--v515-border);
}
.v515-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.v515-overlay.open { opacity: 1; pointer-events: auto; }
.v515-menu-close {
  position: absolute; top: 16px; right: 16px;
  background: transparent; border: none; color: var(--v515-text);
  font-size: 2rem; cursor: pointer;
}

/* ---------- Hero / Carousel ---------- */
.v515-hero { padding-top: calc(var(--v515-header-h) + 12px); }
.v515-carousel {
  position: relative;
  border-radius: var(--v515-radius-lg);
  overflow: hidden;
  box-shadow: var(--v515-shadow);
  margin: 0 0 16px;
}
.v515-carousel-track {
  display: flex;
  transition: transform .45s ease;
}
.v515-carousel-slide {
  min-width: 100%;
  position: relative;
}
.v515-carousel-slide img {
  width: 100%; height: 200px; object-fit: cover;
}
.v515-carousel-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  color: #fff;
}
.v515-carousel-cap h2 {
  font-size: 1.7rem; font-weight: 800; margin-bottom: 4px;
}
.v515-carousel-cap p { font-size: 1.25rem; color: var(--v515-gold-soft); }
.v515-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.v515-carousel-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.v515-carousel-dots span.active { background: var(--v515-primary); width: 18px; border-radius: 4px; }

/* ---------- Section ---------- */
.v515-section { padding: 18px 0; }
.v515-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.v515-section-title {
  font-size: 1.75rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.v515-section-title i, .v515-section-title span.material-symbols-outlined {
  color: var(--v515-primary);
}
.v515-section-link { font-size: 1.25rem; color: var(--v515-gold); font-weight: 600; }

/* ---------- Game Grid ---------- */
.v515-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v515-game-card {
  background: var(--v515-bg-card);
  border: 1px solid var(--v515-border);
  border-radius: var(--v515-radius);
  overflow: hidden;
  text-align: center;
  transition: transform .18s ease, border-color .2s ease;
  cursor: pointer;
}
.v515-game-card:hover, .v515-game-card:active {
  transform: translateY(-3px);
  border-color: var(--v515-primary);
}
.v515-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: #000;
}
.v515-game-card-name {
  font-size: 1.2rem;
  padding: 6px 4px;
  color: var(--v515-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Category Pill Nav ---------- */
.v515-cat-pills {
  display: flex; gap: 8px; overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}
.v515-cat-pills::-webkit-scrollbar { display: none; }
.v515-cat-pill {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 16px;
  background: var(--v515-bg-card);
  border: 1px solid var(--v515-border);
  font-size: 1.25rem; color: var(--v515-text-muted);
  font-weight: 600;
}
.v515-cat-pill.active {
  background: var(--v515-primary);
  color: #fff; border-color: var(--v515-primary);
}

/* ---------- Cards / Content Blocks ---------- */
.v515-card {
  background: var(--v515-bg-card);
  border: 1px solid var(--v515-border);
  border-radius: var(--v515-radius);
  padding: 14px;
  margin-bottom: 12px;
}
.v515-card h3 {
  font-size: 1.55rem; color: var(--v515-gold);
  margin-bottom: 8px; font-weight: 700;
}
.v515-card p {
  font-size: 1.35rem; color: var(--v515-text); margin-bottom: 8px;
}
.v515-card ul li {
  padding: 6px 0 6px 22px; position: relative;
  font-size: 1.32rem;
}
.v515-card ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free"; font-weight: 900;
  position: absolute; left: 0; color: var(--v515-primary);
  font-size: 1.1rem;
}

/* ---------- Promo CTA ---------- */
.v515-cta {
  background: linear-gradient(135deg, rgba(34,139,34,0.25), rgba(160,82,45,0.18));
  border: 1px solid var(--v515-primary);
  border-radius: var(--v515-radius-lg);
  padding: 18px;
  text-align: center;
  margin: 16px 0;
}
.v515-cta h3 { font-size: 1.85rem; color: #fff; margin-bottom: 6px; }
.v515-cta p { font-size: 1.3rem; color: var(--v515-gold-soft); margin-bottom: 12px; }
.v515-cta .v515-btn { padding: 12px 26px; font-size: 1.45rem; }

/* ---------- RTP / Data Strip ---------- */
.v515-rtp-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.v515-rtp-item {
  background: var(--v515-bg-card);
  border: 1px solid var(--v515-border);
  border-radius: var(--v515-radius-sm);
  padding: 10px;
  text-align: center;
}
.v515-rtp-num {
  display: block; font-size: 2rem; font-weight: 800; color: var(--v515-primary);
}
.v515-rtp-label { font-size: 1.15rem; color: var(--v515-text-muted); }

/* ---------- Testimonials ---------- */
.v515-testi {
  background: var(--v515-bg-card);
  border-left: 3px solid var(--v515-primary);
  border-radius: var(--v515-radius-sm);
  padding: 12px;
  margin-bottom: 10px;
}
.v515-testi p { font-size: 1.3rem; font-style: italic; margin-bottom: 6px; }
.v515-testi .v515-testi-author { font-size: 1.2rem; color: var(--v515-gold); font-weight: 700; }

/* ---------- Payment Methods ---------- */
.v515-pay-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.v515-pay-chip {
  flex: 1 1 30%;
  background: var(--v515-bg-card);
  border: 1px solid var(--v515-border);
  border-radius: var(--v515-radius-sm);
  padding: 10px;
  text-align: center;
  font-size: 1.2rem; font-weight: 600;
}
.v515-pay-chip i { display: block; font-size: 2rem; color: var(--v515-gold); margin-bottom: 4px; }

/* ---------- Winners ---------- */
.v515-winner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px;
  background: var(--v515-bg-card);
  border-radius: var(--v515-radius-sm);
  margin-bottom: 6px;
  border: 1px solid var(--v515-border);
}
.v515-winner .v515-winner-name { font-size: 1.3rem; font-weight: 700; }
.v515-winner .v515-winner-game { font-size: 1.15rem; color: var(--v515-text-muted); }
.v515-winner .v515-winner-amount { color: var(--v515-primary); font-weight: 800; font-size: 1.4rem; }

/* ---------- FAQ ---------- */
.v515-faq { margin-bottom: 8px; }
.v515-faq summary {
  cursor: pointer;
  padding: 12px;
  background: var(--v515-bg-card);
  border: 1px solid var(--v515-border);
  border-radius: var(--v515-radius-sm);
  font-size: 1.35rem; font-weight: 700;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.v515-faq summary::-webkit-details-marker { display: none; }
.v515-faq summary::after { content: "+"; color: var(--v515-primary); font-size: 1.8rem; }
.v515-faq[open] summary::after { content: "-"; }
.v515-faq p { padding: 10px 12px; font-size: 1.28rem; color: var(--v515-text); }

/* ---------- App Download CTA ---------- */
.v515-app-cta {
  background: linear-gradient(135deg, #176417, #0C0C0C);
  border: 1px solid var(--v515-primary);
  border-radius: var(--v515-radius-lg);
  padding: 16px;
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0;
}
.v515-app-cta .v515-app-icon {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--v515-gold); display: flex;
  align-items: center; justify-content: center;
  color: #0C0C0C; font-size: 2.4rem; flex-shrink: 0;
}
.v515-app-cta h3 { font-size: 1.55rem; color: #fff; margin-bottom: 4px; }
.v515-app-cta p { font-size: 1.22rem; color: var(--v515-gold-soft); margin-bottom: 8px; }

/* ---------- Footer ---------- */
.v515-footer {
  background: #050505;
  border-top: 1px solid var(--v515-border);
  padding: 22px 14px calc(var(--v515-bottomnav-h) + 18px);
  text-align: center;
}
.v515-footer-brand {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 6px;
  color: var(--v515-gold);
}
.v515-footer-desc { font-size: 1.22rem; color: var(--v515-text-muted); margin-bottom: 12px; line-height: 1.6rem; }
.v515-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 12px;
}
.v515-footer-links a {
  font-size: 1.2rem; padding: 6px 10px;
  background: var(--v515-bg-card);
  border: 1px solid var(--v515-border);
  border-radius: 14px;
}
.v515-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px;
}
.v515-footer-promos .v515-btn { padding: 8px 14px; font-size: 1.2rem; }
.v515-footer-copy { font-size: 1.1rem; color: var(--v515-text-muted); }

/* ---------- Mobile Bottom Nav ---------- */
.v515-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--v515-bottomnav-h);
  background: linear-gradient(180deg, #141414, #0a0a0a);
  border-top: 1px solid var(--v515-border);
  z-index: 1000;
  display: flex; justify-content: space-around; align-items: center;
  padding: 4px 0;
}
.v515-bottomnav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 54px;
  color: var(--v515-text-muted);
  background: transparent; border: none;
  font-size: 1.05rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease, transform .15s ease;
}
.v515-bottomnav-item i,
.v515-bottomnav-item span.material-symbols-outlined {
  font-size: 22px; margin-bottom: 2px;
}
.v515-bottomnav-item:active { transform: scale(0.9); }
.v515-bottomnav-item.active { color: var(--v515-primary); }
.v515-bottomnav-item.v515-bn-promo { color: var(--v515-gold); }
.v515-bottomnav-item.v515-bn-promo i { font-size: 24px; }
.v515-bottomnav-badge {
  position: absolute; top: 4px; right: 18px;
  background: var(--v515-danger); color: #fff;
  font-size: 0.95rem; padding: 1px 5px;
  border-radius: 8px;
}

/* ---------- Utilities ---------- */
.v515-text-center { text-align: center; }
.v515-mt-8 { margin-top: 8px; }
.v515-mt-16 { margin-top: 16px; }
.v515-mb-8 { margin-bottom: 8px; }
.v515-hidden { display: none !important; }
.v515-row { display: flex; gap: 8px; }
.v515-pill {
  display: inline-block; padding: 3px 10px;
  background: rgba(34,139,34,0.2); color: var(--v515-primary);
  border-radius: 12px; font-size: 1.1rem; font-weight: 700;
}

/* ---------- Desktop: hide bottom nav, show desktop nav ----- */
@media (min-width: 769px) {
  .v515-bottomnav { display: none; }
  main.v515-main { padding-bottom: 30px; }
  .v515-footer { padding-bottom: 22px; }
}
@media (max-width: 768px) {
  main.v515-main { padding-bottom: 84px; }
}

/* ---------- Inline promo link styling ---------- */
.v515-promo-link {
  color: var(--v515-gold);
  font-weight: 700;
  border-bottom: 1px dashed var(--v515-gold);
  cursor: pointer;
}
.v515-promo-link:hover { color: var(--v515-gold-soft); }

/* ---------- Achievement / Trick list ---------- */
.v515-data-list {
  display: grid; grid-template-columns: 1fr; gap: 6px;
}
.v515-data-list li {
  background: var(--v515-bg-card);
  border-left: 3px solid var(--v515-gold);
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 1.25rem;
}
.v515-data-list li strong { color: var(--v515-primary); }
