/* ===========================================================
   phwin apk - layout-5a12.css
   Shared stylesheet for phwin-apk.click
   All custom class names use the dynamic prefix: v215-
   All CSS variables use the prefix: --v215-
   Palette: #E9967A | #CD5C5C | #FF5722 | #212F3D | #FFB3FF
   =========================================================== */

:root {
  --v215-primary: #FF5722;
  --v215-secondary: #CD5C5C;
  --v215-accent: #E9967A;
  --v215-highlight: #FFB3FF;
  --v215-bg: #212F3D;
  --v215-bg-deep: #18222D;
  --v215-bg-card: #2A3B4C;
  --v215-text: #FFFFFF;
  --v215-text-muted: #C7D2DC;
  --v215-border: rgba(255, 255, 255, 0.08);
  --v215-radius: 12px;
  --v215-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  --v215-header-h: 58px;
  --v215-bottom-nav-h: 62px;
}

* { box-sizing: border-box; }

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

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

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

.v215-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.v215-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
}

main { padding-bottom: 80px; }

/* ---------------- Header ---------------- */
.v215-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--v215-header-h);
  background: linear-gradient(90deg, var(--v215-bg-deep), var(--v215-bg));
  border-bottom: 1px solid var(--v215-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: box-shadow .25s ease;
}
.v215-header-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,0.45); }

.v215-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.v215-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--v215-text);
  font-weight: 700;
  font-size: 1.7rem;
}
.v215-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v215-logo .v215-logo-text { color: var(--v215-primary); }

.v215-header-actions { display: flex; align-items: center; gap: 8px; }

.v215-menu-toggle {
  background: transparent;
  border: 0;
  color: var(--v215-text);
  font-size: 2.2rem;
  width: 40px; height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------------- Buttons ---------------- */
.v215-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  text-decoration: none;
}
.v215-btn:active { transform: scale(0.96); }
.v215-btn-primary {
  background: linear-gradient(135deg, var(--v215-primary), var(--v215-secondary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}
.v215-btn-outline {
  background: transparent;
  border: 1px solid var(--v215-accent);
  color: var(--v215-accent);
}
.v215-btn-block {
  display: flex;
  width: 100%;
  padding: 14px;
  font-size: 1.6rem;
}
.v215-text-link {
  color: var(--v215-primary);
  font-weight: 700;
}

/* ---------------- Mobile menu ---------------- */
.v215-mobile-menu {
  position: fixed;
  top: var(--v215-header-h); right: 0;
  width: 80%; max-width: 320px;
  height: calc(100vh - var(--v215-header-h));
  background: var(--v215-bg-deep);
  border-left: 1px solid var(--v215-border);
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 16px 14px;
  overflow-y: auto;
}
.v215-mobile-menu.v215-menu-open { transform: translateX(0); }
.v215-mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid var(--v215-border);
  color: var(--v215-text);
  font-size: 1.5rem;
}
.v215-mobile-menu a:hover { color: var(--v215-primary); }

.v215-overlay {
  position: fixed; inset: var(--v215-header-h) 0 0 0;
  background: rgba(0,0,0,0.55);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease;
  z-index: 9998;
}
.v215-overlay.v215-menu-open { opacity: 1; visibility: visible; }

/* ---------------- Hero / Carousel ---------------- */
.v215-hero {
  margin-top: var(--v215-header-h);
  padding: 14px 0 0;
}
.v215-carousel {
  position: relative;
  border-radius: var(--v215-radius);
  overflow: hidden;
  box-shadow: var(--v215-shadow);
}
.v215-carousel-track { display: flex; transition: transform .4s ease; }
.v215-carousel-slide {
  position: relative;
  min-width: 100%;
  display: none;
}
.v215-carousel-slide.v215-slide-active { display: block; }
.v215-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.v215-carousel-caption {
  position: absolute;
  left: 12px; bottom: 12px; right: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 18px 10px 8px;
  border-radius: 8px;
}
.v215-carousel-caption strong { font-size: 1.6rem; }
.v215-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; gap: 6px; justify-content: center;
}
.v215-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: 0; padding: 0; cursor: pointer;
}
.v215-carousel-dot.v215-dot-active { background: var(--v215-primary); }

/* ---------------- Sections ---------------- */
.v215-section { padding: 18px 0; }
.v215-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.v215-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v215-text);
}
.v215-section-title span { color: var(--v215-primary); }
.v215-section-more { font-size: 1.3rem; color: var(--v215-accent); }

/* ---------------- Cards ---------------- */
.v215-card {
  background: var(--v215-bg-card);
  border: 1px solid var(--v215-border);
  border-radius: var(--v215-radius);
  padding: 14px;
  box-shadow: var(--v215-shadow);
}
.v215-card h3 { margin: 0 0 6px; font-size: 1.6rem; }
.v215-card p { margin: 0; color: var(--v215-text-muted); font-size: 1.4rem; }

/* ---------------- Game grid ---------------- */
.v215-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.v215-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--v215-bg-card);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
  overflow: hidden;
}
.v215-game-item:active { transform: scale(0.95); }
.v215-game-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 6px;
}
.v215-game-name {
  font-size: 1.2rem;
  color: var(--v215-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

/* ---------------- Lists / steps ---------------- */
.v215-list { margin: 0; padding-left: 18px; }
.v215-list li { margin-bottom: 6px; color: var(--v215-text-muted); }

.v215-steps { counter-reset: step; padding: 0; list-style: none; }
.v215-steps li {
  position: relative;
  padding: 8px 8px 8px 42px;
  margin-bottom: 8px;
  background: var(--v215-bg-card);
  border-radius: 8px;
  color: var(--v215-text-muted);
}
.v215-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 8px; top: 8px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--v215-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 700;
}

/* ---------------- Feature pills / tags ---------------- */
.v215-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(233, 150, 122, 0.18);
  color: var(--v215-accent);
  font-size: 1.2rem;
  margin: 2px;
}
.v215-tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--v215-primary);
  color: #fff;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------------- Payment / winner / testimonial ---------------- */
.v215-pay-row {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.v215-pay-item {
  flex: 1 1 calc(33% - 8px);
  background: var(--v215-bg-card);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  color: var(--v215-text);
  font-size: 1.3rem;
}
.v215-winner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--v215-bg-card);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}
.v215-winner .v215-amount { color: var(--v215-primary); font-weight: 800; }

.v215-quote {
  background: var(--v215-bg-card);
  border-left: 3px solid var(--v215-primary);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-style: italic;
  color: var(--v215-text-muted);
}
.v215-quote .v215-quote-author {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: var(--v215-accent);
  font-size: 1.2rem;
}

/* ---------------- FAQ ---------------- */
.v215-faq-item {
  background: var(--v215-bg-card);
  border-radius: 8px;
  margin-bottom: 8px;
  padding: 10px 12px;
}
.v215-faq-item h4 { margin: 0 0 4px; font-size: 1.4rem; color: var(--v215-accent); }
.v215-faq-item p { margin: 0; color: var(--v215-text-muted); font-size: 1.35rem; }

/* ---------------- Footer ---------------- */
.v215-footer {
  background: var(--v215-bg-deep);
  border-top: 1px solid var(--v215-border);
  padding: 20px 14px 18px;
  margin-top: 18px;
  color: var(--v215-text-muted);
}
.v215-footer-brand { font-size: 1.4rem; margin-bottom: 10px; }
.v215-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.v215-footer-links a {
  flex: 1 1 calc(50% - 8px);
  color: var(--v215-text-muted);
  font-size: 1.25rem;
}
.v215-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 10px 0 14px;
}
.v215-footer-promos .v215-btn {
  flex: 1 1 calc(50% - 8px);
  font-size: 1.25rem;
  min-height: 36px;
}
.v215-footer-copy { font-size: 1.2rem; color: var(--v215-text-muted); text-align: center; }

/* ---------------- Bottom nav ---------------- */
.v215-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--v215-bottom-nav-h);
  background: var(--v215-bg-deep);
  border-top: 1px solid var(--v215-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
}
.v215-bottom-nav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: 0;
  color: var(--v215-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: color .2s ease, transform .15s ease;
}
.v215-bottom-nav-btn:active { transform: scale(0.9); }
.v215-bottom-nav-btn .v215-nav-icon {
  font-size: 2.2rem;
  line-height: 1;
}
.v215-bottom-nav-btn .material-icons,
.v215-bottom-nav-btn ion-icon { font-size: 2.2rem; }
.v215-bottom-nav-btn.v215-nav-active {
  color: var(--v215-primary);
}
.v215-bottom-nav-btn.v215-nav-promo .v215-nav-icon {
  color: var(--v215-highlight);
}
.v215-nav-badge {
  position: absolute;
  top: 6px; right: 50%;
  transform: translateX(18px);
  background: var(--v215-primary);
  color: #fff;
  font-size: 1rem;
  border-radius: 999px;
  padding: 0 5px;
  min-width: 16px;
  height: 16px;
  display: flex; align-items: center; justify-content: center;
}
.v215-bottom-nav-btn { position: relative; }

/* ---------------- Desktop ---------------- */
@media (min-width: 769px) {
  .v215-bottom-nav { display: none; }
  main { padding-bottom: 0; }
  .v215-container, .v215-header-inner, .v215-wrapper { max-width: 960px; }
}

/* ---------------- Mobile tuning ---------------- */
@media (max-width: 430px) {
  html { font-size: 58%; }
  .v215-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .v215-game-name { font-size: 1.1rem; }
  .v215-carousel-slide img { height: 160px; }
  .v215-section-title { font-size: 1.6rem; }
  body { padding-bottom: 0; }
}

@media (max-width: 360px) {
  .v215-grid { grid-template-columns: repeat(2, 1fr); }
  .v215-header-actions .v215-btn-outline { padding: 0 10px; }
}
