/*!
 * phspin app apk - theme.css
 * Mobile-first responsive styles. Max-width: 430px reference.
 * All custom classes use the v960- prefix. Palette: #FFE4B5 / #3A3A3A / #FFC0CB / #DCDCDC / #F0F0F0
 */
:root {
  --v960-primary: #FFE4B5;
  --v960-dark: #3A3A3A;
  --v960-darker: #2a2a2a;
  --v960-pink: #FFC0CB;
  --v960-gainsboro: #DCDCDC;
  --v960-smoke: #F0F0F0;
  --v960-gold: #FFD27A;
  --v960-shadow: 0 0.4rem 1.4rem rgba(0,0,0,.18);
  --v960-radius: 1.2rem;
  --v960-radius-sm: 0.8rem;
  --v960-header-h: 5.8rem;
  --v960-bottom-h: 6.4rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(180deg, var(--v960-dark) 0%, #1f1f1f 100%);
  color: var(--v960-smoke);
  line-height: 1.5rem;
  font-size: 1.5rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--v960-primary); text-decoration: none; }
.v960-no-scroll { overflow: hidden; }

/* ============ Layout containers ============ */
.v960-wrapper { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.4rem; position: relative; }
.v960-section { padding: 3.2rem 0 1.6rem; }
.v960-section-title {
  font-size: 2rem; font-weight: 700; margin-bottom: 1.2rem;
  color: var(--v960-primary); display: flex; align-items: center; gap: 0.8rem;
}
.v960-section-title::before {
  content: ''; width: 0.4rem; height: 2rem;
  background: var(--v960-gold); border-radius: 0.3rem;
}

/* ============ Header ============ */
.v960-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--v960-header-h);
  background: linear-gradient(90deg, #2a2a2a 0%, #3A3A3A 100%);
  border-bottom: 0.2rem solid var(--v960-primary);
  z-index: 1000; transition: box-shadow 0.3s ease;
}
.v960-header.v960-is-scrolled { box-shadow: 0 0.4rem 1.4rem rgba(0,0,0,.35); }
.v960-header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.v960-brand {
  display: flex; align-items: center; gap: 0.8rem; color: var(--v960-primary);
  font-weight: 700; font-size: 1.7rem; flex: 1; min-width: 0;
}
.v960-brand img {
  width: 3.2rem; height: 3.2rem; border-radius: 0.6rem;
  border: 0.15rem solid var(--v960-primary);
}
.v960-brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v960-header-actions { display: flex; align-items: center; gap: 0.6rem; }

/* ============ Buttons ============ */
.v960-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 3.6rem; padding: 0 1.4rem; font-size: 1.35rem; font-weight: 700;
  border-radius: 2rem; border: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.v960-btn:active { transform: scale(0.96); }
.v960-btn-primary { background: linear-gradient(135deg, var(--v960-gold), #ff9f43); color: #1f1f1f; }
.v960-btn-secondary { background: transparent; color: var(--v960-primary); border: 0.15rem solid var(--v960-primary); }
.v960-btn-pink { background: linear-gradient(135deg, var(--v960-pink), #ff8aa6); color: #1f1f1f; }
.v960-btn-lg { min-height: 4.8rem; font-size: 1.6rem; padding: 0 2.4rem; }
.v960-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 4rem; height: 4rem; border-radius: 1rem;
  background: rgba(255,228,181,.12); color: var(--v960-primary);
  border: none; cursor: pointer; font-size: 1.8rem;
}

/* ============ Hero / Carousel ============ */
.v960-hero { margin-top: var(--v960-header-h); padding-top: 1.4rem; }
.v960-carousel {
  position: relative; overflow: hidden; border-radius: var(--v960-radius);
  box-shadow: var(--v960-shadow); background: #111;
}
.v960-carousel-track { display: flex; transition: transform 0.6s ease; will-change: transform; }
.v960-carousel-slide { flex: 0 0 100%; position: relative; cursor: pointer; }
.v960-carousel-slide img { width: 100%; height: 20rem; object-fit: cover; }
.v960-carousel-caption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
  color: var(--v960-primary); padding: 1.2rem; border-radius: 0.8rem;
  font-weight: 700; font-size: 1.4rem;
}
.v960-carousel-dots { display: flex; justify-content: center; gap: 0.6rem; padding: 0.8rem 0; }
.v960-carousel-dot {
  width: 0.9rem; height: 0.9rem; border-radius: 50%;
  background: rgba(255,228,181,.35); cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}
.v960-carousel-dot.v960-is-active { background: var(--v960-gold); width: 2.4rem; border-radius: 0.5rem; }

/* ============ Hero CTA banner ============ */
.v960-hero-cta {
  margin-top: 1.6rem; padding: 1.6rem;
  background: linear-gradient(135deg, #444 0%, #2a2a2a 100%);
  border-radius: var(--v960-radius);
  border: 0.1rem solid rgba(255,228,181,.25); text-align: center;
}
.v960-hero-cta h1 { font-size: 2.2rem; color: var(--v960-primary); margin-bottom: 0.6rem; line-height: 1.25; }
.v960-hero-cta p { color: var(--v960-gainsboro); margin-bottom: 1.2rem; font-size: 1.35rem; }

/* ============ Game grid ============ */
.v960-chip-bar { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.4rem 0 1rem; scrollbar-width: none; }
.v960-chip-bar::-webkit-scrollbar { display: none; }
.v960-chip {
  padding: 0.6rem 1.2rem; border-radius: 2rem; background: #2a2a2a;
  color: var(--v960-gainsboro); font-size: 1.25rem; cursor: pointer;
  white-space: nowrap; border: 0.1rem solid transparent;
}
.v960-chip.v960-is-active { background: var(--v960-primary); color: #1f1f1f; font-weight: 700; }
.v960-game-group { margin-bottom: 1.6rem; }
.v960-game-group-title {
  font-size: 1.7rem; font-weight: 700; margin: 1.4rem 0 1rem;
  color: var(--v960-pink); display: flex; align-items: center; gap: 0.6rem;
}
.v960-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.v960-tile {
  background: #2a2a2a; border-radius: var(--v960-radius-sm); padding: 0.6rem;
  text-align: center; cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 0.1rem solid rgba(255,228,181,.1);
}
.v960-tile:hover, .v960-tile:active {
  transform: translateY(-0.3rem);
  box-shadow: 0 0.5rem 1.2rem rgba(255,210,122,.2);
  border-color: var(--v960-primary);
}
.v960-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 0.6rem; margin-bottom: 0.4rem; }
.v960-tile-name {
  font-size: 1.1rem; color: var(--v960-smoke); line-height: 1.3;
  height: 2.8rem; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ============ Cards ============ */
.v960-card {
  background: #2a2a2a; border-radius: var(--v960-radius); padding: 1.6rem;
  border: 0.1rem solid rgba(255,228,181,.15);
  box-shadow: var(--v960-shadow); margin-bottom: 1.4rem;
}
.v960-card h2, .v960-card h3 { color: var(--v960-primary); margin-bottom: 0.8rem; }
.v960-card h2 { font-size: 1.8rem; }
.v960-card h3 { font-size: 1.5rem; }
.v960-card p { color: var(--v960-gainsboro); margin-bottom: 0.8rem; }
.v960-card a { color: var(--v960-gold); font-weight: 700; }
.v960-card a:hover { text-decoration: underline; }
.v960-list { list-style: none; padding: 0; }
.v960-list li {
  padding: 0.6rem 0;
  border-bottom: 0.1rem dashed rgba(220,220,220,.18);
  color: var(--v960-gainsboro);
}
.v960-list li:last-child { border-bottom: none; }

/* ============ Rows / KPIs / Winners ============ */
.v960-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin: 0.8rem 0; }
.v960-row > div {
  background: #222; padding: 0.8rem; border-radius: 0.6rem;
  text-align: center; font-size: 1.1rem; color: var(--v960-smoke);
}
.v960-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; margin: 0.8rem 0; }
.v960-kpi div { background: #222; border-radius: 0.6rem; padding: 0.8rem; text-align: center; }
.v960-kpi strong { display: block; color: var(--v960-gold); font-size: 1.5rem; }
.v960-kpi small { color: var(--v960-gainsboro); font-size: 1.05rem; }
.v960-winners { display: flex; flex-direction: column; gap: 0.5rem; }
.v960-winner {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0.8rem; background: #222; border-radius: 0.6rem; font-size: 1.2rem;
}
.v960-winner span:last-child { color: var(--v960-gold); font-weight: 700; }
.v960-reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 0.6s ease, transform 0.6s ease; }
.v960-reveal.v960-is-visible { opacity: 1; transform: translateY(0); }

/* ============ Mobile menu ============ */
.v960-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; z-index: 9998;
  transition: opacity 0.3s ease;
}
.v960-overlay.v960-is-visible { opacity: 1; pointer-events: auto; }
.v960-mobile-menu {
  position: fixed; top: 0; right: -85%;
  width: 80%; max-width: 32rem; height: 100%;
  background: linear-gradient(180deg, #2a2a2a 0%, #1a1a1a 100%);
  z-index: 9999; padding: 2.4rem 1.6rem;
  transition: right 0.3s ease; overflow-y: auto;
  border-left: 0.2rem solid var(--v960-primary);
}
.v960-mobile-menu.v960-is-open { right: 0; }
.v960-mobile-menu h4 {
  color: var(--v960-primary); font-size: 1.4rem; margin: 1.6rem 0 0.8rem;
  text-transform: uppercase; letter-spacing: 0.1rem;
}
.v960-mobile-menu a {
  display: block; padding: 0.9rem 0.8rem; color: var(--v960-smoke);
  border-bottom: 0.1rem dashed rgba(220,220,220,.15); font-size: 1.3rem;
}
.v960-mobile-menu a:hover { color: var(--v960-gold); background: rgba(255,210,122,.08); }
.v960-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  background: rgba(255,255,255,.1); color: var(--v960-primary);
  border: none; font-size: 1.6rem; cursor: pointer;
}

/* ============ Footer ============ */
.v960-footer {
  background: #1a1a1a; padding: 3rem 0 9rem; margin-top: 2rem;
  border-top: 0.2rem solid var(--v960-primary);
}
.v960-footer h4 { color: var(--v960-primary); margin-bottom: 0.6rem; font-size: 1.4rem; }
.v960-footer p { color: var(--v960-gainsboro); font-size: 1.25rem; margin-bottom: 1rem; }
.v960-footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0; }
.v960-footer-links a {
  padding: 0.4rem 0.8rem; background: rgba(255,228,181,.08);
  border-radius: 0.6rem; font-size: 1.15rem;
}
.v960-footer-links a:hover { background: var(--v960-primary); color: #1f1f1f; }
.v960-footer-bottom {
  text-align: center; color: #888; font-size: 1.1rem;
  margin-top: 1.6rem; border-top: 0.1rem solid #333; padding-top: 1.4rem;
}

/* ============ Mobile bottom nav ============ */
.v960-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: var(--v960-bottom-h);
  background: linear-gradient(180deg, #2f2f2f 0%, #1a1a1a 100%);
  border-top: 0.15rem solid var(--v960-primary);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 1000; box-shadow: 0 -0.3rem 1rem rgba(0,0,0,.35);
}
.v960-bottom-nav-btn {
  flex: 1; min-width: 6rem; min-height: 6rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3rem; color: var(--v960-gainsboro); font-size: 1.05rem;
  text-decoration: none; background: transparent; border: none;
  cursor: pointer; transition: color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.v960-bottom-nav-btn i,
.v960-bottom-nav-btn .material-icons,
.v960-bottom-nav-btn ion-icon,
.v960-bottom-nav-btn bi { font-size: 2.2rem; }
.v960-bottom-nav-btn:hover, .v960-bottom-nav-btn:active { color: var(--v960-primary); transform: translateY(-0.2rem); }
.v960-bottom-nav-btn.v960-is-current { color: var(--v960-gold); }
.v960-bottom-nav-btn.v960-is-current::after {
  content: ''; width: 1.6rem; height: 0.3rem;
  background: var(--v960-gold); border-radius: 0.2rem; margin-top: 0.2rem;
}
.v960-bottom-nav-promo {
  background: linear-gradient(135deg, var(--v960-gold), var(--v960-pink));
  color: #1f1f1f !important; border-radius: 50%;
  width: 5rem; height: 5rem; margin-top: -2.5rem;
  box-shadow: 0 0.3rem 0.8rem rgba(255,210,122,.5);
  font-weight: 800; font-size: 1rem;
}
.v960-bottom-nav-promo i { font-size: 2rem !important; }

/* ============ Utility ============ */
.v960-mt-1 { margin-top: 0.5rem; }
.v960-mt-2 { margin-top: 1rem; }
.v960-mt-3 { margin-top: 1.6rem; }
.v960-text-center { text-align: center; }
.v960-text-pink { color: var(--v960-pink); }
.v960-text-gold { color: var(--v960-gold); }
.v960-text-bold { font-weight: 800; }
.v960-tag { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 0.4rem; background: var(--v960-pink); color: #1f1f1f; font-size: 1rem; font-weight: 700; }

/* ============ Responsive ============ */
@media (min-width: 769px) {
  .v960-bottom-nav { display: none; }
  .v960-wrapper { max-width: 900px; }
  .v960-grid { grid-template-columns: repeat(6, 1fr); }
  .v960-row { grid-template-columns: repeat(6, 1fr); }
  .v960-mobile-menu { display: none; }
  .v960-overlay { display: none; }
}
@media (min-width: 431px) and (max-width: 768px) {
  .v960-grid { grid-template-columns: repeat(4, 1fr); }
  .v960-row { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 768px) {
  body { padding-bottom: 8rem; }
  main { padding-bottom: 8rem; }
}
