/* ============================================================
   arionplay app login download apk - core stylesheet
   Prefix: pg2e-
   Palette: #3CB371 / #1E1E1E / #004D40 / #90EE90 / #00FF00
   Mobile-first, max-width: 430px on the main container.
   ============================================================ */

:root {
  --pg2e-primary: #3CB371;
  --pg2e-bg: #1E1E1E;
  --pg2e-deep: #004D40;
  --pg2e-soft: #90EE90;
  --pg2e-lime: #00FF00;
  --pg2e-text: #f4fff7;
  --pg2e-muted: #b8c7c1;
  --pg2e-card: #232b27;
  --pg2e-border: rgba(60, 179, 113, 0.25);
  --pg2e-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --pg2e-radius: 14px;
  --pg2e-radius-sm: 10px;
  --pg2e-header-h: 60px;
  --pg2e-bottomnav-h: 62px;
  font-size: 62.5%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--pg2e-bg);
  color: var(--pg2e-text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5rem;
}

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

.pg2e-skip {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.pg2e-skip:focus {
  left: 12px; top: 12px; width: auto; height: auto;
  background: var(--pg2e-primary); color: #06140d;
  padding: 8px 14px; border-radius: 8px; z-index: 10001;
}

/* ===== Layout container (mobile-first, hard cap 430px) ===== */
.pg2e-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: linear-gradient(180deg, #14201b 0%, #1E1E1E 28%, #00302a 100%);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.pg2e-container {
  padding: 0 14px;
}

main.pg2e-main {
  padding-top: calc(var(--pg2e-header-h) + 6px);
  padding-bottom: calc(var(--pg2e-bottomnav-h) + 24px);
}

/* ===== Header / Top navigation ===== */
.pg2e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, rgba(0,77,64,0.96), rgba(30,30,30,0.96));
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--pg2e-border);
}
.pg2e-header-inner {
  max-width: 430px;
  margin: 0 auto;
  height: var(--pg2e-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}
.pg2e-brand {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
}
.pg2e-brand img {
  width: 28px; height: 28px; border-radius: 6px;
  box-shadow: 0 0 0 2px rgba(144, 238, 144, 0.5);
}
.pg2e-brand-name {
  font-size: 13px; font-weight: 800; color: var(--pg2e-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: .2px;
}
.pg2e-brand-name b { color: var(--pg2e-lime); }

.pg2e-header-actions {
  display: flex; align-items: center; gap: 8px;
}
.pg2e-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border: 0; border-radius: 999px;
  font-size: 13px; font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .2s ease;
}
.pg2e-btn:focus-visible { outline: 2px solid var(--pg2e-lime); outline-offset: 2px; }
.pg2e-btn:active { transform: scale(.95); }
.pg2e-btn--login {
  background: transparent;
  color: var(--pg2e-text);
  border: 1px solid var(--pg2e-soft);
}
.pg2e-btn--register {
  background: linear-gradient(90deg, var(--pg2e-primary), var(--pg2e-lime));
  color: #06140d;
  box-shadow: 0 4px 14px rgba(0, 255, 0, 0.25);
}
.pg2e-nav-toggle {
  background: transparent;
  border: 1px solid var(--pg2e-border);
  color: var(--pg2e-soft);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

/* ===== Slide-down / slide-in nav menu ===== */
.pg2e-nav-menu {
  position: fixed;
  top: 0; right: -86%;
  width: 80%; max-width: 320px;
  height: 100vh;
  background: linear-gradient(180deg, #012a24, #1E1E1E);
  z-index: 9999;
  padding: 22px 16px;
  transform: translateX(0);
  transition: right .26s ease;
  overflow-y: auto;
  border-left: 1px solid var(--pg2e-border);
}
.pg2e-nav-menu--open { right: 0; }
.pg2e-nav-close {
  background: transparent; border: 0; color: var(--pg2e-text);
  font-size: 22px; cursor: pointer; float: right;
}
.pg2e-nav-menu h4 {
  margin: 18px 4px 8px; font-size: 13px; color: var(--pg2e-soft);
  text-transform: uppercase; letter-spacing: 1px;
}
.pg2e-nav-menu ul { list-style: none; padding: 0; margin: 0; }
.pg2e-nav-menu li { border-bottom: 1px solid rgba(144,238,144,.08); }
.pg2e-nav-menu li a {
  display: block; padding: 12px 6px; color: var(--pg2e-text);
  font-size: 14px;
}
.pg2e-nav-menu li a:hover { color: var(--pg2e-lime); padding-left: 10px; }
.pg2e-nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 9998;
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease;
}
.pg2e-nav-backdrop--visible { opacity: 1; visibility: visible; }
.pg2e-body-lock { overflow: hidden; }

/* ===== Hero carousel ===== */
.pg2e-carousel {
  position: relative;
  margin: 10px 0 14px;
  border-radius: var(--pg2e-radius);
  overflow: hidden;
  box-shadow: var(--pg2e-shadow);
}
.pg2e-carousel-viewport { overflow: hidden; }
.pg2e-carousel-track {
  display: flex;
  transition: transform .45s ease;
}
.pg2e-carousel-slide {
  min-width: 100%;
  position: relative;
  cursor: pointer;
}
.pg2e-carousel-slide img {
  width: 100%; height: 168px; object-fit: cover;
}
.pg2e-carousel-caption {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  background: linear-gradient(90deg, rgba(0,0,0,.7), rgba(0,77,64,.4));
  padding: 8px 10px; border-radius: 10px;
  font-size: 12px; color: #fff;
}
.pg2e-carousel-caption b { color: var(--pg2e-lime); }
.pg2e-carousel-next, .pg2e-carousel-prev {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.45); color: #fff; border: 0;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 16px;
}
.pg2e-carousel-prev { left: 8px; }
.pg2e-carousel-next { right: 8px; }
.pg2e-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pg2e-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: 0; cursor: pointer;
}
.pg2e-carousel-dot--active { background: var(--pg2e-lime); width: 22px; border-radius: 4px; }

/* ===== Section heading ===== */
.pg2e-section { margin: 22px 0; }
.pg2e-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 10px;
}
.pg2e-section-title {
  font-size: 16px; font-weight: 800; color: var(--pg2e-text);
  display: flex; align-items: center; gap: 6px;
}
.pg2e-section-title i { color: var(--pg2e-primary); }
.pg2e-section-title b { color: var(--pg2e-lime); }
.pg2e-section-link { font-size: 12px; color: var(--pg2e-soft); }

/* ===== Game grid (compact icons) ===== */
.pg2e-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg2e-game-item {
  display: flex; flex-direction: column; align-items: center;
  background: var(--pg2e-card);
  border: 1px solid var(--pg2e-border);
  border-radius: var(--pg2e-radius-sm);
  padding: 8px 6px;
  cursor: pointer;
  transition: transform .12s ease, border-color .2s ease;
  text-align: center;
}
.pg2e-game-item:hover { transform: translateY(-3px); border-color: var(--pg2e-lime); }
.pg2e-game-item img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,.35);
}
.pg2e-game-name {
  margin-top: 6px; font-size: 11px; color: var(--pg2e-text);
  line-height: 1.3; min-height: 30px;
}

/* ===== Chips ===== */
.pg2e-chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px;
  margin-bottom: 4px;
}
.pg2e-chips::-webkit-scrollbar { display: none; }
.pg2e-chip {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--pg2e-border);
  background: rgba(0,77,64,.35);
  color: var(--pg2e-text);
  font-size: 12px; cursor: pointer;
  white-space: nowrap;
}
.pg2e-chip--active {
  background: linear-gradient(90deg, var(--pg2e-primary), var(--pg2e-lime));
  color: #06140d; border-color: transparent; font-weight: 800;
}

/* ===== Cards & content blocks ===== */
.pg2e-card {
  background: var(--pg2e-card);
  border: 1px solid var(--pg2e-border);
  border-radius: var(--pg2e-radius);
  padding: 14px;
  box-shadow: var(--pg2e-shadow);
  margin: 10px 0;
}
.pg2e-card h2 { font-size: 16px; margin: 0 0 8px; color: var(--pg2e-text); }
.pg2e-card h2 b { color: var(--pg2e-lime); }
.pg2e-card h3 { font-size: 14px; margin: 12px 0 6px; color: var(--pg2e-soft); }
.pg2e-card p { font-size: 13px; color: var(--pg2e-muted); margin: 6px 0; }

.pg2e-text-link {
  color: var(--pg2e-lime);
  font-weight: 700;
  border-bottom: 1px dashed rgba(0,255,0,.4);
}
.pg2e-text-link:hover { color: var(--pg2e-soft); }

/* H1 */
.pg2e-h1 {
  font-size: 20px; line-height: 1.35; margin: 14px 0 8px;
  color: var(--pg2e-text); font-weight: 900;
}
.pg2e-h1 b { color: var(--pg2e-lime); }

/* ===== Promo CTA strip ===== */
.pg2e-cta {
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(120deg, #01332b, #004D40 60%, #00FF00 200%);
  border-radius: var(--pg2e-radius);
  padding: 14px;
  color: #fff;
  margin: 14px 0;
  border: 1px solid var(--pg2e-border);
}
.pg2e-cta h3 { margin: 0; font-size: 15px; color: #fff; }
.pg2e-cta p { margin: 0; font-size: 12px; color: #d6ffe9; }
.pg2e-cta .pg2e-btn--register { width: max-content; }

/* ===== RTP / stats compact ===== */
.pg2e-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.pg2e-stat {
  background: rgba(0,0,0,.25);
  border-radius: var(--pg2e-radius-sm);
  padding: 8px 10px;
}
.pg2e-stat b { font-size: 16px; color: var(--pg2e-lime); display: block; }
.pg2e-stat span { font-size: 11px; color: var(--pg2e-muted); }

.pg2e-bar {
  height: 8px; border-radius: 6px; background: rgba(255,255,255,.12);
  overflow: hidden; margin: 6px 0 10px;
}
.pg2e-bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--pg2e-primary), var(--pg2e-lime));
}

/* ===== Payment chips / winner list ===== */
.pg2e-payrow { display: flex; flex-wrap: wrap; gap: 8px; }
.pg2e-paychip {
  background: #0c1a16; color: var(--pg2e-text);
  border: 1px solid var(--pg2e-border);
  padding: 6px 10px; border-radius: 8px; font-size: 12px;
  display: inline-flex; align-items: center; gap: 6px;
}
.pg2e-winlist { list-style: none; padding: 0; margin: 0; }
.pg2e-winlist li {
  display: flex; justify-content: space-between;
  padding: 6px 0; border-bottom: 1px dashed rgba(144,238,144,.12);
  font-size: 12px;
}
.pg2e-winlist li b { color: var(--pg2e-lime); }

/* ===== Testimonials ===== */
.pg2e-quote {
  background: rgba(0,77,64,.25);
  border-left: 3px solid var(--pg2e-primary);
  padding: 8px 10px; border-radius: 8px;
  margin: 6px 0; font-size: 12px; color: var(--pg2e-text);
}
.pg2e-quote span { display: block; margin-top: 4px; color: var(--pg2e-soft); font-size: 11px; }

/* ===== Footer ===== */
.pg2e-footer {
  background: linear-gradient(180deg, #012a24, #1E1E1E);
  border-top: 1px solid var(--pg2e-border);
  padding: 18px 14px 26px;
  color: var(--pg2e-muted);
  font-size: 12px;
}
.pg2e-footer h4 { color: var(--pg2e-soft); margin: 12px 0 6px; font-size: 13px; }
.pg2e-footer-links {
  display: flex; flex-wrap: wrap; gap: 6px 12px;
}
.pg2e-footer-links a { color: var(--pg2e-text); font-size: 12px; }
.pg2e-footer-links a:hover { color: var(--pg2e-lime); }
.pg2e-footer-promos {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0;
}
.pg2e-footer-promos .pg2e-btn { min-height: 34px; font-size: 12px; }
.pg2e-footer-copy { margin-top: 12px; color: #6e8079; font-size: 11px; }

/* ===== Mobile bottom navigation (fixed) ===== */
.pg2e-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--pg2e-bottomnav-h);
  z-index: 1000;
  background: linear-gradient(90deg, #012a24, #004D40);
  border-top: 1px solid var(--pg2e-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,.4);
  display: flex; justify-content: space-around; align-items: stretch;
  max-width: 430px;
  margin: 0 auto;
}
.pg2e-bottomnav-btn {
  flex: 1 1 0;
  background: transparent;
  border: 0;
  color: var(--pg2e-text);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  min-width: 60px; min-height: 60px;
  cursor: pointer;
  font-size: 10px;
  transition: transform .12s ease, color .2s ease;
  position: relative;
}
.pg2e-bottomnav-btn .material-icons,
.pg2e-bottomnav-btn .fas,
.pg2e-bottomnav-btn .far,
.pg2e-bottomnav-btn .ion,
.pg2e-bottomnav-btn .bi {
  font-size: 22px;
}
.pg2e-bottomnav-btn:active { transform: scale(.92); }
.pg2e-bottomnav-btn--active {
  color: var(--pg2e-lime);
}
.pg2e-bottomnav-btn--active::before {
  content: ""; position: absolute; top: 0;
  width: 26px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--pg2e-lime);
}

/* ===== Desktop rules ===== */
@media (min-width: 769px) {
  .pg2e-bottomnav { display: none; }
  main.pg2e-main { padding-bottom: 40px; }
}
@media (max-width: 768px) {
  main.pg2e-main { padding-bottom: calc(var(--pg2e-bottomnav-h) + 18px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
