/* =========================================================
 * PK7 App - Layout Stylesheet (layout-a954.css)
 * All custom classes use the "pga9-" prefix.
 * Mobile-first, root font 62.5%, container cap 430px.
 * Palette: #AFEEEE | #2C3E50 | #4DB6AC | #00695C
 * ========================================================= */

:root {
  --pga9-primary: #4DB6AC;
  --pga9-primary-deep: #00695C;
  --pga9-bg: #2C3E50;
  --pga9-bg-soft: #34495E;
  --pga9-bg-dark: #1B2A38;
  --pga9-text: #AFEEEE;
  --pga9-text-soft: #CFEFEF;
  --pga9-text-muted: #9FB3C8;
  --pga9-accent: #F4C869;
  --pga9-danger: #E57373;
  --pga9-border: rgba(175, 238, 238, 0.14);
  --pga9-radius: 12px;
  --pga9-radius-sm: 8px;
  --pga9-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --pga9-header-h: 56px;
  --pga9-bottom-h: 62px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--pga9-text);
  background: radial-gradient(circle at 30% -10%, #243B55 0%, var(--pga9-bg) 55%, var(--pga9-bg-dark) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--pga9-primary); text-decoration: none; }
a:hover { color: var(--pga9-text); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- Layout primitives ---------- */
.pga9-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 12px; }
.pga9-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }
.pga9-grid { display: grid; gap: 10px; }
.pga9-section { padding: 22px 0; }
.pga9-section-title {
  font-size: 1.9rem; font-weight: 700; color: var(--pga9-text);
  margin-bottom: 12px; padding-left: 10px;
  border-left: 4px solid var(--pga9-primary);
  display: flex; align-items: center; gap: 8px;
}
.pga9-eyebrow {
  display: inline-block; font-size: 1.2rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pga9-primary);
  padding: 3px 10px; border: 1px solid var(--pga9-primary); border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.pga9-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; font-size: 1.4rem; font-weight: 700;
  border-radius: var(--pga9-radius-sm); transition: transform .15s ease, box-shadow .2s ease;
  min-height: 42px; text-align: center;
}
.pga9-btn:hover { transform: translateY(-1px); }
.pga9-btn-primary { background: linear-gradient(135deg, var(--pga9-primary), var(--pga9-primary-deep)); color: #FFF; box-shadow: var(--pga9-shadow); }
.pga9-btn-ghost { background: rgba(175, 238, 238, .08); color: var(--pga9-text); border: 1px solid var(--pga9-border); }
.pga9-btn-accent { background: linear-gradient(135deg, #F4C869, #E6A93C); color: #2C3E50; font-weight: 800; }
.pga9-text-link { color: var(--pga9-primary); font-weight: 700; border-bottom: 1px dashed currentColor; }
.pga9-text-link:hover { color: var(--pga9-text); }

/* ---------- Header ---------- */
.pga9-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--pga9-header-h);
  background: linear-gradient(180deg, rgba(27, 42, 56, .96), rgba(44, 62, 80, .92));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pga9-border);
}
.pga9-header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 12px; max-width: 430px; margin: 0 auto; }
.pga9-brand { display: flex; align-items: center; gap: 8px; color: var(--pga9-text); font-weight: 800; font-size: 1.7rem; }
.pga9-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pga9-brand small { display: block; font-size: 1rem; font-weight: 500; color: var(--pga9-text-muted); }
.pga9-header-actions { display: flex; align-items: center; gap: 8px; }
.pga9-header-actions .pga9-btn { padding: 8px 14px; font-size: 1.3rem; }
.pga9-menu-toggle { width: 38px; height: 38px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border-radius: 8px; border: 1px solid var(--pga9-border); }
.pga9-menu-toggle span { width: 18px; height: 2px; background: var(--pga9-text); border-radius: 2px; transition: .2s; }

/* ---------- Mobile dropdown menu ---------- */
.pga9-mobile-menu {
  position: fixed; top: var(--pga9-header-h); left: 0; right: 0; z-index: 9999;
  background: var(--pga9-bg-dark);
  border-bottom: 1px solid var(--pga9-border);
  max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.pga9-mobile-menu.pga9-menu-open { max-height: 80vh; overflow-y: auto; box-shadow: var(--pga9-shadow); }
.pga9-mobile-menu ul { padding: 8px 12px; }
.pga9-mobile-menu li { border-bottom: 1px solid var(--pga9-border); }
.pga9-mobile-menu li:last-child { border-bottom: none; }
.pga9-mobile-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 6px; color: var(--pga9-text); font-size: 1.45rem; font-weight: 600; }
.pga9-mobile-menu a i { color: var(--pga9-primary); width: 22px; text-align: center; }
.pga9-nav-link.pga9-active { color: var(--pga9-primary); }

/* ---------- Main ---------- */
.pga9-main { padding-top: calc(var(--pga9-header-h) + 8px); padding-bottom: 20px; }
@media (max-width: 768px) { .pga9-main { padding-bottom: calc(var(--pga9-bottom-h) + 18px); } }

/* ---------- Carousel ---------- */
.pga9-carousel { position: relative; border-radius: var(--pga9-radius); overflow: hidden; box-shadow: var(--pga9-shadow); margin-bottom: 16px; }
.pga9-carousel-track { position: relative; height: 180px; }
.pga9-carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; cursor: pointer; }
.pga9-carousel-slide.pga9-active { opacity: 1; }
.pga9-carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.pga9-carousel-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #FFF; font-size: 1.3rem; font-weight: 600; }
.pga9-carousel-dots { position: absolute; bottom: 8px; right: 12px; display: flex; gap: 6px; }
.pga9-carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: .2s; cursor: pointer; }
.pga9-carousel-dot.pga9-active { background: var(--pga9-primary); width: 18px; border-radius: 4px; }

/* ---------- Cards ---------- */
.pga9-card {
  background: rgba(52, 73, 94, .55); border: 1px solid var(--pga9-border);
  border-radius: var(--pga9-radius); padding: 14px; box-shadow: var(--pga9-shadow);
}
.pga9-card h3 { font-size: 1.6rem; color: var(--pga9-text); margin-bottom: 6px; }
.pga9-card p { color: var(--pga9-text-soft); font-size: 1.35rem; }
.pga9-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* ---------- Game grid ---------- */
.pga9-game-section { margin-bottom: 20px; }
.pga9-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pga9-game-item { background: var(--pga9-bg-soft); border: 1px solid var(--pga9-border); border-radius: var(--pga9-radius-sm); padding: 6px; text-align: center; transition: transform .15s ease, border-color .2s; cursor: pointer; }
.pga9-game-item:hover { transform: translateY(-2px); border-color: var(--pga9-primary); }
.pga9-game-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 4px; }
.pga9-game-item span { display: block; font-size: 1.15rem; color: var(--pga9-text-soft); line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Category badges / tags ---------- */
.pga9-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pga9-tag { font-size: 1.15rem; padding: 3px 10px; border-radius: 999px; background: rgba(77, 182, 172, .15); color: var(--pga9-primary); border: 1px solid rgba(77, 182, 172, .35); }

/* ---------- Info / FAQ ---------- */
.pga9-faq-item { border-bottom: 1px solid var(--pga9-border); padding: 10px 0; }
.pga9-faq-item h4 { font-size: 1.4rem; color: var(--pga9-text); margin-bottom: 4px; }
.pga9-faq-item p { color: var(--pga9-text-muted); font-size: 1.3rem; }
.pga9-steps { counter-reset: step; padding-left: 0; }
.pga9-steps li { position: relative; padding: 8px 0 8px 34px; color: var(--pga9-text-soft); font-size: 1.35rem; }
.pga9-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--pga9-primary-deep); color: #FFF; font-size: 1.2rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- Stats / RTP ---------- */
.pga9-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pga9-stat { background: var(--pga9-bg-soft); border-radius: var(--pga9-radius-sm); padding: 10px; text-align: center; border: 1px solid var(--pga9-border); }
.pga9-stat b { display: block; font-size: 1.9rem; color: var(--pga9-primary); }
.pga9-stat span { font-size: 1.15rem; color: var(--pga9-text-muted); }
.pga9-bar { height: 8px; border-radius: 4px; background: rgba(175,238,238,.1); overflow: hidden; margin-top: 4px; }
.pga9-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--pga9-primary), var(--pga9-accent)); }

/* ---------- Testimonials ---------- */
.pga9-quote { border-left: 3px solid var(--pga9-primary); padding: 8px 12px; background: rgba(77,182,172,.07); border-radius: 0 var(--pga9-radius-sm) var(--pga9-radius-sm) 0; margin-bottom: 8px; }
.pga9-quote p { font-size: 1.3rem; color: var(--pga9-text-soft); font-style: italic; }
.pga9-quote cite { display: block; margin-top: 4px; color: var(--pga9-primary); font-size: 1.15rem; font-style: normal; font-weight: 600; }

/* ---------- Payment / winners ---------- */
.pga9-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pga9-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(175,238,238,.08); border: 1px solid var(--pga9-border); font-size: 1.2rem; color: var(--pga9-text); }
.pga9-winner-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; background: var(--pga9-bg-soft); border-radius: var(--pga9-radius-sm); margin-bottom: 6px; }
.pga9-winner-row b { color: var(--pga9-accent); }

/* ---------- CTA band ---------- */
.pga9-cta {
  background: linear-gradient(135deg, var(--pga9-primary-deep), var(--pga9-bg-soft));
  border-radius: var(--pga9-radius); padding: 18px 14px; text-align: center;
  border: 1px solid var(--pga9-primary); box-shadow: var(--pga9-shadow); margin: 18px 0;
}
.pga9-cta h2 { color: var(--pga9-text); font-size: 1.8rem; margin-bottom: 6px; }
.pga9-cta p { color: var(--pga9-text-soft); font-size: 1.3rem; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.pga9-footer { background: var(--pga9-bg-dark); border-top: 1px solid var(--pga9-border); padding: 20px 12px; margin-top: 10px; }
.pga9-footer p { color: var(--pga9-text-muted); font-size: 1.25rem; margin-bottom: 10px; }
.pga9-footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pga9-footer-links a { font-size: 1.2rem; color: var(--pga9-text-soft); padding: 4px 8px; border: 1px solid var(--pga9-border); border-radius: 6px; }
.pga9-footer-links a:hover { color: var(--pga9-primary); border-color: var(--pga9-primary); }
.pga9-copy { font-size: 1.15rem; color: var(--pga9-text-muted); border-top: 1px solid var(--pga9-border); padding-top: 10px; text-align: center; }

/* ---------- Bottom navigation (mobile only) ---------- */
.pga9-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; height: var(--pga9-bottom-h);
  background: linear-gradient(180deg, rgba(44, 62, 80, .98), rgba(27, 42, 56, 1));
  border-top: 1px solid var(--pga9-border);
  display: flex; justify-content: space-around; align-items: center;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, .35);
}
.pga9-bottom-link {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 60px; color: var(--pga9-text-muted);
  font-size: 1.05rem; gap: 2px; transition: color .2s ease, transform .15s ease;
  position: relative;
}
.pga9-bottom-link i { font-size: 2rem; }
.pga9-bottom-link .material-icons,
.pga9-bottom-link .ion { font-size: 2.2rem; }
.pga9-bottom-link.pga9-active { color: var(--pga9-primary); }
.pga9-bottom-link.pga9-active::before { content: ''; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 4px 4px; background: var(--pga9-primary); }
.pga9-bottom-link:active { transform: scale(.92); }
.pga9-bottom-link.promo { color: var(--pga9-accent); }

@media (min-width: 769px) { .pga9-bottom-nav { display: none; } }

/* ---------- Reveal animation ---------- */
.pga9-reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.pga9-reveal.pga9-active { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.pga9-text-center { text-align: center; }
.pga9-mt-8 { margin-top: 8px; } .pga9-mt-12 { margin-top: 12px; } .pga9-mt-16 { margin-top: 16px; }
.pga9-mb-8 { margin-bottom: 8px; } .pga9-mb-12 { margin-bottom: 12px; }
.pga9-flex { display: flex; gap: 8px; } .pga9-flex-center { display: flex; align-items: center; justify-content: center; }
.pga9-hidden-mobile { display: none; }
@media (min-width: 769px) { .pga9-hidden-desktop { display: none; } .pga9-hidden-mobile { display: block; } }
