/* =============================================================
 * ph love - ph-love-mobile-7f49.css
 * Mobile-first (320-430px) styling for ph-love.homes
 * All custom classes use the s7f4- prefix.
 * Palette: #191970 | #34495E | #0A0A0A | #FA8072 | #5D5D5D
 * ============================================================= */

* { box-sizing: border-box; }

:root {
  --s7f4-navy: #191970;
  --s7f4-steel: #34495E;
  --s7f4-ink: #0A0A0A;
  --s7f4-coral: #FA8072;
  --s7f4-grey: #5D5D5D;
  --s7f4-bg: #0c0c18;
  --s7f4-surface: #161630;
  --s7f4-surface-2: #1f1f44;
  --s7f4-line: #2c2c54;
  --s7f4-text: #f1f1ff;
  --s7f4-muted: #b7b7d4;
  --s7f4-gold: #ffd479;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--s7f4-bg);
  color: var(--s7f4-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

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

a { color: var(--s7f4-coral); text-decoration: none; }
a:hover, a:focus { color: #ffb09e; text-decoration: underline; }

.s7f4-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--s7f4-bg);
  min-height: 100vh;
  padding-bottom: 92px; /* room for fixed bottom nav */
  overflow-x: hidden;
}

/* =========================== Header ========================= */
.s7f4-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(180deg, #1b1b46 0%, #11112a 100%);
  border-bottom: 1px solid var(--s7f4-line);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
}

.s7f4-header-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
}

.s7f4-menu-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--s7f4-line);
  background: var(--s7f4-surface);
  border-radius: 10px;
  color: var(--s7f4-text);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.s7f4-menu-btn:hover { background: var(--s7f4-surface-2); }

.s7f4-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
}
.s7f4-brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--s7f4-line);
}
.s7f4-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}
.s7f4-brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
}
.s7f4-brand-tag {
  font-size: 10.5px;
  color: var(--s7f4-coral);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.s7f4-auth {
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}
.s7f4-btn {
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 13px;
  cursor: pointer;
  line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.s7f4-btn:active { transform: scale(0.96); }
.s7f4-btn-login {
  background: var(--s7f4-surface-2);
  color: var(--s7f4-text);
  border: 1px solid var(--s7f4-line);
}
.s7f4-btn-login:hover { background: #2a2a5e; }
.s7f4-btn-register {
  background: linear-gradient(135deg, #FA8072, #ff5e4d);
  color: #fff;
  box-shadow: 0 4px 12px rgba(250,128,114,0.35);
}
.s7f4-btn-register:hover { filter: brightness(1.06); }

/* ===================== Slide-down menu ==================== */
.s7f4-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 70;
}
.s7f4-backdrop-on { opacity: 1; pointer-events: auto; }

.s7f4-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--s7f4-surface);
  border-bottom: 1px solid var(--s7f4-line);
  transform: translateY(-110%);
  transition: transform .26s ease;
  z-index: 80;
  padding: 14px 14px 18px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}
.s7f4-menu-open { transform: translateY(0); }

.s7f4-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.s7f4-menu-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.s7f4-menu-close {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--s7f4-surface-2);
  color: var(--s7f4-text);
  border: 1px solid var(--s7f4-line);
  cursor: pointer;
  font-size: 16px;
}

.s7f4-menu-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  color: var(--s7f4-text);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}
.s7f4-menu-link:hover {
  background: var(--s7f4-surface-2);
  border-color: var(--s7f4-line);
  text-decoration: none;
}
.s7f4-menu-link span.dot {
  width: 6px; height: 6px;
  background: var(--s7f4-coral);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ===================== Hero carousel ===================== */
.s7f4-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--s7f4-line);
}
.s7f4-hero-track {
  display: flex;
  width: 100%;
}
.s7f4-hero-slide {
  position: relative;
  flex: 0 0 100%;
  display: none;
  flex-direction: column;
}
.s7f4-slide-active { display: flex; }
.s7f4-hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.s7f4-hero-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 14px 18px;
  background: linear-gradient(180deg, rgba(10,10,26,0) 0%, rgba(10,10,26,0.88) 75%);
  color: #fff;
}
.s7f4-hero-cap h1 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.s7f4-hero-cap h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.s7f4-hero-cap p {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--s7f4-muted);
}
.s7f4-hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #FA8072, #ff5e4d);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(250,128,114,0.4);
}
.s7f4-hero-cta:hover { color: #fff; filter: brightness(1.07); }

.s7f4-hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(10,10,26,0.55);
  border: 1px solid var(--s7f4-line);
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.s7f4-hero-prev { left: 8px; }
.s7f4-hero-next { right: 8px; }

.s7f4-hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 10px;
  background: var(--s7f4-surface);
}
.s7f4-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3a3a66;
  border: none;
  cursor: pointer;
  padding: 0;
}
.s7f4-dot-active { background: var(--s7f4-coral); }

/* ===================== Section base ===================== */
.s7f4-section {
  padding: 18px 14px 8px;
}
.s7f4-section-alt { background: var(--s7f4-surface); }

.s7f4-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.s7f4-section-title {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s7f4-section-title::before {
  content: "";
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--s7f4-coral), #ff5e4d);
  border-radius: 3px;
}
.s7f4-section-more {
  font-size: 12px;
  color: var(--s7f4-coral);
  font-weight: 700;
}

/* ===================== Filter tabs ===================== */
.s7f4-filter-bar {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 14px 4px;
  scrollbar-width: none;
}
.s7f4-filter-bar::-webkit-scrollbar { display: none; }
.s7f4-filter-tab {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 20px;
  background: var(--s7f4-surface-2);
  color: var(--s7f4-muted);
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid var(--s7f4-line);
  cursor: pointer;
  text-transform: capitalize;
}
.s7f4-filter-tab:hover { color: #fff; }
.s7f4-tab-active {
  background: linear-gradient(135deg, #FA8072, #ff5e4d);
  color: #fff;
  border-color: transparent;
}

/* ===================== Game grid ===================== */
.s7f4-game-block { margin-bottom: 6px; }
.s7f4-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (min-width: 375px) {
  .s7f4-game-grid { gap: 10px; }
}
.s7f4-game-card {
  position: relative;
  background: var(--s7f4-surface);
  border: 1px solid var(--s7f4-line);
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  transition: transform .12s ease, border-color .15s ease;
}
.s7f4-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--s7f4-coral);
}
.s7f4-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0e0e22;
}
.s7f4-game-name {
  font-size: 11px;
  color: var(--s7f4-muted);
  padding: 5px 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.s7f4-game-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, #FA8072, #ff5e4d);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* ===================== Quick links ===================== */
.s7f4-quicklinks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.s7f4-quicklink {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  background: var(--s7f4-surface);
  border: 1px solid var(--s7f4-line);
  border-radius: 10px;
  color: var(--s7f4-text);
  font-weight: 600;
  font-size: 13px;
}
.s7f4-quicklink:hover {
  border-color: var(--s7f4-coral);
  text-decoration: none;
  color: #fff;
}
.s7f4-quicklink .s7f4-ql-icon {
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2a5e, #191970);
  display: flex; align-items: center; justify-content: center;
  color: var(--s7f4-coral);
  font-weight: 800;
  font-size: 14px;
}

/* ===================== Promo banners ===================== */
.s7f4-promo {
  position: relative;
  background: linear-gradient(135deg, #191970, #34495E);
  border: 1px solid var(--s7f4-line);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}
.s7f4-promo::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(250,128,114,0.35), transparent 70%);
  pointer-events: none;
}
.s7f4-promo-icon {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FA8072, #ff5e4d);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px;
}
.s7f4-promo-body { flex: 1 1 auto; min-width: 0; }
.s7f4-promo-title {
  font-size: 15px; font-weight: 800; color: #fff; margin: 0 0 2px;
}
.s7f4-promo-desc {
  font-size: 12px; color: var(--s7f4-muted); margin: 0;
}
.s7f4-promo-btn {
  flex: 0 0 auto;
  background: #fff;
  color: var(--s7f4-navy);
  font-weight: 800;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 18px;
  border: none;
  cursor: pointer;
}

/* ===================== Feature list ===================== */
.s7f4-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}
.s7f4-feature {
  background: var(--s7f4-surface);
  border: 1px solid var(--s7f4-line);
  border-radius: 10px;
  padding: 12px;
}
.s7f4-feature-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2a2a5e, #191970);
  color: var(--s7f4-coral);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  margin-bottom: 8px;
}
.s7f4-feature h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  color: #fff;
}
.s7f4-feature p {
  margin: 0;
  font-size: 11.5px;
  color: var(--s7f4-muted);
  line-height: 1.5;
}

/* ===================== Partners strip ===================== */
.s7f4-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.s7f4-partners img {
  width: 100%;
  background: #fff;
  border-radius: 6px;
  padding: 4px;
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

/* ===================== SEO content ===================== */
.s7f4-content p {
  color: var(--s7f4-muted);
  font-size: 13.5px;
  margin: 0 0 10px;
}
.s7f4-content h2 {
  font-size: 17px;
  color: #fff;
  margin: 18px 0 8px;
}
.s7f4-content h3 {
  font-size: 14.5px;
  color: var(--s7f4-coral);
  margin: 14px 0 6px;
}
.s7f4-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--s7f4-muted);
  font-size: 13px;
}
.s7f4-content ul li { margin-bottom: 4px; }
.s7f4-content a { color: var(--s7f4-coral); }

/* ===================== FAQ ===================== */
.s7f4-faq-item {
  border: 1px solid var(--s7f4-line);
  border-radius: 10px;
  margin-bottom: 8px;
  background: var(--s7f4-surface);
  overflow: hidden;
}
.s7f4-faq-q {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 13.5px;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.s7f4-faq-q::after {
  content: "+";
  font-size: 18px;
  color: var(--s7f4-coral);
  font-weight: 800;
  transition: transform .2s ease;
}
.s7f4-faq-open .s7f4-faq-q::after { transform: rotate(45deg); }
.s7f4-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  color: var(--s7f4-muted);
  font-size: 13px;
  padding: 0 14px;
}
.s7f4-faq-open .s7f4-faq-a {
  max-height: 400px;
  padding: 0 14px 12px;
}

/* ===================== Top button ===================== */
#s7f4-top-btn {
  position: fixed;
  right: 14px;
  bottom: 104px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--s7f4-coral);
  color: #fff;
  border: none;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 4px 14px rgba(250,128,114,0.45);
  transition: opacity .2s ease;
}
.s7f4-top-visible { opacity: 1; pointer-events: auto; }

/* ===================== Footer ===================== */
.s7f4-footer {
  background: #07071a;
  border-top: 1px solid var(--s7f4-line);
  padding: 18px 14px 12px;
}
.s7f4-footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.s7f4-footer-col h4 {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.s7f4-footer-col a {
  display: block;
  font-size: 12.5px;
  color: var(--s7f4-muted);
  padding: 3px 0;
}
.s7f4-footer-col a:hover { color: var(--s7f4-coral); }
.s7f4-footer-bottom {
  border-top: 1px solid var(--s7f4-line);
  padding-top: 10px;
  font-size: 11px;
  color: var(--s7f4-grey);
  text-align: center;
  line-height: 1.6;
}
.s7f4-footer-bottom p { margin: 0 0 4px; }

/* ===================== Bottom nav ===================== */
.s7f4-bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, #14142e, #07071a);
  border-top: 1px solid var(--s7f4-line);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  padding: 6px 4px 8px;
  z-index: 55;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.45);
}
.s7f4-nav-item {
  flex: 1 1 0;
  background: transparent;
  border: none;
  color: var(--s7f4-muted);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 5px 2px;
  cursor: pointer;
  text-decoration: none;
  border-top: 3px solid transparent;
  transition: color .15s ease, border-color .15s ease;
  min-width: 0;
}
.s7f4-nav-item svg { width: 22px; height: 22px; }
.s7f4-nav-item:hover { color: #fff; text-decoration: none; }
.s7f4-nav-item.is-active {
  color: var(--s7f4-coral);
  border-top: 3px solid var(--s7f4-coral);
}
.s7f4-nav-item.is-promo {
  color: var(--s7f4-coral);
}
.s7f4-nav-item.is-promo svg { filter: drop-shadow(0 0 6px rgba(250,128,114,0.6)); }

/* Keep desktop from stretching the mobile canvas */
@media (min-width: 481px) {
  body { background: #050514; }
}
