/**
 * phopen.cfd - Theme Stylesheet
 * Class prefix: v349-
 * Color palette: #34495E | #FFB3BA | #A9A9A9 | #FFEFD5
 * Mobile-first responsive design (max-width: 430px base)
 */

/* CSS Variables */
:root {
  --v349-primary: #34495E;
  --v349-accent: #FFB3BA;
  --v349-muted: #A9A9A9;
  --v349-light: #FFEFD5;
  --v349-dark: #2c3e50;
  --v349-bg: #1a2530;
  --v349-bg-alt: #243342;
  --v349-text: #FFEFD5;
  --v349-text-muted: #A9A9A9;
  --v349-border: rgba(255,179,186,0.15);
  --v349-radius: 10px;
  --v349-radius-sm: 6px;
  font-size: 62.5%;
}

/* Reset and Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--v349-bg);
  color: var(--v349-text);
  font-size: 1.5rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--v349-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.v349-container { max-width: 430px; margin: 0 auto; padding: 0 12px; width: 100%; }
.v349-wrapper { padding: 0 16px; }

/* ==================== HEADER ==================== */
.v349-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--v349-primary) 0%, var(--v349-dark) 100%);
  border-bottom: 1px solid var(--v349-border);
  height: 56px;
}
.v349-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 430px; margin: 0 auto; padding: 0 12px; height: 56px;
}
.v349-logo-area { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.v349-logo-area img { width: 28px; height: 28px; border-radius: 6px; }
.v349-logo-text { font-size: 1.7rem; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.v349-header-actions { display: flex; align-items: center; gap: 8px; }
.v349-btn-register {
  background: var(--v349-accent); color: var(--v349-primary);
  border: none; padding: 7px 16px; border-radius: 20px;
  font-size: 1.3rem; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}
.v349-btn-register:hover { transform: scale(1.05); box-shadow: 0 2px 10px rgba(255,179,186,0.4); }
.v349-btn-login {
  background: transparent; color: var(--v349-accent);
  border: 1.5px solid var(--v349-accent); padding: 6px 14px; border-radius: 20px;
  font-size: 1.3rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.v349-btn-login:hover { background: rgba(255,179,186,0.1); }
.v349-menu-toggle {
  background: none; border: none; color: var(--v349-accent);
  font-size: 2.2rem; cursor: pointer; padding: 4px; display: flex; align-items: center;
}

/* ==================== MOBILE MENU ==================== */
.v349-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 9998; transition: opacity 0.3s;
}
.v349-overlay-active { display: block; }
.v349-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; height: 100%;
  background: var(--v349-bg-alt); z-index: 9999;
  transition: right 0.3s ease; padding: 20px 0; overflow-y: auto;
}
.v349-menu-active { right: 0; }
.v349-menu-header { display: flex; justify-content: flex-end; padding: 0 16px 16px; }
.v349-menu-close { background: none; border: none; color: var(--v349-accent); font-size: 2.4rem; cursor: pointer; }
.v349-menu-links { list-style: none; }
.v349-menu-links li { border-bottom: 1px solid var(--v349-border); }
.v349-menu-links a {
  display: block; padding: 14px 20px; color: var(--v349-text);
  font-size: 1.5rem; transition: background 0.2s, padding-left 0.2s;
}
.v349-menu-links a:hover { background: rgba(255,179,186,0.08); padding-left: 28px; color: var(--v349-accent); }

/* ==================== CAROUSEL ==================== */
.v349-carousel { position: relative; overflow: hidden; border-radius: var(--v349-radius); margin-top: 64px; }
.v349-carousel-slide {
  display: none; width: 100%; cursor: pointer;
}
.v349-slide-active { display: block; }
.v349-carousel-slide img { width: 100%; height: auto; border-radius: var(--v349-radius); }
.v349-carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  padding: 8px 0; position: absolute; bottom: 8px; left: 0; right: 0;
}
.v349-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); border: none; cursor: pointer; transition: background 0.2s;
}
.v349-dot-active { background: var(--v349-accent); }

/* ==================== SECTIONS ==================== */
.v349-section { padding: 24px 0; }
.v349-section-title {
  font-size: 2rem; font-weight: 700; color: #fff;
  margin-bottom: 16px; padding-bottom: 8px;
  border-bottom: 2px solid var(--v349-accent); display: inline-block;
}
.v349-section-subtitle { font-size: 1.5rem; color: var(--v349-muted); margin-bottom: 12px; }

/* ==================== GAME GRID ==================== */
.v349-game-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.v349-game-item { text-align: center; cursor: pointer; transition: transform 0.15s; }
.v349-game-item:hover { transform: translateY(-2px); }
.v349-game-img {
  width: 100%; aspect-ratio: 1; border-radius: var(--v349-radius-sm);
  object-fit: cover; border: 1.5px solid var(--v349-border);
  transition: border-color 0.2s;
}
.v349-game-item:hover .v349-game-img { border-color: var(--v349-accent); }
.v349-game-name {
  font-size: 1.15rem; color: var(--v349-text-muted);
  margin-top: 4px; line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ==================== CONTENT CARDS ==================== */
.v349-card {
  background: var(--v349-bg-alt); border-radius: var(--v349-radius);
  padding: 20px 16px; margin-bottom: 16px;
  border: 1px solid var(--v349-border);
}
.v349-card-title { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.v349-card-text { font-size: 1.4rem; color: var(--v349-text-muted); line-height: 1.6; }
.v349-card-highlight {
  background: linear-gradient(135deg, rgba(255,179,186,0.12) 0%, rgba(255,239,213,0.08) 100%);
  border-color: rgba(255,179,186,0.25);
}

/* ==================== PROMO CTA ==================== */
.v349-cta-btn {
  display: inline-block; background: linear-gradient(135deg, var(--v349-accent), #ff8a95);
  color: var(--v349-primary); padding: 12px 28px; border-radius: 25px;
  font-size: 1.5rem; font-weight: 700; cursor: pointer; border: none;
  transition: transform 0.15s, box-shadow 0.2s; text-align: center;
}
.v349-cta-btn:hover { transform: scale(1.04); box-shadow: 0 4px 18px rgba(255,179,186,0.35); }
.v349-cta-text {
  color: var(--v349-accent); font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ==================== FOOTER ==================== */
.v349-footer {
  background: var(--v349-dark); padding: 28px 0 24px;
  border-top: 1px solid var(--v349-border); margin-top: 32px;
}
.v349-footer-brand { font-size: 1.3rem; color: var(--v349-text-muted); line-height: 1.6; margin-bottom: 16px; }
.v349-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.v349-footer-link {
  padding: 6px 14px; border: 1px solid var(--v349-border); border-radius: 16px;
  font-size: 1.2rem; color: var(--v349-text-muted); transition: all 0.2s;
}
.v349-footer-link:hover { border-color: var(--v349-accent); color: var(--v349-accent); }
.v349-footer-copy { font-size: 1.2rem; color: var(--v349-muted); text-align: center; margin-top: 12px; }

/* ==================== BOTTOM NAVIGATION ==================== */
.v349-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--v349-primary) 0%, #1e2d3a 100%);
  border-top: 1px solid var(--v349-border);
  display: flex; justify-content: space-around; align-items: center;
  height: 60px; padding: 0 4px;
}
.v349-bottom-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 52px; background: none; border: none;
  color: var(--v349-muted); cursor: pointer; transition: all 0.2s;
  border-radius: 8px; padding: 4px 2px;
}
.v349-bottom-btn:hover { color: var(--v349-accent); }
.v349-bottom-btn .v349-bnav-icon { font-size: 2.2rem; line-height: 1; }
.v349-bottom-btn .v349-bnav-label { font-size: 1rem; margin-top: 2px; font-weight: 500; }
.v349-bottom-btn.v349-btn-active { color: var(--v349-accent); }
.v349-bottom-btn.v349-btn-active .v349-bnav-icon { transform: scale(1.1); }
.v349-btn-pressed { transform: scale(0.92); opacity: 0.8; }

/* ==================== TESTIMONIALS ==================== */
.v349-testimonial {
  background: var(--v349-bg-alt); border-radius: var(--v349-radius);
  padding: 14px 16px; margin-bottom: 10px; border-left: 3px solid var(--v349-accent);
}
.v349-testimonial-name { font-size: 1.3rem; font-weight: 600; color: var(--v349-accent); }
.v349-testimonial-text { font-size: 1.3rem; color: var(--v349-text-muted); margin-top: 4px; font-style: italic; }

/* ==================== PAYMENT / INFO BADGES ==================== */
.v349-badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.v349-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 14px;
  background: rgba(255,179,186,0.1); border: 1px solid var(--v349-border);
  font-size: 1.2rem; color: var(--v349-text-muted);
}

/* ==================== WINNER LIST ==================== */
.v349-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; border-bottom: 1px solid var(--v349-border);
  font-size: 1.3rem;
}
.v349-winner-name { color: var(--v349-accent); font-weight: 600; }
.v349-winner-amount { color: #4ade80; font-weight: 700; }

/* ==================== RESPONSIVE ==================== */
@media (min-width: 769px) {
  .v349-bottom-nav { display: none; }
  .v349-container { max-width: 768px; }
  .v349-game-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 768px) {
  main { padding-bottom: 76px; }
  .v349-game-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}
