/* ph4.homes layout stylesheet
 * Every class uses the s273- prefix to avoid CSS collisions.
 * Mobile-first design with a dark casino theme and warm gold accents.
 * Color tokens: #0D1117 (bg) | #BBBBBB (text) | #DEB887 / #D2B48C / #A0522D (accents)
 */
:root {
  --s273-bg: #0D1117;
  --s273-bg-soft: #161B22;
  --s273-bg-card: #1C2230;
  --s273-text: #BBBBBB;
  --s273-text-bright: #F5F1E8;
  --s273-accent: #DEB887;
  --s273-accent-soft: #D2B48C;
  --s273-accent-strong: #A0522D;
  --s273-border: rgba(222, 184, 135, 0.18);
  --s273-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --s273-radius: 12px;
  --s273-radius-lg: 18px;
  --s273-max-width: 430px;
}

* { 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', Arial, sans-serif;
  background: radial-gradient(circle at top, #1a2030 0%, var(--s273-bg) 70%);
  color: var(--s273-text);
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--s273-accent); text-decoration: none; }
a:hover { color: var(--s273-text-bright); }
button { font-family: inherit; }

.s273-container { width: 100%; max-width: var(--s273-max-width); margin: 0 auto; padding: 0 1.2rem; }
.s273-wrapper { padding-top: 6.4rem; padding-bottom: 8rem; }
.s273-hidden { display: none !important; }

/* ===== Header ===== */
.s273-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(13,17,23,0.96), rgba(13,17,23,0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s273-border);
}
.s273-header-inner {
  max-width: var(--s273-max-width); margin: 0 auto;
  padding: 0.8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
}
.s273-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--s273-text-bright); font-weight: 700; font-size: 1.8rem; }
.s273-logo img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.s273-logo-text {
  background: linear-gradient(135deg, var(--s273-accent), var(--s273-accent-strong));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s273-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.s273-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: none; cursor: pointer; font-weight: 700; font-size: 1.3rem;
  padding: 0.7rem 1.3rem; border-radius: 999px;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  min-height: 3.6rem; text-decoration: none;
}
.s273-btn-primary {
  background: linear-gradient(135deg, var(--s273-accent), var(--s273-accent-strong));
  color: #1a1208; box-shadow: 0 4px 12px rgba(160,82,45,0.4);
}
.s273-btn-primary:hover { transform: translateY(-2px); color: #1a1208; box-shadow: 0 6px 18px rgba(222,184,135,0.5); }
.s273-btn-ghost { background: transparent; color: var(--s273-accent); border: 1px solid var(--s273-border); }
.s273-btn-ghost:hover { background: rgba(222,184,135,0.08); color: var(--s273-text-bright); }
.s273-btn-block { width: 100%; }
.s273-btn-lg { font-size: 1.5rem; padding: 1rem 2rem; min-height: 4.4rem; }

.s273-menu-toggle {
  background: transparent; border: 1px solid var(--s273-border); color: var(--s273-accent);
  width: 3.6rem; height: 3.6rem; border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.s273-menu-toggle:hover { background: rgba(222,184,135,0.1); }

/* ===== Mobile menu ===== */
.s273-menu-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,0.6); opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.s273-menu-overlay.s273-is-visible { opacity: 1; pointer-events: auto; }
.s273-mobile-menu {
  position: fixed; top: 0; right: 0; width: 80%; max-width: 320px; height: 100vh; z-index: 9999;
  background: var(--s273-bg-soft); padding: 2rem 1.6rem;
  transform: translateX(100%); transition: transform .3s ease;
  overflow-y: auto; border-left: 1px solid var(--s273-border);
}
.s273-mobile-menu.s273-is-open { transform: translateX(0); }
.s273-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; }
.s273-menu-head h3 { color: var(--s273-text-bright); font-size: 1.8rem; }
.s273-menu-close { background: transparent; border: none; color: var(--s273-accent); font-size: 2.4rem; cursor: pointer; line-height: 1; }
.s273-mobile-menu nav { display: flex; flex-direction: column; gap: 0.4rem; }
.s273-mobile-menu a, .s273-mobile-menu button {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1rem; color: var(--s273-text);
  border-radius: 10px; border: 1px solid transparent;
  background: transparent; cursor: pointer; font-size: 1.4rem; text-align: left; width: 100%;
}
.s273-mobile-menu a:hover, .s273-mobile-menu button:hover { background: rgba(222,184,135,0.08); color: var(--s273-text-bright); border-color: var(--s273-border); }
.s273-mobile-menu a i, .s273-mobile-menu button i { color: var(--s273-accent); width: 2rem; text-align: center; }
.s273-menu-cta { margin-top: 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }

/* ===== Hero carousel ===== */
.s273-carousel { position: relative; border-radius: var(--s273-radius-lg); overflow: hidden; box-shadow: var(--s273-shadow); margin-bottom: 2rem; }
.s273-carousel-track { position: relative; aspect-ratio: 16 / 9; }
.s273-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; cursor: pointer; }
.s273-carousel-slide.s273-is-active { opacity: 1; position: relative; }
.s273-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.s273-carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 1.4rem; background: linear-gradient(0deg, rgba(13,17,23,0.92), transparent);
  color: var(--s273-text-bright);
}
.s273-carousel-caption h2 { font-size: 1.8rem; margin-bottom: 0.4rem; }
.s273-carousel-caption p { font-size: 1.3rem; color: var(--s273-accent-soft); }
.s273-carousel-dots { position: absolute; bottom: 1rem; right: 1.2rem; display: flex; gap: 0.5rem; }
.s273-carousel-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(245,241,232,0.4); border: none; cursor: pointer; transition: all .3s; padding: 0; }
.s273-carousel-dot.s273-is-active { background: var(--s273-accent); width: 2rem; border-radius: 999px; }

/* ===== Hero text ===== */
.s273-hero-title { font-size: 2.4rem; font-weight: 800; line-height: 1.2; color: var(--s273-text-bright); margin-bottom: 0.8rem; }
.s273-hero-title strong { color: var(--s273-accent); }
.s273-hero-sub { color: var(--s273-text); margin-bottom: 1.6rem; font-size: 1.4rem; line-height: 1.6; }

/* ===== Sections ===== */
.s273-section { margin-bottom: 2.4rem; }
.s273-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; gap: 1rem; }
.s273-section-title { font-size: 1.9rem; font-weight: 700; color: var(--s273-text-bright); display: flex; align-items: center; gap: 0.6rem; }
.s273-section-title i, .s273-section-title .material-symbols-outlined { color: var(--s273-accent); font-size: 2.2rem; }
.s273-section-link { font-size: 1.2rem; color: var(--s273-accent); font-weight: 600; white-space: nowrap; }
.s273-category-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(222,184,135,0.12); color: var(--s273-accent);
  padding: 0.4rem 1rem; border-radius: 999px;
  font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem;
}

/* ===== Game grid ===== */
.s273-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.s273-game-card {
  background: var(--s273-bg-card); border-radius: var(--s273-radius); padding: 0.6rem;
  border: 1px solid var(--s273-border); text-align: center; cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font: inherit; color: inherit;
}
.s273-game-card:hover { transform: translateY(-3px); border-color: var(--s273-accent); box-shadow: 0 6px 16px rgba(0,0,0,0.4); }
.s273-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #0a0d12; }
.s273-game-name { font-size: 1.1rem; color: var(--s273-text); font-weight: 600; line-height: 1.2; word-break: break-word; min-height: 2.6rem; display: flex; align-items: center; }

/* ===== Info cards / modules ===== */
.s273-card {
  background: var(--s273-bg-card); border: 1px solid var(--s273-border);
  border-radius: var(--s273-radius-lg); padding: 1.6rem; margin-bottom: 1.2rem;
}
.s273-card h3 { color: var(--s273-text-bright); font-size: 1.7rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.6rem; }
.s273-card h3 i, .s273-card h3 .material-symbols-outlined { color: var(--s273-accent); font-size: 2rem; }
.s273-card p { color: var(--s273-text); font-size: 1.35rem; line-height: 1.6; margin-bottom: 0.8rem; }
.s273-card p strong { color: var(--s273-accent); }
.s273-card ul, .s273-card ol { padding-left: 1.6rem; color: var(--s273-text); }
.s273-card li { font-size: 1.35rem; line-height: 1.7; margin-bottom: 0.4rem; }
.s273-card li strong { color: var(--s273-accent); }

.s273-faq-item { background: var(--s273-bg-soft); border: 1px solid var(--s273-border); border-radius: 10px; padding: 1.2rem; margin-bottom: 0.8rem; }
.s273-faq-item h4 { color: var(--s273-accent); font-size: 1.4rem; margin-bottom: 0.4rem; }
.s273-faq-item p { color: var(--s273-text); font-size: 1.3rem; line-height: 1.5; }

/* ===== Stats / RTP ===== */
.s273-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.s273-stat { background: var(--s273-bg-soft); border: 1px solid var(--s273-border); border-radius: 10px; padding: 1rem; text-align: center; }
.s273-stat-num { font-size: 1.8rem; font-weight: 800; color: var(--s273-accent); display: block; }
.s273-stat-label { font-size: 1.1rem; color: var(--s273-text); }
.s273-rtp-row { display: flex; align-items: center; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--s273-border); }
.s273-rtp-row:last-child { border-bottom: none; }
.s273-rtp-name { flex: 1; color: var(--s273-text-bright); font-weight: 600; font-size: 1.25rem; }
.s273-rtp-bar { flex: 2; height: 0.8rem; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.s273-rtp-fill { height: 100%; background: linear-gradient(90deg, var(--s273-accent-strong), var(--s273-accent)); border-radius: 999px; }
.s273-rtp-value { width: 5rem; text-align: right; color: var(--s273-accent); font-weight: 700; font-size: 1.25rem; }

/* ===== Testimonials ===== */
.s273-testimonial { background: var(--s273-bg-soft); border: 1px solid var(--s273-border); border-radius: 10px; padding: 1.2rem; margin-bottom: 0.8rem; }
.s273-testimonial-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.s273-avatar { width: 3.2rem; height: 3.2rem; border-radius: 50%; background: linear-gradient(135deg, var(--s273-accent), var(--s273-accent-strong)); display: flex; align-items: center; justify-content: center; color: #1a1208; font-weight: 700; font-size: 1.4rem; }
.s273-testimonial-name { color: var(--s273-text-bright); font-weight: 600; font-size: 1.3rem; }
.s273-testimonial-stars { color: #FFC857; font-size: 1.1rem; }
.s273-testimonial p { color: var(--s273-text); font-size: 1.3rem; font-style: italic; line-height: 1.5; }

/* ===== Payment / app ===== */
.s273-pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.s273-pay-item { background: var(--s273-bg-soft); border: 1px solid var(--s273-border); border-radius: 10px; padding: 1rem 0.5rem; text-align: center; }
.s273-pay-item i, .s273-pay-item .material-symbols-outlined { font-size: 2.2rem; color: var(--s273-accent); }
.s273-pay-item span { display: block; margin-top: 0.4rem; font-size: 1.1rem; color: var(--s273-text); }
.s273-app-row { display: flex; gap: 0.8rem; margin-top: 1rem; }
.s273-app-btn { flex: 1; background: var(--s273-bg-soft); border: 1px solid var(--s273-border); border-radius: 10px; padding: 0.8rem; display: flex; align-items: center; gap: 0.6rem; color: var(--s273-text-bright); cursor: pointer; text-align: left; }
.s273-app-btn i, .s273-app-btn .material-symbols-outlined { font-size: 2rem; color: var(--s273-accent); }
.s273-app-btn small { display: block; font-size: 1rem; color: var(--s273-text); }
.s273-app-btn span { font-size: 1.3rem; font-weight: 700; }

/* ===== Latest winners ===== */
.s273-winner { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid var(--s273-border); }
.s273-winner:last-child { border-bottom: none; }
.s273-winner img { width: 3.2rem; height: 3.2rem; border-radius: 8px; object-fit: cover; background: #0a0d12; }
.s273-winner-info { flex: 1; min-width: 0; }
.s273-winner-name { color: var(--s273-text-bright); font-size: 1.25rem; font-weight: 600; }
.s273-winner-game { color: var(--s273-text); font-size: 1.1rem; }
.s273-winner-amount { color: var(--s273-accent); font-weight: 800; font-size: 1.3rem; white-space: nowrap; }

/* ===== Promo banner / inline links ===== */
.s273-promo-banner {
  background: linear-gradient(135deg, rgba(160,82,45,0.4), rgba(222,184,135,0.18));
  border: 1px solid var(--s273-accent);
  border-radius: var(--s273-radius-lg); padding: 1.6rem; text-align: center; margin-bottom: 1.2rem;
}
.s273-promo-banner h3 { color: var(--s273-text-bright); font-size: 1.8rem; margin-bottom: 0.4rem; }
.s273-promo-banner p { color: var(--s273-accent-soft); margin-bottom: 1rem; }
.s273-text-link { color: var(--s273-accent); font-weight: 700; cursor: pointer; border-bottom: 1px dashed var(--s273-accent); background: transparent; border-top: none; border-left: none; border-right: none; padding: 0; font: inherit; display: inline; }
.s273-text-link:hover { color: var(--s273-text-bright); }

/* ===== Footer ===== */
.s273-footer { background: var(--s273-bg-soft); border-top: 1px solid var(--s273-border); padding: 2.4rem 1.2rem 9rem; margin-top: 2.4rem; }
.s273-footer-inner { max-width: var(--s273-max-width); margin: 0 auto; }
.s273-footer-brand { color: var(--s273-text-bright); font-size: 1.6rem; font-weight: 700; margin-bottom: 0.6rem; }
.s273-footer p { color: var(--s273-text); font-size: 1.25rem; margin-bottom: 1rem; line-height: 1.6; }
.s273-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin-bottom: 1.2rem; }
.s273-footer-links a { color: var(--s273-text); font-size: 1.2rem; padding: 0.3rem 0; }
.s273-footer-links a:hover { color: var(--s273-accent); }
.s273-footer-promos { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.2rem; }
.s273-footer-promos .s273-btn { flex: 1; min-width: 14rem; font-size: 1.2rem; padding: 0.8rem 1rem; }
.s273-footer-copy { color: var(--s273-text); font-size: 1.1rem; border-top: 1px solid var(--s273-border); padding-top: 1rem; text-align: center; }

/* ===== Bottom nav ===== */
.s273-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, rgba(22,27,34,0.98), rgba(13,17,23,1));
  border-top: 1px solid var(--s273-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 6rem; padding-bottom: env(safe-area-inset-bottom, 0);
}
.s273-bottom-nav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem;
  background: transparent; border: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  color: var(--s273-text); position: relative; transition: color .2s; font: inherit;
}
.s273-bottom-nav-btn .material-symbols-outlined,
.s273-bottom-nav-btn i,
.s273-bottom-nav-btn ion-icon { font-size: 2.4rem; }
.s273-bottom-nav-btn span:not(.material-symbols-outlined) { font-size: 1rem; font-weight: 600; }
.s273-bottom-nav-btn:hover { color: var(--s273-accent); }
.s273-bottom-nav-btn.s273-is-current { color: var(--s273-accent); }
.s273-bottom-nav-btn.s273-is-current::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 2.4rem; height: 0.3rem; border-radius: 999px; background: var(--s273-accent);
}
.s273-bottom-nav-btn:active { transform: scale(0.94); }
.s273-bottom-nav-btn.s273-bottom-cta {
  position: relative; top: -1.2rem; margin: 0 0.4rem;
  background: linear-gradient(135deg, var(--s273-accent), var(--s273-accent-strong));
  color: #1a1208; flex: 0 0 4.8rem; width: 4.8rem; height: 4.8rem; min-height: 4.8rem;
  border-radius: 50%; box-shadow: 0 4px 14px rgba(160,82,45,0.5); align-self: center;
}
.s273-bottom-nav-btn.s273-bottom-cta span:not(.material-symbols-outlined) { display: none; }
.s273-bottom-nav-btn.s273-bottom-cta i,
.s273-bottom-nav-btn.s273-bottom-cta ion-icon,
.s273-bottom-nav-btn.s273-bottom-cta .material-symbols-outlined { font-size: 2.6rem; }

/* ===== Back to top ===== */
.s273-back-to-top {
  position: fixed; right: 1.2rem; bottom: 7.4rem; z-index: 999;
  width: 4rem; height: 4rem; border-radius: 50%;
  background: var(--s273-accent-strong); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s;
  box-shadow: var(--s273-shadow);
}
.s273-back-to-top.s273-is-visible { opacity: 1; pointer-events: auto; }
.s273-back-to-top:hover { transform: translateY(-2px); }

/* ===== Desktop / tablet rules ===== */
@media (min-width: 769px) {
  .s273-bottom-nav { display: none; }
  .s273-header-inner { max-width: 960px; }
  .s273-container { max-width: 960px; }
  .s273-footer-inner { max-width: 960px; }
  .s273-footer { padding-bottom: 2.4rem; }
  .s273-wrapper { padding-bottom: 2rem; }
  .s273-game-grid { grid-template-columns: repeat(6, 1fr); }
  .s273-pay-grid { grid-template-columns: repeat(6, 1fr); }
  .s273-stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 481px) and (max-width: 768px) {
  .s273-game-grid { grid-template-columns: repeat(4, 1fr); }
  .s273-pay-grid { grid-template-columns: repeat(4, 1fr); }
}
