/* ============================================================
   ah77.homes - Common Stylesheet (class prefix: w355f-)
   Palette: #F08080 / #C0C0C0 / #FA8072 / #333333 / #FF4500 / #E9967A
   Mobile-first. Root font 62.5% -> 1rem = 10px.
   ============================================================ */

:root {
  --w355f-primary: #F08080;
  --w355f-secondary: #FA8072;
  --w355f-accent: #FF4500;
  --w355f-sand: #E9967A;
  --w355f-silver: #C0C0C0;
  --w355f-bg: #333333;
  --w355f-bg-deep: #2a2a2a;
  --w355f-bg-soft: #3d3d3d;
  --w355f-text: #ffffff;
  --w355f-text-muted: #d8c9c9;
  --w355f-line: rgba(255, 255, 255, 0.12);
  --w355f-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --w355f-radius: 14px;
}

* { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, #3a2f2f 0%, var(--w355f-bg) 40%, var(--w355f-bg-deep) 100%);
  color: var(--w355f-text);
  line-height: 1.5;
  font-size: 1.6rem;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--w355f-secondary); text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 1rem; }

.w355f-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.4rem; }
.w355f-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* ===== Header ===== */
.w355f-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(40, 28, 28, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--w355f-line);
}
.w355f-header-inner {
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem 1.2rem; min-height: 56px;
}
.w355f-brand { display: flex; align-items: center; gap: 0.8rem; }
.w355f-brand img { width: 30px; height: 30px; border-radius: 8px; }
.w355f-brand-name {
  font-size: 1.9rem; font-weight: 800; letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--w355f-primary), var(--w355f-sand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w355f-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.w355f-icon-btn {
  background: transparent; border: 0; color: var(--w355f-text);
  font-size: 1.8rem; cursor: pointer; padding: 0.4rem; border-radius: 8px;
}
.w355f-icon-btn:hover { background: rgba(255, 255, 255, 0.08); }

.w355f-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 0; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 1.35rem; padding: 0.7rem 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-decoration: none; line-height: 1;
}
.w355f-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.w355f-btn-primary {
  background: linear-gradient(135deg, var(--w355f-accent), var(--w355f-primary));
  color: #fff; box-shadow: 0 4px 14px rgba(255, 69, 0, 0.4);
}
.w355f-btn-ghost {
  background: rgba(255, 255, 255, 0.08); color: var(--w355f-text);
  border: 1px solid var(--w355f-line);
}
.w355f-btn-block { width: 100%; justify-content: center; padding: 1rem; font-size: 1.5rem; }
.w355f-link-text {
  color: var(--w355f-secondary); font-weight: 700;
  border-bottom: 1px dashed rgba(250, 128, 114, 0.5);
}

/* ===== Mobile expandable menu ===== */
.w355f-mobile-menu {
  position: fixed; top: 56px; left: 0; right: 0;
  background: rgba(40, 28, 28, 0.98);
  border-bottom: 1px solid var(--w355f-line);
  padding: 0.6rem 1.2rem 1rem;
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  z-index: 9999;
}
.w355f-mobile-menu.w355f-menu-open { max-height: 420px; padding: 0.8rem 1.2rem 1.2rem; }
.w355f-mobile-menu a {
  display: block; padding: 0.75rem 0.4rem;
  color: var(--w355f-text); border-bottom: 1px solid var(--w355f-line);
  font-size: 1.4rem;
}
.w355f-mobile-menu a:last-child { border-bottom: 0; }
.w355f-mobile-menu a:hover { color: var(--w355f-primary); }

/* ===== Page body offset for fixed header ===== */
.w355f-main { padding-top: 70px; padding-bottom: 80px; }

/* ===== Hero / Carousel ===== */
.w355f-hero { margin-top: 1rem; }
.w355f-carousel {
  position: relative; border-radius: var(--w355f-radius); overflow: hidden;
  box-shadow: var(--w355f-shadow); background: #000;
}
.w355f-carousel-track { position: relative; }
.w355f-carousel-slide {
  display: none; position: relative; cursor: pointer;
}
.w355f-carousel-slide.w355f-slide-active { display: block; }
.w355f-carousel-slide img { width: 100%; height: 190px; object-fit: cover; }
.w355f-carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1rem 1.2rem; color: #fff;
  background: linear-gradient(0deg, rgba(0,0,0,0.78), transparent);
}
.w355f-carousel-caption strong { font-size: 1.6rem; display: block; }
.w355f-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.w355f-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.45); border: 0; cursor: pointer; padding: 0;
}
.w355f-carousel-dot.w355f-dot-active { background: var(--w355f-primary); }

/* ===== Section ===== */
.w355f-section { margin: 2rem 0; }
.w355f-section-title {
  font-size: 1.8rem; margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.w355f-section-title .w355f-bar {
  width: 4px; height: 1.8rem; border-radius: 2px;
  background: linear-gradient(var(--w355f-primary), var(--w355f-accent));
}
.w355f-lead { color: var(--w355f-text-muted); font-size: 1.4rem; margin-bottom: 1rem; }

/* ===== H1 ===== */
.w355f-h1 {
  font-size: 2.2rem; margin: 1.4rem 0 1rem;
  background: linear-gradient(90deg, #fff, var(--w355f-sand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Category heading ===== */
.w355f-cat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 1.6rem 0 0.8rem;
}
.w355f-cat-head h3 { font-size: 1.5rem; margin: 0; color: var(--w355f-primary); }

/* ===== Game grid ===== */
.w355f-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem;
}
.w355f-card {
  background: var(--w355f-bg-soft); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--w355f-line); text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer;
}
.w355f-card:hover { transform: translateY(-2px); box-shadow: var(--w355f-shadow); }
.w355f-card img { width: 100%; height: 72px; object-fit: cover; }
.w355f-card-name {
  font-size: 1.05rem; padding: 0.35rem 0.3rem 0.55rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--w355f-text);
}

/* ===== Feature / content cards ===== */
.w355f-cards-row { display: grid; grid-template-columns: 1fr; gap: 0.9rem; }
.w355f-panel {
  background: var(--w355f-bg-soft); border: 1px solid var(--w355f-line);
  border-radius: var(--w355f-radius); padding: 1.2rem;
}
.w355f-panel h2, .w355f-panel h3 { color: var(--w355f-sand); }
.w355f-panel p { color: var(--w355f-text-muted); margin: 0 0 0.6rem; font-size: 1.4rem; }
.w355f-panel ul { margin: 0; padding-left: 1.4rem; color: var(--w355f-text-muted); }
.w355f-panel li { margin-bottom: 0.4rem; font-size: 1.4rem; }

.w355f-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.w355f-mini {
  background: rgba(255,255,255,0.04); border: 1px solid var(--w355f-line);
  border-radius: 12px; padding: 0.9rem; text-align: center;
}
.w355f-mini .w355f-num {
  font-size: 1.9rem; font-weight: 800; color: var(--w355f-primary);
}
.w355f-mini .w355f-lbl { font-size: 1.15rem; color: var(--w355f-text-muted); }

/* ===== Testimonials ===== */
.w355f-quote {
  background: var(--w355f-bg-soft); border-left: 4px solid var(--w355f-secondary);
  padding: 0.9rem 1rem; border-radius: 8px; margin-bottom: 0.7rem;
}
.w355f-quote p { margin: 0 0 0.3rem; font-size: 1.35rem; }
.w355f-quote cite { color: var(--w355f-silver); font-style: normal; font-size: 1.15rem; }

/* ===== Payment chips ===== */
.w355f-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.w355f-chip {
  background: rgba(255,255,255,0.06); border: 1px solid var(--w355f-line);
  padding: 0.5rem 0.9rem; border-radius: 999px; font-size: 1.2rem; color: var(--w355f-text);
}

/* ===== CTA banner ===== */
.w355f-cta {
  background: linear-gradient(135deg, var(--w355f-accent), var(--w355f-primary));
  border-radius: var(--w355f-radius); padding: 1.4rem; text-align: center;
  color: #fff; margin: 1.6rem 0;
}
.w355f-cta h3 { color: #fff; margin-bottom: 0.4rem; font-size: 1.7rem; }
.w355f-cta p { margin: 0 0 0.9rem; font-size: 1.35rem; opacity: 0.95; }

/* ===== Reveal animation ===== */
.w355f-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.w355f-revealed { opacity: 1; transform: none; }

/* ===== Footer ===== */
.w355f-footer {
  background: #241c1c; border-top: 1px solid var(--w355f-line);
  padding: 1.6rem 1.4rem 2rem; margin-top: 2rem; color: var(--w355f-text-muted);
}
.w355f-footer-inner { max-width: 430px; margin: 0 auto; }
.w355f-footer h4 { color: var(--w355f-text); margin: 0.4rem 0 0.5rem; font-size: 1.4rem; }
.w355f-footer p { font-size: 1.3rem; margin: 0 0 0.8rem; }
.w355f-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.6rem 0 1rem;
}
.w355f-footer-links a { font-size: 1.25rem; color: var(--w355f-silver); }
.w355f-footer-links a:hover { color: var(--w355f-primary); }
.w355f-footer-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 1rem; }
.w355f-copyright { font-size: 1.15rem; color: var(--w355f-silver); border-top: 1px solid var(--w355f-line); padding-top: 0.8rem; }

/* ===== Bottom nav ===== */
.w355f-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(34, 24, 24, 0.98);
  border-top: 1px solid var(--w355f-line);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 60px;
}
.w355f-bottomnav-btn {
  flex: 1; min-width: 60px; min-height: 60px;
  background: transparent; border: 0; color: var(--w355f-text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; cursor: pointer; padding: 4px 0;
  transition: color 0.18s ease, transform 0.18s ease;
}
.w355f-bottomnav-btn .w355f-ic { font-size: 22px; line-height: 1; }
.w355f-bottomnav-btn .w355f-tx { font-size: 1rem; line-height: 1; }
.w355f-bottomnav-btn:hover { color: var(--w355f-primary); transform: translateY(-1px); }
.w355f-bottomnav-active { color: var(--w355f-primary); }
.w355f-bottomnav-active .w355f-ic { transform: scale(1.12); }

/* ===== Desktop adjustments ===== */
@media (min-width: 769px) {
  body { background: linear-gradient(180deg, #3a2f2f, #2a2a2a); }
  .w355f-bottomnav { display: none; }
  .w355f-main { padding-bottom: 2rem; }
  .w355f-mobile-menu { display: none; }
}

/* ===== Small screens fine-tune ===== */
@media (max-width: 360px) {
  .w355f-grid { grid-template-columns: repeat(3, 1fr); }
  .w355f-brand-name { font-size: 1.7rem; }
}
