/* ============================================================
 * phwi.homes - design-4054.css
 * Palette: #A9A9A9 | #FFDEAD | #FAF0E6 | #FFCC02 | #F4A460 | #1A1A2E
 * Dark background = #1A1A2E, light text = #FAF0E6 / #FFDEAD
 * Accent gold = #FFCC02, warm accent = #F4A460, muted gray = #A9A9A9
 * All custom classes use the v4c5- prefix.
 * Mobile-first: max width 430px reference, scales up to desktop.
 * ============================================================ */

:root {
  --v4c5-bg:        #1A1A2E;
  --v4c5-bg-2:      #21223a;
  --v4c5-bg-3:      #2a2b48;
  --v4c5-card:      #25263f;
  --v4c5-text:      #FAF0E6;
  --v4c5-text-soft: #FFDEAD;
  --v4c5-muted:     #A9A9A9;
  --v4c5-gold:      #FFCC02;
  --v4c5-warm:      #F4A460;
  --v4c5-line:      rgba(255, 222, 173, 0.14);
  --v4c5-shadow:    0 8px 24px rgba(0, 0, 0, 0.35);
  --v4c5-radius:    14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0;
  background: var(--v4c5-bg);
  color: var(--v4c5-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--v4c5-gold);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--v4c5-warm); }

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

/* ===================== Header ===================== */
.v4c5-header {
  position: fixed;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(26,26,46,0.96), rgba(26,26,46,0.92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--v4c5-line);
}
.v4c5-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 8px 14px;
}
.v4c5-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--v4c5-gold);
  letter-spacing: .5px;
}
.v4c5-logo img { width: 30px; height: 30px; border-radius: 6px; }
.v4c5-logo small { color: var(--v4c5-text-soft); font-size: 1.1rem; font-weight: 500; }

.v4c5-header__actions { display: flex; align-items: center; gap: 8px; }

.v4c5-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
  line-height: 1;
}
.v4c5-btn:active { transform: translateY(1px); }
.v4c5-btn--login {
  background: transparent;
  color: var(--v4c5-text-soft);
  border: 1px solid var(--v4c5-text-soft);
}
.v4c5-btn--login:hover { color: var(--v4c5-gold); border-color: var(--v4c5-gold); }
.v4c5-btn--register {
  background: linear-gradient(135deg, var(--v4c5-gold), var(--v4c5-warm));
  color: #1A1A2E;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(255, 204, 2, 0.30);
}
.v4c5-btn--register:hover { box-shadow: 0 6px 18px rgba(244, 164, 96, 0.45); }
.v4c5-btn--ghost {
  background: rgba(255, 222, 173, 0.08);
  color: var(--v4c5-text);
  border: 1px solid var(--v4c5-line);
}
.v4c5-btn--block { width: 100%; }
.v4c5-btn--lg { min-height: 46px; font-size: 1.6rem; padding: 12px 22px; }

.v4c5-icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 222, 173, 0.08);
  color: var(--v4c5-text);
  border: 1px solid var(--v4c5-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.8rem;
}

/* Desktop nav */
.v4c5-nav { display: none; }
.v4c5-nav a {
  color: var(--v4c5-text-soft);
  font-size: 1.4rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
}
.v4c5-nav a:hover { background: rgba(255, 204, 2, 0.10); color: var(--v4c5-gold); }

/* ===================== Mobile menu ===================== */
.v4c5-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--v4c5-bg-2);
  border-bottom: 1px solid var(--v4c5-line);
  transform: translateY(-120%);
  transition: transform .28s ease;
  z-index: 9999;
  padding: 70px 18px 24px;
  max-height: 100vh;
  overflow-y: auto;
}
.v4c5-menu--open { transform: translateY(0); }
.v4c5-menu__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 222, 173, 0.10);
  color: var(--v4c5-text);
  border: 1px solid var(--v4c5-line);
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
}
.v4c5-menu a {
  display: block;
  padding: 14px 8px;
  border-bottom: 1px solid var(--v4c5-line);
  color: var(--v4c5-text-soft);
  font-size: 1.55rem;
  font-weight: 600;
}
.v4c5-menu a:hover { color: var(--v4c5-gold); padding-left: 14px; }

/* Search panel */
.v4c5-search {
  display: none;
  padding: 10px 14px;
  background: var(--v4c5-bg-2);
  border-bottom: 1px solid var(--v4c5-line);
}
.v4c5-search--open { display: block; }
.v4c5-search input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--v4c5-line);
  background: var(--v4c5-bg);
  color: var(--v4c5-text);
  font-size: 1.4rem;
}

/* ===================== Hero / Carousel ===================== */
.v4c5-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(135deg, #2a2b48, #1A1A2E);
}
.v4c5-slides { position: relative; }
.v4c5-slide {
  position: relative;
  display: none;
  min-height: 320px;
  align-items: flex-end;
  padding: 22px 18px;
  background-size: cover;
  background-position: center;
}
.v4c5-slide::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(26,26,46,0.92) 8%, rgba(26,26,46,0.20) 70%);
}
.v4c5-slide--active { display: flex; }
.v4c5-slide__inner { position: relative; z-index: 2; max-width: 520px; }
.v4c5-slide__tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--v4c5-gold);
  color: #1A1A2E;
  font-weight: 800;
  font-size: 1.15rem;
  border-radius: 6px;
  margin-bottom: 8px;
}
.v4c5-slide__title {
  font-size: 2.4rem;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--v4c5-text);
  line-height: 1.2;
}
.v4c5-slide__desc {
  color: var(--v4c5-text-soft);
  font-size: 1.4rem;
  margin: 0 0 12px;
}
.v4c5-hero__nav {
  position: absolute;
  top: 50%;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(26,26,46,0.55);
  color: var(--v4c5-text);
  border: 1px solid var(--v4c5-line);
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.6rem;
}
.v4c5-hero__nav--prev { left: 10px; }
.v4c5-hero__nav--next { right: 10px; }
.v4c5-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
  z-index: 3;
}
.v4c5-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 222, 173, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
}
.v4c5-dot--active { background: var(--v4c5-gold); width: 22px; border-radius: 4px; }

/* ===================== Section ===================== */
.v4c5-section { padding: 28px 0; }
.v4c5-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.v4c5-section__title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--v4c5-text);
  display: flex; align-items: center; gap: 8px;
}
.v4c5-section__title i { color: var(--v4c5-gold); }
.v4c5-section__more {
  font-size: 1.3rem;
  color: var(--v4c5-text-soft);
  font-weight: 600;
}
.v4c5-eyebrow {
  color: var(--v4c5-gold);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ===================== Promo strip ===================== */
.v4c5-promo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scrollbar-width: none;
}
.v4c5-promo-strip::-webkit-scrollbar { display: none; }
.v4c5-promo-card {
  flex: 0 0 78%;
  background: linear-gradient(135deg, rgba(255,204,2,0.18), rgba(244,164,96,0.10));
  border: 1px solid var(--v4c5-line);
  border-radius: var(--v4c5-radius);
  padding: 14px;
  position: relative;
}
.v4c5-promo-card h4 { margin: 0 0 4px; font-size: 1.55rem; color: var(--v4c5-gold); }
.v4c5-promo-card p { margin: 0 0 10px; color: var(--v4c5-text-soft); font-size: 1.3rem; }

/* ===================== Filter tabs ===================== */
.v4c5-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.v4c5-filters::-webkit-scrollbar { display: none; }
.v4c5-ftab {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 222, 173, 0.08);
  color: var(--v4c5-text-soft);
  border: 1px solid var(--v4c5-line);
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.v4c5-ftab--active {
  background: linear-gradient(135deg, var(--v4c5-gold), var(--v4c5-warm));
  color: #1A1A2E;
  border-color: transparent;
}

/* ===================== Game grid ===================== */
.v4c5-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.v4c5-card {
  background: var(--v4c5-card);
  border-radius: var(--v4c5-radius);
  overflow: hidden;
  border: 1px solid var(--v4c5-line);
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .2s ease;
}
.v4c5-card:hover { transform: translateY(-2px); box-shadow: var(--v4c5-shadow); }
.v4c5-card__img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #0f1020;
  overflow: hidden;
}
.v4c5-card__img img { width: 100%; height: 100%; object-fit: cover; }
.v4c5-card__tag {
  position: absolute;
  top: 6px; left: 6px;
  background: rgba(26,26,46,0.75);
  color: var(--v4c5-gold);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}
.v4c5-card__body { padding: 8px 10px 12px; }
.v4c5-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--v4c5-text);
  margin: 0 0 6px;
  line-height: 1.25;
}
.v4c5-card__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 7px 10px;
  background: linear-gradient(135deg, var(--v4c5-gold), var(--v4c5-warm));
  color: #1A1A2E;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 8px;
}

/* Featured winner banner */
.v4c5-feature {
  background: linear-gradient(135deg, rgba(244,164,96,0.18), rgba(26,26,46,0.4));
  border: 1px solid var(--v4c5-line);
  border-radius: var(--v4c5-radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.v4c5-feature__img {
  flex: 0 0 96px;
  width: 96px; height: 96px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1020;
}
.v4c5-feature__img img { width: 100%; height: 100%; object-fit: cover; }
.v4c5-feature__body { flex: 1; }
.v4c5-feature__body h3 { margin: 0 0 4px; font-size: 1.7rem; color: var(--v4c5-gold); }
.v4c5-feature__body p { margin: 0 0 8px; color: var(--v4c5-text-soft); font-size: 1.3rem; }

/* ===================== Steps ===================== */
.v4c5-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  counter-reset: step;
}
.v4c5-step {
  background: var(--v4c5-card);
  border: 1px solid var(--v4c5-line);
  border-radius: var(--v4c5-radius);
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.v4c5-step__num {
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--v4c5-gold), var(--v4c5-warm));
  color: #1A1A2E;
  font-weight: 800;
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
}
.v4c5-step__body h4 { margin: 0 0 4px; font-size: 1.5rem; color: var(--v4c5-text); }
.v4c5-step__body p { margin: 0; color: var(--v4c5-text-soft); font-size: 1.3rem; }

/* ===================== SEO content ===================== */
.v4c5-prose {
  background: var(--v4c5-bg-2);
  border: 1px solid var(--v4c5-line);
  border-radius: var(--v4c5-radius);
  padding: 18px;
  color: var(--v4c5-text);
}
.v4c5-prose h2 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 18px 0 8px;
  color: var(--v4c5-gold);
}
.v4c5-prose h2:first-child { margin-top: 0; }
.v4c5-prose h3 {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 14px 0 6px;
  color: var(--v4c5-text-soft);
}
.v4c5-prose p { margin: 0 0 10px; color: var(--v4c5-text); font-size: 1.4rem; line-height: 1.65; }
.v4c5-prose ul { margin: 0 0 10px; padding-left: 20px; }
.v4c5-prose li { margin-bottom: 6px; font-size: 1.4rem; line-height: 1.6; }
.v4c5-prose strong { color: var(--v4c5-gold); }

/* FAQ */
.v4c5-faq {
  background: var(--v4c5-card);
  border: 1px solid var(--v4c5-line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.v4c5-faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px;
  color: var(--v4c5-text);
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.v4c5-faq__q i { color: var(--v4c5-gold); transition: transform .25s ease; }
.v4c5-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 14px;
  color: var(--v4c5-text-soft);
  font-size: 1.35rem;
}
.v4c5-faq--open .v4c5-faq__a { max-height: 600px; padding: 0 14px 14px; }
.v4c5-faq--open .v4c5-faq__q i { transform: rotate(45deg); }

/* Stat row */
.v4c5-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 10px 0 20px;
}
.v4c5-stat {
  background: var(--v4c5-card);
  border: 1px solid var(--v4c5-line);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.v4c5-stat__num { font-size: 2.2rem; font-weight: 800; color: var(--v4c5-gold); }
.v4c5-stat__label { font-size: 1.2rem; color: var(--v4c5-muted); }

/* CTA */
.v4c5-cta {
  background: linear-gradient(135deg, rgba(255,204,2,0.16), rgba(244,164,96,0.10));
  border: 1px solid var(--v4c5-line);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  margin: 16px 0;
}
.v4c5-cta h3 { font-size: 2rem; margin: 0 0 6px; color: var(--v4c5-gold); }
.v4c5-cta p { margin: 0 0 14px; color: var(--v4c5-text-soft); font-size: 1.35rem; }

/* ===================== Footer ===================== */
.v4c5-footer {
  background: var(--v4c5-bg-2);
  border-top: 1px solid var(--v4c5-line);
  padding: 28px 0 18px;
  margin-top: 26px;
  color: var(--v4c5-text-soft);
}
.v4c5-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.v4c5-footer__col h4 {
  font-size: 1.5rem;
  color: var(--v4c5-gold);
  margin: 0 0 8px;
}
.v4c5-footer__col a {
  display: block;
  padding: 4px 0;
  color: var(--v4c5-text-soft);
  font-size: 1.3rem;
}
.v4c5-footer__col a:hover { color: var(--v4c5-gold); }
.v4c5-footer__bottom {
  border-top: 1px solid var(--v4c5-line);
  margin-top: 18px;
  padding-top: 14px;
  font-size: 1.2rem;
  color: var(--v4c5-muted);
  text-align: center;
}

/* ===================== Mobile bottom nav ===================== */
.v4c5-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: rgba(26, 26, 46, 0.98);
  border-top: 1px solid var(--v4c5-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.35);
}
.v4c5-bottomnav__btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: none;
  border: none;
  color: var(--v4c5-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 2px;
  position: relative;
}
.v4c5-bottomnav__btn .v4c5-ico {
  font-size: 2.2rem;
  line-height: 1;
}
.v4c5-bottomnav__btn--active {
  color: var(--v4c5-gold);
}
.v4c5-bottomnav__btn--active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 28px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--v4c5-gold), var(--v4c5-warm));
}
.v4c5-bottomnav__btn--promo {
  color: var(--v4c5-gold);
}
.v4c5-bottomnav__btn--promo .v4c5-ico {
  background: linear-gradient(135deg, var(--v4c5-gold), var(--v4c5-warm));
  color: #1A1A2E;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: -18px;
  box-shadow: 0 4px 12px rgba(255, 204, 2, 0.45);
  font-size: 2.1rem;
}

main { padding-top: 58px; padding-bottom: 80px; }

/* ===================== Desktop overrides ===================== */
@media (min-width: 769px) {
  .v4c5-bottomnav { display: none; }
  main { padding-top: 58px; padding-bottom: 20px; }
  .v4c5-nav { display: flex; align-items: center; gap: 6px; }
  .v4c5-header__menu-btn { display: none; }
  .v4c5-grid { grid-template-columns: repeat(4, 1fr); }
  .v4c5-promo-card { flex: 0 0 32%; }
  .v4c5-footer__grid { grid-template-columns: repeat(4, 1fr); }
  .v4c5-stats { grid-template-columns: repeat(4, 1fr); }
  .v4c5-steps { grid-template-columns: repeat(3, 1fr); }
  .v4c5-slide { min-height: 420px; }
  .v4c5-slide__title { font-size: 3rem; }
  .v4c5-section__title { font-size: 2.4rem; }
}

@media (min-width: 600px) and (max-width: 768px) {
  .v4c5-grid { grid-template-columns: repeat(3, 1fr); }
  .v4c5-stats { grid-template-columns: repeat(4, 1fr); }
}

/* Accessibility focus */
:focus-visible {
  outline: 2px solid var(--v4c5-gold);
  outline-offset: 2px;
}
.v4c5-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--v4c5-gold);
  color: #1A1A2E;
  padding: 8px 14px;
  border-radius: 0 0 8px 0;
  z-index: 10000;
}
.v4c5-skip:focus { left: 0; }
