/* ============================================================
 * pgasia.click - Shared base stylesheet
 * Prefix:  w7d5c-
 * Palette: #333333 (dark bg) | #0000CD (brand blue accent)
 * Strategy: mobile-first, rem units, 62.5% root font-size.
 * ============================================================ */

:root {
  --w7d5c-bg: #333333;
  --w7d5c-bg-soft: #3d3d3d;
  --w7d5c-bg-deep: #1f1f1f;
  --w7d5c-primary: #0000CD;
  --w7d5c-primary-soft: #2a2ad9;
  --w7d5c-accent: #ffd24c;
  --w7d5c-text: #f5f6fa;
  --w7d5c-text-muted: #b8bcc8;
  --w7d5c-border: rgba(255, 255, 255, 0.10);
  --w7d5c-radius: 14px;
  --w7d5c-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --w7d5c-header-h: 56px;
  --w7d5c-nav-h: 60px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #4040a8 0%, var(--w7d5c-bg) 55%);
  color: var(--w7d5c-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem * 1;
  line-height: 1.55;
  padding-top: var(--w7d5c-header-h);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--w7d5c-primary-soft); text-decoration: none; }
a:hover { color: var(--w7d5c-accent); }

.w7d5c-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.w7d5c-wrapper {
  padding: 18px 0;
}

/* ---------------- Header ---------------- */
.w7d5c-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--w7d5c-header-h);
  background: linear-gradient(90deg, var(--w7d5c-bg-deep), var(--w7d5c-primary));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  transition: height .2s ease;
}
.w7d5c-header-condensed { height: 48px; }

.w7d5c-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.w7d5c-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.7rem;
}
.w7d5c-brand img { width: 26px; height: 26px; border-radius: 6px; }

.w7d5c-header-actions { display: flex; align-items: center; gap: 8px; }

.w7d5c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.w7d5c-btn:active { transform: scale(.96); }
.w7d5c-btn-login { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); }
.w7d5c-btn-register { background: linear-gradient(90deg, #ffcf3a, #ff9d2a); color: #1f1f1f; }
.w7d5c-btn-primary { background: var(--w7d5c-primary); }
.w7d5c-btn-block { width: 100%; min-height: 44px; font-size: 1.5rem; }

.w7d5c-menu-toggle {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 6px;
}

/* ---------------- Expandable menu ---------------- */
.w7d5c-mobile-menu {
  position: fixed;
  top: var(--w7d5c-header-h);
  left: 0; right: 0;
  background: var(--w7d5c-bg-deep);
  border-top: 1px solid var(--w7d5c-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  z-index: 9999;
}
.w7d5c-mobile-menu.w7d5c-menu-open { max-height: 80vh; overflow-y: auto; }
.w7d5c-mobile-menu-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 10px 14px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.w7d5c-mobile-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--w7d5c-text);
  font-size: 1.35rem;
  min-height: 40px;
}
.w7d5c-mobile-menu a:hover { background: rgba(0,0,205,0.35); color: #fff; }

/* ---------------- Carousel ---------------- */
.w7d5c-carousel {
  position: relative;
  border-radius: var(--w7d5c-radius);
  overflow: hidden;
  box-shadow: var(--w7d5c-shadow);
  margin: 14px 0;
}
.w7d5c-carousel-slide {
  display: none;
  cursor: pointer;
}
.w7d5c-carousel-slide.w7d5c-slide-active { display: block; }
.w7d5c-carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.w7d5c-carousel-caption {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  padding: 18px 6px 6px;
}
.w7d5c-carousel-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.w7d5c-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
}
.w7d5c-carousel-dot.w7d5c-dot-active { background: var(--w7d5c-accent); }

/* ---------------- Section / typography ---------------- */
.w7d5c-section {
  margin: 22px 0;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--w7d5c-border);
  border-radius: var(--w7d5c-radius);
}
.w7d5c-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
  display: flex; align-items: center; gap: 8px;
}
.w7d5c-section-title i { color: var(--w7d5c-accent); }
.w7d5c-lead { color: var(--w7d5c-text-muted); margin: 0 0 12px; }

h1.w7d5c-h1 {
  font-size: 2.1rem;
  line-height: 1.25;
  margin: 16px 0 8px;
  color: #fff;
}
h2.w7d5c-h2 {
  font-size: 1.8rem;
  color: #fff;
  margin: 18px 0 8px;
}
h3.w7d5c-h3 {
  font-size: 1.5rem;
  color: var(--w7d5c-accent);
  margin: 14px 0 6px;
}
p { margin: 0 0 10px; }

.w7d5c-promo-text {
  color: var(--w7d5c-accent);
  font-weight: 800;
  cursor: pointer;
}

/* ---------------- Game grid ---------------- */
.w7d5c-game-section h2 {
  font-size: 1.6rem;
  color: #fff;
  margin: 18px 0 8px;
  border-left: 4px solid var(--w7d5c-primary-soft);
  padding-left: 8px;
}
.w7d5c-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w7d5c-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--w7d5c-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease;
  text-align: center;
}
.w7d5c-card:hover { transform: translateY(-3px); border-color: var(--w7d5c-primary-soft); }
.w7d5c-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #000;
}
.w7d5c-card-name {
  font-size: 1.15rem;
  padding: 6px 4px;
  color: var(--w7d5c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- Generic feature components ---------------- */
.w7d5c-feature-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.w7d5c-feature {
  background: linear-gradient(135deg, rgba(0,0,205,0.30), rgba(255,255,255,0.04));
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--w7d5c-border);
}
.w7d5c-feature i { font-size: 2.2rem; color: var(--w7d5c-accent); }
.w7d5c-feature h3 { margin: 6px 0 4px; font-size: 1.35rem; color: #fff; }
.w7d5c-feature p { margin: 0; font-size: 1.25rem; color: var(--w7d5c-text-muted); }

.w7d5c-steps { counter-reset: step; padding: 0; list-style: none; margin: 8px 0; }
.w7d5c-steps li {
  position: relative;
  padding: 8px 8px 8px 40px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  border: 1px solid var(--w7d5c-border);
}
.w7d5c-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 8px; top: 8px;
  width: 24px; height: 24px;
  background: var(--w7d5c-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700;
}

.w7d5c-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.w7d5c-rtp-table th, .w7d5c-rtp-table td {
  padding: 8px; border-bottom: 1px solid var(--w7d5c-border); text-align: left;
}
.w7d5c-rtp-table th { color: var(--w7d5c-accent); }
.w7d5c-rtp-bar {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.1);
  overflow: hidden; margin-top: 4px;
}
.w7d5c-rtp-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--w7d5c-primary), var(--w7d5c-accent));
}

.w7d5c-testimonial {
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--w7d5c-primary-soft);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.w7d5c-testimonial strong { color: var(--w7d5c-accent); }

.w7d5c-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.w7d5c-pay {
  background: #fff;
  color: #1f1f1f;
  border-radius: 8px;
  padding: 10px 6px;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.w7d5c-cta-band {
  background: linear-gradient(90deg, var(--w7d5c-primary), #5a5aff);
  padding: 16px;
  border-radius: var(--w7d5c-radius);
  text-align: center;
  margin: 18px 0;
}
.w7d5c-cta-band h3 { color: #fff; margin: 0 0 10px; }
.w7d5c-cta-band .w7d5c-btn { background: var(--w7d5c-accent); color: #1f1f1f; }

/* ---------------- Reveal animation ---------------- */
.w7d5c-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.w7d5c-reveal.w7d5c-revealed { opacity: 1; transform: none; }

/* ---------------- Footer ---------------- */
.w7d5c-footer {
  background: var(--w7d5c-bg-deep);
  border-top: 1px solid var(--w7d5c-border);
  padding: 22px 14px calc(14px + var(--w7d5c-nav-h));
  margin-top: 24px;
  font-size: 1.25rem;
  color: var(--w7d5c-text-muted);
}
.w7d5c-footer-inner { max-width: 430px; margin: 0 auto; }
.w7d5c-footer h4 { color: #fff; font-size: 1.35rem; margin: 14px 0 6px; }
.w7d5c-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.w7d5c-footer-links a {
  color: var(--w7d5c-text-muted);
  font-size: 1.2rem;
  padding: 4px 0;
}
.w7d5c-footer-links a:hover { color: var(--w7d5c-accent); }
.w7d5c-footer-copy {
  margin-top: 14px;
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.35);
}

/* ---------------- Mobile bottom nav ---------------- */
.w7d5c-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--w7d5c-nav-h);
  background: var(--w7d5c-bg-deep);
  border-top: 1px solid var(--w7d5c-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
}
.w7d5c-bottom-nav button,
.w7d5c-bottom-nav a {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--w7d5c-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.05rem;
  text-decoration: none;
  min-width: 60px;
  min-height: 60px;
  padding: 4px;
  transition: color .15s ease, transform .15s ease;
}
.w7d5c-bottom-nav button:active,
.w7d5c-bottom-nav a:active { transform: scale(.92); }
.w7d5c-bottom-nav .w7d5c-nav-icon { font-size: 2.2rem; line-height: 1; }
.w7d5c-bottom-nav .material-icons.w7d5c-nav-icon { font-size: 2.4rem; }
.w7d5c-bottom-nav .w7d5c-nav-active { color: var(--w7d5c-accent); }
.w7d5c-bottom-nav .w7d5c-nav-promo { color: var(--w7d5c-accent); }

/* ---------------- Desktop tweaks ---------------- */
@media (min-width: 769px) {
  body { padding-top: 64px; }
  .w7d5c-bottom-nav { display: none; }
  .w7d5c-footer { padding-bottom: 22px; }
  .w7d5c-container { max-width: 760px; }
  .w7d5c-mobile-menu-toggle { display: none; }
  .w7d5c-grid { grid-template-columns: repeat(5, 1fr); }
  .w7d5c-feature-row { grid-template-columns: repeat(4, 1fr); }
}

/* Reserve clearance so content is never hidden behind the bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: calc(var(--w7d5c-nav-h) + 16px); }
}
