/* aa455 base styles - mobile first casino layout (en-PH) */
/* Prefix: g7d3- | All custom classes use this prefix */

:root {
  --g7d3-primary: #696969;
  --g7d3-bg: #1B263B;
  --g7d3-bg-2: #36454F;
  --g7d3-bg-3: #3C3C3C;
  --g7d3-text: #F5F5F5;
  --g7d3-muted: #B8C0C8;
  --g7d3-accent: #F5A623;
  --g7d3-accent-2: #E94B3C;
  --g7d3-gold: #FFD166;
  --g7d3-green: #2EC4B6;
  --g7d3-border: rgba(255,255,255,0.08);
  --g7d3-shadow: 0 0.4rem 1.2rem rgba(0,0,0,0.35);
}

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

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

body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(160deg, var(--g7d3-bg) 0%, var(--g7d3-bg-2) 55%, var(--g7d3-bg-3) 100%);
  color: var(--g7d3-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--g7d3-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Header ===== */
.g7d3-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27,38,59,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--g7d3-border);
  max-width: 430px;
  margin: 0 auto;
}
.g7d3-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  gap: 0.6rem;
}
.g7d3-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.g7d3-brand img { width: 2.8rem; height: 2.8rem; border-radius: 0.5rem; }
.g7d3-brand-name { font-weight: 800; font-size: 1.7rem; color: var(--g7d3-gold); letter-spacing: 0.05rem; }
.g7d3-brand-name span { color: var(--g7d3-accent-2); }

.g7d3-header-actions { display: flex; align-items: center; gap: 0.5rem; }
.g7d3-menu-btn {
  background: transparent; border: 1px solid var(--g7d3-border);
  color: var(--g7d3-text); width: 3.2rem; height: 3.2rem;
  border-radius: 0.6rem; font-size: 1.6rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.g7d3-btn {
  border: none; cursor: pointer; border-radius: 0.7rem;
  font-weight: 700; padding: 0.7rem 1.2rem; font-size: 1.3rem;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.g7d3-btn:active { transform: scale(0.95); }
.g7d3-btn-login { background: transparent; color: var(--g7d3-text); border: 1px solid var(--g7d3-accent); }
.g7d3-btn-register {
  background: linear-gradient(135deg, var(--g7d3-accent) 0%, var(--g7d3-accent-2) 100%);
  color: #1B263B; box-shadow: 0 0.3rem 0.8rem rgba(245,166,35,0.35);
}

/* ===== Mobile slide menu ===== */
.g7d3-mobile-menu {
  position: fixed; top: 0; right: -100%;
  width: 80%; max-width: 320px; height: 100vh;
  background: var(--g7d3-bg-2); z-index: 9999;
  transition: right 0.3s ease; padding: 2rem 1.4rem;
  overflow-y: auto; box-shadow: var(--g7d3-shadow);
}
.g7d3-mobile-menu.open { right: 0; }
.g7d3-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  background: transparent; border: none; color: var(--g7d3-text);
  font-size: 2rem; cursor: pointer;
}
.g7d3-menu-title { font-size: 1.5rem; color: var(--g7d3-gold); margin-bottom: 1.2rem; font-weight: 700; }
.g7d3-menu-list { list-style: none; }
.g7d3-menu-list li { border-bottom: 1px solid var(--g7d3-border); }
.g7d3-menu-list a {
  display: block; color: var(--g7d3-text); padding: 1.1rem 0.4rem;
  font-size: 1.35rem; text-decoration: none;
}
.g7d3-menu-list a:hover { color: var(--g7d3-gold); }
.g7d3-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; opacity: 0; visibility: hidden; transition: opacity 0.25s;
}
.g7d3-overlay.show { opacity: 1; visibility: visible; }

/* ===== Layout ===== */
.g7d3-main { padding-top: 5.4rem; padding-bottom: 8rem; }
.g7d3-container { padding: 1.2rem; }
.g7d3-section { margin: 1.6rem 0; }
.g7d3-section-title {
  font-size: 1.55rem; font-weight: 800; color: var(--g7d3-gold);
  margin-bottom: 0.9rem; padding-left: 0.6rem;
  border-left: 0.4rem solid var(--g7d3-accent);
  display: flex; align-items: center; gap: 0.5rem;
}

/* ===== Hero carousel ===== */
.g7d3-carousel { position: relative; border-radius: 1rem; overflow: hidden; box-shadow: var(--g7d3-shadow); }
.g7d3-carousel-track { display: flex; transition: transform 0.5s ease; }
.g7d3-slide { min-width: 100%; position: relative; cursor: pointer; }
.g7d3-slide img { width: 100%; height: 17rem; object-fit: cover; }
.g7d3-slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 1.2rem 1rem 1rem; color: #fff;
}
.g7d3-slide-cap h2 { font-size: 1.6rem; color: var(--g7d3-gold); margin-bottom: 0.3rem; }
.g7d3-slide-cap p { font-size: 1.2rem; color: var(--g7d3-muted); }
.g7d3-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.7rem; }
.g7d3-dot { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; }
.g7d3-dot.active { background: var(--g7d3-accent); width: 1.8rem; border-radius: 0.4rem; }

/* ===== Game grid ===== */
.g7d3-game-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
}
.g7d3-game-card {
  background: var(--g7d3-bg-2); border-radius: 0.8rem; overflow: hidden;
  cursor: pointer; border: 1px solid var(--g7d3-border);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.g7d3-game-card:hover { transform: translateY(-0.2rem); box-shadow: var(--g7d3-shadow); }
.g7d3-game-card img { width: 100%; height: 8rem; object-fit: cover; background: #000; }
.g7d3-game-name {
  font-size: 1.05rem; padding: 0.4rem 0.3rem; text-align: center;
  color: var(--g7d3-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== Cards / content ===== */
.g7d3-card {
  background: rgba(54,69,79,0.6); border: 1px solid var(--g7d3-border);
  border-radius: 1rem; padding: 1.2rem; margin-bottom: 1rem;
}
.g7d3-card h3 { font-size: 1.3rem; color: var(--g7d3-gold); margin-bottom: 0.5rem; }
.g7d3-card p { font-size: 1.25rem; color: var(--g7d3-muted); line-height: 1.6; }

.g7d3-cta {
  display: inline-block; margin: 0.6rem 0.4rem 0.6rem 0;
  background: linear-gradient(135deg, var(--g7d3-accent) 0%, var(--g7d3-accent-2) 100%);
  color: #1B263B; padding: 0.8rem 1.4rem; border-radius: 0.7rem;
  font-weight: 700; cursor: pointer; border: none; font-size: 1.3rem;
}
.g7d3-text-link { color: var(--g7d3-accent); font-weight: 700; }

.g7d3-list { padding-left: 1.4rem; color: var(--g7d3-muted); }
.g7d3-list li { margin-bottom: 0.4rem; font-size: 1.25rem; line-height: 1.6; }

/* ===== Feature grid ===== */
.g7d3-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
.g7d3-feature {
  background: var(--g7d3-bg-3); border-radius: 0.8rem; padding: 1rem;
  text-align: center; border: 1px solid var(--g7d3-border);
}
.g7d3-feature i { font-size: 2rem; color: var(--g7d3-gold); }
.g7d3-feature h4 { font-size: 1.2rem; color: var(--g7d3-text); margin: 0.4rem 0; }
.g7d3-feature p { font-size: 1.1rem; color: var(--g7d3-muted); line-height: 1.4; }

/* ===== RTP table ===== */
.g7d3-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.2rem; }
.g7d3-rtp-table th, .g7d3-rtp-table td {
  padding: 0.7rem 0.5rem; border-bottom: 1px solid var(--g7d3-border); text-align: left;
}
.g7d3-rtp-table th { color: var(--g7d3-gold); }
.g7d3-rtp-table td:last-child { color: var(--g7d3-green); font-weight: 700; }

/* ===== Testimonials ===== */
.g7d3-testi {
  background: rgba(60,60,60,0.7); border-left: 0.3rem solid var(--g7d3-accent);
  padding: 0.9rem 1rem; border-radius: 0.6rem; margin-bottom: 0.7rem;
}
.g7d3-testi p { font-size: 1.2rem; color: var(--g7d3-text); font-style: italic; line-height: 1.5; }
.g7d3-testi .g7d3-stars { color: var(--g7d3-gold); margin: 0.3rem 0; }
.g7d3-testi cite { color: var(--g7d3-muted); font-size: 1.1rem; }

/* ===== Payment ===== */
.g7d3-pay-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.g7d3-pay {
  background: var(--g7d3-bg-3); padding: 0.5rem 0.9rem; border-radius: 0.6rem;
  font-size: 1.1rem; color: var(--g7d3-text); border: 1px solid var(--g7d3-border);
  display: flex; align-items: center; gap: 0.4rem;
}

/* ===== Winners ===== */
.g7d3-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.6rem 0.8rem; background: rgba(60,60,60,0.5);
  border-radius: 0.6rem; margin-bottom: 0.5rem; font-size: 1.2rem;
}
.g7d3-winner b { color: var(--g7d3-green); }

/* ===== Footer ===== */
.g7d3-footer {
  background: rgba(27,38,59,0.95); border-top: 1px solid var(--g7d3-border);
  padding: 1.6rem 1.2rem 2rem; margin-top: 1.6rem;
}
.g7d3-footer h4 { color: var(--g7d3-gold); font-size: 1.3rem; margin-bottom: 0.6rem; }
.g7d3-footer p { font-size: 1.2rem; color: var(--g7d3-muted); line-height: 1.6; margin-bottom: 0.8rem; }
.g7d3-footer-links {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.8rem 0;
}
.g7d3-footer-links a { font-size: 1.15rem; color: var(--g7d3-muted); }
.g7d3-footer-copy {
  margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid var(--g7d3-border);
  font-size: 1.1rem; color: var(--g7d3-muted); text-align: center;
}

/* ===== Mobile bottom nav ===== */
.g7d3-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--g7d3-bg-2), var(--g7d3-bg));
  border-top: 1px solid var(--g7d3-border);
  display: flex; justify-content: space-around; align-items: stretch;
  height: 6rem; max-width: 430px; margin: 0 auto;
  box-shadow: 0 -0.3rem 1rem rgba(0,0,0,0.4);
}
.g7d3-nav-item {
  flex: 1; min-width: 6rem; min-height: 6rem;
  background: transparent; border: none; color: var(--g7d3-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.2rem; cursor: pointer; padding: 0.4rem; position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
}
.g7d3-nav-item i, .g7d3-nav-item .material-icons-outlined,
.g7d3-nav-item ion-icon { font-size: 2.2rem; }
.g7d3-nav-item ion-icon { width: 2.2rem; height: 2.2rem; }
.g7d3-nav-item span { font-size: 1rem; }
.g7d3-nav-item:active { transform: scale(0.92); }
.g7d3-nav-item.active { color: var(--g7d3-gold); }
.g7d3-nav-item.active::before {
  content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 0.25rem;
  background: var(--g7d3-gold); border-radius: 0 0 0.3rem 0.3rem;
}
.g7d3-nav-badge {
  position: absolute; top: 0.5rem; right: 1.3rem;
  background: var(--g7d3-accent-2); color: #fff; font-size: 0.9rem;
  padding: 0.05rem 0.4rem; border-radius: 0.6rem; line-height: 1.3;
}

@media (min-width: 769px) {
  .g7d3-bottom-nav { display: none; }
  body { max-width: 430px; }
  .g7d3-main { padding-bottom: 1.6rem; }
}
@media (max-width: 768px) {
  .g7d3-main { padding-bottom: 8rem; }
}
