/* ph222 register core stylesheet - all classes use the v493- prefix */
:root {
  --v493-primary: #9400D3;
  --v493-primary-soft: #b347e0;
  --v493-bg-dark: #1A1A1A;
  --v493-bg-charcoal: #36454F;
  --v493-bg-slate: #34495E;
  --v493-accent: #CD5C5C;
  --v493-text-light: #f5f5f7;
  --v493-text-mute: #b8c0cc;
  --v493-border: rgba(255, 255, 255, 0.08);
  --v493-gold: #f5c542;
  --v493-radius: 12px;
  --v493-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  --v493-header-h: 56px;
  --v493-bottom-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--v493-text-light);
  background: radial-gradient(circle at top, #2a1838 0%, var(--v493-bg-dark) 55%);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--v493-primary-soft); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--v493-text-light); }

.v493-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; position: relative; }
.v493-wrapper { width: 100%; }

/* ===== Header ===== */
.v493-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v493-header-h);
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v493-border);
  display: flex; align-items: center;
}
.v493-header-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.45); }
.v493-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.v493-logo { display: flex; align-items: center; gap: 6px; color: var(--v493-text-light); font-weight: 700; font-size: 1.7rem; }
.v493-logo img { width: 28px; height: 28px; border-radius: 6px; }
.v493-logo span { background: linear-gradient(90deg, var(--v493-primary-soft), var(--v493-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.v493-menu-btn {
  width: 40px; height: 40px; border: none; background: transparent; color: var(--v493-text-light);
  font-size: 2.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
}
.v493-menu-btn:hover { background: rgba(148, 0, 211, 0.18); }

.v493-btn-group { display: flex; gap: 6px; }
.v493-btn {
  border: none; cursor: pointer; font-weight: 700; font-size: 1.3rem;
  padding: 8px 14px; border-radius: 20px; transition: transform .15s ease, box-shadow .2s ease;
  min-height: 36px; line-height: 1;
}
.v493-btn-primary {
  background: linear-gradient(135deg, var(--v493-primary), var(--v493-accent));
  color: #fff; box-shadow: 0 3px 10px rgba(148, 0, 211, 0.45);
}
.v493-btn-ghost {
  background: transparent; color: var(--v493-text-light);
  border: 1px solid rgba(255,255,255,0.35);
}
.v493-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(148, 0, 211, 0.6); }
.v493-btn-ghost:hover { background: rgba(255,255,255,0.08); }

/* ===== Mobile menu drawer ===== */
.v493-mobile-menu {
  position: fixed; top: 0; right: -85%; width: 80%; max-width: 320px; height: 100vh;
  background: linear-gradient(160deg, #2c1a3a, var(--v493-bg-dark));
  z-index: 9999; padding: 70px 18px 24px; transition: right .28s ease;
  overflow-y: auto; box-shadow: -6px 0 24px rgba(0,0,0,0.5);
}
.v493-menu-open { right: 0; }
.v493-mobile-menu h3 { color: var(--v493-primary-soft); font-size: 1.4rem; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 1px; }
.v493-mobile-menu a {
  display: block; color: var(--v493-text-light); padding: 10px 12px;
  border-radius: 8px; font-size: 1.5rem; border-bottom: 1px solid var(--v493-border);
}
.v493-mobile-menu a:hover { background: rgba(148, 0, 211, 0.22); }
.v493-menu-close {
  position: absolute; top: 14px; right: 14px; background: transparent; border: none;
  color: var(--v493-text-light); font-size: 2.2rem; cursor: pointer;
}
.v493-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 9998;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.v493-overlay-show { opacity: 1; pointer-events: auto; }

/* ===== Layout ===== */
main { padding-top: calc(var(--v493-header-h) + 6px); padding-bottom: 20px; }
.v493-section { margin: 22px 0; }
.v493-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 12px; padding: 0 4px;
}
.v493-section-title h2 { font-size: 1.8rem; color: var(--v493-text-light); font-weight: 700; }
.v493-section-title h2::before {
  content: ''; display: inline-block; width: 4px; height: 18px; background: var(--v493-primary);
  margin-right: 8px; border-radius: 2px; vertical-align: middle;
}
.v493-section-title .v493-link-more { color: var(--v493-gold); font-size: 1.3rem; }

/* ===== Carousel ===== */
.v493-carousel {
  position: relative; border-radius: var(--v493-radius); overflow: hidden;
  box-shadow: var(--v493-shadow); margin: 12px 0 18px;
}
.v493-carousel-track { display: flex; transition: transform .45s ease; }
.v493-carousel-slide { position: relative; flex: 0 0 100%; }
.v493-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.v493-carousel-caption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 18px 12px 8px; color: #fff; border-radius: 0 0 var(--v493-radius) var(--v493-radius);
}
.v493-carousel-caption h3 { font-size: 1.7rem; margin-bottom: 4px; }
.v493-carousel-caption p { font-size: 1.3rem; color: var(--v493-text-mute); }
.v493-carousel-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.v493-carousel-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; }
.v493-dot-active { background: var(--v493-primary); width: 18px; border-radius: 4px; }

/* ===== H1 hero ===== */
.v493-hero-text {
  padding: 6px 6px 4px;
}
.v493-hero-text h1 { font-size: 2rem; line-height: 1.3; color: var(--v493-text-light); margin-bottom: 6px; }
.v493-hero-text h1 b { color: var(--v493-primary-soft); }
.v493-hero-text p { color: var(--v493-text-mute); font-size: 1.4rem; }

/* ===== Game grid ===== */
.v493-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.v493-game-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--v493-border);
  border-radius: 10px; overflow: hidden; cursor: pointer;
  transition: transform .18s ease, box-shadow .2s ease;
}
.v493-game-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(148,0,211,0.35); border-color: rgba(148,0,211,0.6); }
.v493-game-card img { width: 100%; height: 92px; object-fit: cover; }
.v493-game-card .v493-game-name {
  font-size: 1.2rem; color: var(--v493-text-light); padding: 6px 6px 7px;
  text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Cards / Modules ===== */
.v493-card {
  background: linear-gradient(160deg, rgba(148,0,211,0.08), rgba(255,255,255,0.02));
  border: 1px solid var(--v493-border); border-radius: var(--v493-radius);
  padding: 14px; margin-bottom: 12px;
}
.v493-card h3 { color: var(--v493-primary-soft); font-size: 1.6rem; margin-bottom: 8px; }
.v493-card p { color: var(--v493-text-mute); font-size: 1.4rem; margin-bottom: 8px; }
.v493-card ul { padding-left: 18px; color: var(--v493-text-mute); font-size: 1.4rem; }
.v493-card li { margin-bottom: 4px; }

/* ===== FAQ ===== */
.v493-faq-item { border: 1px solid var(--v493-border); border-radius: 10px; margin-bottom: 8px; overflow: hidden; background: rgba(255,255,255,0.03); }
.v493-faq-q { width: 100%; text-align: left; background: transparent; border: none; padding: 12px 14px; color: var(--v493-text-light); font-size: 1.4rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.v493-faq-q::after { content: '+'; color: var(--v493-primary-soft); font-size: 1.8rem; }
.v493-faq-open .v493-faq-q::after { content: '\2212'; }
.v493-faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 14px; color: var(--v493-text-mute); font-size: 1.35rem; }
.v493-faq-open .v493-faq-a { max-height: 320px; padding: 0 14px 12px; }

/* ===== Testimonials ===== */
.v493-testi-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.v493-testi { padding: 12px; border-left: 3px solid var(--v493-primary); background: rgba(255,255,255,0.03); border-radius: 8px; }
.v493-testi .v493-testi-name { font-weight: 700; color: var(--v493-gold); font-size: 1.4rem; margin-bottom: 4px; }
.v493-testi p { color: var(--v493-text-mute); font-size: 1.3rem; font-style: italic; }
.v493-stars { color: var(--v493-gold); font-size: 1.3rem; margin-bottom: 4px; letter-spacing: 2px; }

/* ===== Winners ===== */
.v493-winner-list { display: flex; flex-direction: column; gap: 6px; }
.v493-winner { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: rgba(255,255,255,0.03); border-radius: 8px; font-size: 1.3rem; }
.v493-winner b { color: var(--v493-gold); }

/* ===== Payment / app strip ===== */
.v493-strip { display: flex; flex-wrap: wrap; gap: 8px; }
.v493-chip { padding: 6px 12px; border-radius: 16px; background: rgba(148,0,211,0.18); color: var(--v493-text-light); font-size: 1.25rem; border: 1px solid rgba(148,0,211,0.4); }

/* ===== Footer ===== */
.v493-footer { background: linear-gradient(180deg, transparent, rgba(0,0,0,0.45)); padding: 20px 0 80px; margin-top: 30px; border-top: 1px solid var(--v493-border); }
.v493-footer-brand { color: var(--v493-text-mute); font-size: 1.35rem; margin-bottom: 12px; padding: 0 6px; }
.v493-footer-cta { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 6px; margin-bottom: 16px; }
.v493-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 0 6px; margin-bottom: 12px; }
.v493-footer-links a { color: var(--v493-text-mute); font-size: 1.3rem; }
.v493-footer-links a:hover { color: var(--v493-primary-soft); }
.v493-footer-copy { text-align: center; color: var(--v493-text-mute); font-size: 1.2rem; padding: 8px 6px 0; border-top: 1px dashed var(--v493-border); }

/* ===== Bottom nav ===== */
.v493-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--v493-bottom-h);
  background: linear-gradient(180deg, #2a1a3a, var(--v493-bg-dark));
  border-top: 1px solid rgba(148,0,211,0.4);
  display: flex; justify-content: space-around; align-items: stretch;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.5);
}
.v493-nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--v493-text-mute); font-size: 1.05rem; min-height: 60px; cursor: pointer;
  background: transparent; border: none; transition: color .15s ease, transform .15s ease;
  text-decoration: none;
}
.v493-nav-item .material-icons,
.v493-nav-item ion-icon,
.v493-nav-item i { font-size: 22px; }
.v493-nav-item:hover { color: var(--v493-primary-soft); transform: translateY(-2px); }
.v493-nav-active { color: var(--v493-gold) !important; }
.v493-nav-active::before {
  content: ''; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--v493-gold);
}
.v493-nav-promo {
  background: linear-gradient(135deg, var(--v493-primary), var(--v493-accent));
  color: #fff; border-radius: 50%; width: 48px; height: 48px; margin-top: -16px;
  box-shadow: 0 4px 12px rgba(148,0,211,0.6); border: 2px solid #fff;
}
.v493-nav-promo .material-icons,
.v493-nav-promo ion-icon,
.v493-nav-promo i { font-size: 24px; }
.v493-nav-promo-wrap { position: relative; flex: 1; display: flex; justify-content: center; }

/* ===== Flash toast ===== */
.v493-flash {
  position: fixed; bottom: calc(var(--v493-bottom-h) + 16px); left: 50%; transform: translate(-50%, 20px);
  background: rgba(148,0,211,0.95); color: #fff; padding: 10px 18px; border-radius: 22px;
  font-size: 1.3rem; font-weight: 600; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 3000;
}
.v493-flash-show { opacity: 1; transform: translate(-50%, 0); }

/* ===== Responsive ===== */
@media (min-width: 769px) {
  .v493-bottom-nav { display: none; }
  .v493-container { max-width: 720px; }
  .v493-game-grid { grid-template-columns: repeat(5, 1fr); }
  .v493-testi-grid { grid-template-columns: repeat(2, 1fr); }
  .v493-footer-links { grid-template-columns: repeat(3, 1fr); }
  .v493-footer { padding-bottom: 30px; }
  main { padding-bottom: 40px; }
}
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--v493-bottom-h) + 24px); }
}
@media (max-width: 360px) {
  .v493-game-grid { grid-template-columns: repeat(2, 1fr); }
  .v493-carousel-slide img { height: 150px; }
  .v493-hero-text h1 { font-size: 1.75rem; }
}
