/* =========================================================
 * win ph777 login - theme-f394.css
 * Shared styles for winph777login.click
 * All custom classes / variables use the v4ca- prefix
 * Palette: #F0E68C (khaki) | #FAFAFA (off-white) | #1A1A2E (ink)
 * Mobile-first, max-width 430px for the app shell
 * ========================================================= */

:root {
  --v4ca-primary: #F0E68C;
  --v4ca-primary-strong: #FFD86B;
  --v4ca-bg: #1A1A2E;
  --v4ca-bg-2: #21223e;
  --v4ca-bg-3: #2c2d4f;
  --v4ca-text: #FAFAFA;
  --v4ca-text-dim: #b9bac6;
  --v4ca-border: rgba(240, 230, 140, 0.22);
  --v4ca-success: #4ade80;
  --v4ca-danger: #f87171;
  --v4ca-gold: #f5c542;
  --v4ca-radius: 12px;
  --v4ca-radius-sm: 8px;
  --v4ca-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --v4ca-header-h: 56px;
  --v4ca-bottom-h: 64px;
}

/* ---------- Base ---------- */
* { 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, sans-serif;
  font-size: 1.5rem; line-height: 1.5;
  color: var(--v4ca-text);
  background: var(--v4ca-bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(240, 230, 140, 0.10), transparent 38%),
    radial-gradient(circle at 88% 92%, rgba(240, 230, 140, 0.08), transparent 40%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--v4ca-primary); text-decoration: none; }
a:hover { color: var(--v4ca-primary-strong); }
.v4ca-no-scroll { overflow: hidden; }

/* ---------- Layout ---------- */
.v4ca-wrapper { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
.v4ca-container { padding: 0 1.4rem; }
main {
  padding-top: calc(var(--v4ca-header-h) + 8px);
  padding-bottom: calc(var(--v4ca-bottom-h) + 16px);
}

/* ---------- Header ---------- */
.v4ca-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--v4ca-header-h); z-index: 1000;
  background: linear-gradient(135deg, #14142a 0%, #1c1d36 100%);
  border-bottom: 1px solid var(--v4ca-border);
  transition: box-shadow .3s ease;
}
.v4ca-header-shadow { box-shadow: 0 4px 18px rgba(0,0,0,0.45); }
.v4ca-header-inner {
  max-width: 430px; margin: 0 auto; height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem;
}
.v4ca-brand { display: flex; align-items: center; gap: 0.8rem; color: var(--v4ca-text); }
.v4ca-brand img { width: 28px; height: 28px; border-radius: 6px; }
.v4ca-brand-name {
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: 0.2px; text-transform: lowercase;
}
.v4ca-brand-name b { color: var(--v4ca-primary); }
.v4ca-header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* ---------- Buttons ---------- */
.v4ca-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem; border: none; cursor: pointer;
  font-weight: 700; font-size: 1.3rem;
  border-radius: 999px; padding: 0.7rem 1.4rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.v4ca-btn:active { transform: scale(0.96); }
.v4ca-btn-register { background: linear-gradient(135deg, #FFD86B 0%, #f0a04b 100%); color: #1a1a2e; }
.v4ca-btn-login { background: transparent; color: var(--v4ca-text); border: 1.5px solid var(--v4ca-primary); }
.v4ca-btn-cta {
  background: linear-gradient(135deg, #FFD86B 0%, #ff7e5f 100%); color: #1a1a2e;
  padding: 1.2rem 2.2rem; font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(255, 126, 95, 0.35);
}
.v4ca-btn-ghost { background: transparent; color: var(--v4ca-primary); border: 1.5px solid var(--v4ca-border); }
.v4ca-ripple-circle {
  position: absolute; border-radius: 50%; transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  animation: v4ca-ripple-anim 0.6s linear; pointer-events: none;
}
@keyframes v4ca-ripple-anim { to { transform: scale(2.5); opacity: 0; } }

.v4ca-menu-toggle {
  background: transparent; border: 0; color: var(--v4ca-text);
  font-size: 2rem; cursor: pointer;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.v4ca-menu-toggle:hover { background: rgba(240, 230, 140, 0.12); }

/* ---------- Mobile slide menu ---------- */
.v4ca-mobile-menu {
  position: fixed; top: 0; right: 0;
  width: 82%; max-width: 360px; height: 100vh;
  background: #15162a; z-index: 9999;
  transform: translateX(110%); transition: transform .3s ease;
  padding: 6.5rem 1.6rem 2rem; overflow-y: auto;
  border-left: 1px solid var(--v4ca-border);
  box-shadow: -8px 0 30px rgba(0,0,0,0.45);
}
.v4ca-mobile-menu.v4ca-is-open { transform: translateX(0); }
.v4ca-mobile-menu h3 {
  font-size: 1.4rem; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--v4ca-primary);
  margin: 1.6rem 0 0.6rem;
}
.v4ca-mobile-menu a {
  display: block; color: var(--v4ca-text);
  padding: 1rem 0.8rem;
  border-bottom: 1px dashed rgba(240, 230, 140, 0.14);
  font-size: 1.45rem;
}
.v4ca-mobile-menu a:hover { background: rgba(240,230,140,0.06); }
.v4ca-menu-close {
  position: absolute; top: 1rem; right: 1.2rem;
  background: transparent; border: 0; color: var(--v4ca-text);
  font-size: 2.2rem; cursor: pointer;
}

/* ---------- Hero carousel ---------- */
.v4ca-hero {
  position: relative; margin: 1rem 0 0;
  border-radius: var(--v4ca-radius); overflow: hidden;
  box-shadow: var(--v4ca-shadow);
}
.v4ca-hero-track { position: relative; aspect-ratio: 16 / 9; }
.v4ca-hero-slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity .6s ease;
}
.v4ca-hero-slide.v4ca-is-active { opacity: 1; }
.v4ca-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.v4ca-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,25,0.85) 0%, rgba(10,10,25,0.15) 60%);
}
.v4ca-hero-caption {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  color: var(--v4ca-text);
}
.v4ca-hero-caption h2 { margin: 0 0 0.4rem; font-size: 1.7rem; font-weight: 800; }
.v4ca-hero-caption p { margin: 0; font-size: 1.25rem; color: var(--v4ca-text-dim); }
.v4ca-hero-dots {
  display: flex; gap: 6px; justify-content: center;
  padding: 0.6rem 0; background: rgba(0,0,0,0.25);
}
.v4ca-hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.35); cursor: pointer; border: 0;
}
.v4ca-hero-dot.v4ca-is-active { background: var(--v4ca-primary); }

/* ---------- Sections / headings ---------- */
.v4ca-section { padding: 2rem 0 0.4rem; }
.v4ca-section-title {
  display: flex; align-items: center; gap: 0.8rem;
  margin: 0 0 1.2rem; font-size: 1.6rem; font-weight: 800;
}
.v4ca-section-title::before {
  content: ''; width: 4px; height: 22px; border-radius: 4px;
  background: linear-gradient(180deg, var(--v4ca-primary), #ff7e5f);
}
.v4ca-section-title small {
  margin-left: auto; font-size: 1.15rem;
  color: var(--v4ca-primary); font-weight: 600;
}

/* ---------- Game grid ---------- */
.v4ca-game-block { margin-bottom: 0.6rem; }
.v4ca-game-cat {
  font-size: 1.35rem; color: var(--v4ca-primary); font-weight: 700;
  margin: 0.4rem 0 1rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.v4ca-game-cat .material-icons, .v4ca-game-cat i { font-size: 18px; }
.v4ca-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.v4ca-card {
  background: var(--v4ca-bg-2); border: 1px solid var(--v4ca-border);
  border-radius: var(--v4ca-radius-sm); padding: 0.6rem;
  text-align: center; cursor: pointer; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.v4ca-card:hover { transform: translateY(-3px); box-shadow: var(--v4ca-shadow); }
.v4ca-card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 6px; background: #0e0f1f;
}
.v4ca-card-name {
  font-size: 1.15rem; margin: 0.5rem 0 0; color: var(--v4ca-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.v4ca-card-tag {
  display: inline-block; font-size: 0.95rem;
  padding: 0.1rem 0.6rem; border-radius: 4px;
  background: rgba(240, 230, 140, 0.15);
  color: var(--v4ca-primary); margin-top: 0.3rem;
}

/* ---------- Content cards / blocks ---------- */
.v4ca-panel {
  background: var(--v4ca-bg-2); border: 1px solid var(--v4ca-border);
  border-radius: var(--v4ca-radius);
  padding: 1.4rem; margin-bottom: 1.2rem;
}
.v4ca-panel h2, .v4ca-panel h3 { margin: 0 0 0.6rem; }
.v4ca-panel p { margin: 0 0 0.8rem; color: var(--v4ca-text-dim); }
.v4ca-panel b, .v4ca-panel strong { color: var(--v4ca-primary); }
.v4ca-bullets { padding-left: 1.4rem; margin: 0.4rem 0; color: var(--v4ca-text-dim); }
.v4ca-bullets li { margin-bottom: 0.4rem; }

.v4ca-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem; margin: 0.6rem 0;
}
.v4ca-list .v4ca-list-item {
  background: var(--v4ca-bg-3); border-radius: var(--v4ca-radius-sm);
  padding: 0.7rem 0.9rem; font-size: 1.2rem;
}
.v4ca-list .v4ca-list-item b { color: var(--v4ca-primary); display: block; }

.v4ca-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem; margin: 0.8rem 0;
}
.v4ca-stat {
  background: var(--v4ca-bg-3); border-radius: var(--v4ca-radius-sm);
  padding: 0.8rem 0.4rem; text-align: center;
}
.v4ca-stat b { display: block; color: var(--v4ca-primary); font-size: 1.7rem; }
.v4ca-stat span { font-size: 1.05rem; color: var(--v4ca-text-dim); }

.v4ca-testi {
  background: var(--v4ca-bg-2); border-left: 3px solid var(--v4ca-primary);
  padding: 1rem 1.2rem; border-radius: 6px; margin-bottom: 0.8rem;
}
.v4ca-testi p { margin: 0 0 0.4rem; color: var(--v4ca-text); font-style: italic; }
.v4ca-testi small { color: var(--v4ca-primary); }

.v4ca-promo-link {
  color: var(--v4ca-primary-strong); font-weight: 700;
  cursor: pointer; text-decoration: underline;
}

/* ---------- Footer ---------- */
.v4ca-footer {
  background: #11121f; border-top: 1px solid var(--v4ca-border);
  margin-top: 2rem;
  padding: 2rem 0 calc(var(--v4ca-bottom-h) + 2rem);
}
.v4ca-footer h4 {
  color: var(--v4ca-primary); font-size: 1.3rem;
  margin: 0 0 0.6rem;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.v4ca-footer p { color: var(--v4ca-text-dim); margin: 0 0 1rem; font-size: 1.25rem; }
.v4ca-footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0 0 1.2rem; }
.v4ca-footer-links a { color: var(--v4ca-text-dim); font-size: 1.2rem; }
.v4ca-footer-links a:hover { color: var(--v4ca-primary); }
.v4ca-copyright {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1rem; color: var(--v4ca-text-dim);
  font-size: 1.1rem; text-align: center;
}

/* ---------- Mobile bottom nav ---------- */
.v4ca-bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--v4ca-bottom-h); z-index: 1000;
  background: linear-gradient(180deg, #1c1d36 0%, #11121f 100%);
  border-top: 1px solid var(--v4ca-border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.v4ca-bottomnav-link {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  color: var(--v4ca-text-dim); text-decoration: none;
  font-size: 1rem; padding: 0.3rem 0;
  transition: color .2s ease, transform .15s ease;
}
.v4ca-bottomnav-link:active { transform: scale(0.92); }
.v4ca-bottomnav-link .material-icons,
.v4ca-bottomnav-link i,
.v4ca-bottomnav-link .material-symbols-outlined { font-size: 22px; }
.v4ca-bottomnav-link.v4ca-bottomnav-current,
.v4ca-bottomnav-link:hover { color: var(--v4ca-primary); }
.v4ca-bottomnav-link.v4ca-bottomnav-current::after {
  content: ''; width: 22px; height: 2px;
  background: var(--v4ca-primary); border-radius: 2px; margin-top: 1px;
}
.v4ca-bottomnav-badge {
  display: inline-block; min-width: 16px; height: 16px;
  padding: 0 4px; background: var(--v4ca-danger); color: #fff;
  border-radius: 8px; font-size: 0.9rem; line-height: 16px;
  text-align: center; position: absolute;
  transform: translate(8px, -8px);
}

/* ---------- Scroll-to-top & reveal ---------- */
.v4ca-totop {
  position: fixed; right: 1.2rem;
  bottom: calc(var(--v4ca-bottom-h) + 1rem);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--v4ca-primary); color: #1a1a2e;
  border: 0; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; z-index: 999;
}
.v4ca-totop.v4ca-is-visible { opacity: 1; pointer-events: auto; }
.v4ca-reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.v4ca-reveal.v4ca-revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .v4ca-bottomnav { display: none; }
  body { padding-bottom: 0; }
  main { padding-bottom: 24px; }
  .v4ca-wrapper { max-width: 760px; }
  .v4ca-header-inner { max-width: 760px; }
  .v4ca-grid { grid-template-columns: repeat(5, 1fr); }
  .v4ca-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 360px) {
  .v4ca-grid { grid-template-columns: repeat(2, 1fr); }
  .v4ca-brand-name { display: none; }
}
