/* pacman super ace - mobile-first styles */
:root {
  --g706-primary: #B22222;
  --g706-secondary: #B0E0E6;
  --g706-accent: #E0FFFF;
  --g706-bg: #0C0C0C;
  --g706-bg2: #161616;
  --g706-bg3: #1e1e1e;
  --g706-text: #E0FFFF;
  --g706-muted: #B0E0E6;
  --g706-white: #ffffff;
  --g706-radius: 0.8rem;
  --g706-shadow: 0 0.4rem 1.2rem rgba(178, 34, 34, 0.25);
  --g706-header-h: 5.6rem;
  --g706-bottom-h: 6.2rem;
}

*, *::before, *::after { 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;
  background: var(--g706-bg);
  color: var(--g706-text);
  font-size: 1.4rem;
  line-height: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--g706-secondary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--g706-accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.g706-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

.g706-wrapper { width: 100%; max-width: 430px; margin: 0 auto; }

/* Header */
.g706-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #121212 0%, #0C0C0C 100%);
  border-bottom: 1px solid rgba(176, 224, 230, 0.15);
  height: var(--g706-header-h);
}

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

.g706-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

.g706-logo img {
  width: 3rem;
  height: 3rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.g706-logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--g706-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g706-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.g706-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 4.4rem;
  min-width: 4.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 0.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.g706-btn:active { transform: scale(0.95); }

.g706-btn-primary {
  background: linear-gradient(135deg, #B22222 0%, #8B1A1A 100%);
  color: var(--g706-white);
  box-shadow: 0 0.2rem 0.8rem rgba(178, 34, 34, 0.4);
}

.g706-btn-primary:hover {
  background: linear-gradient(135deg, #D32F2F 0%, #B22222 100%);
  box-shadow: var(--g706-shadow);
}

.g706-btn-outline {
  background: transparent;
  color: var(--g706-accent);
  border: 1px solid var(--g706-secondary);
}

.g706-btn-outline:hover {
  background: rgba(176, 224, 230, 0.12);
}

.g706-btn-sm {
  min-height: 3.6rem;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
}

.g706-btn-block {
  width: 100%;
  margin: 0.8rem 0;
}

.g706-menu-toggle {
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--g706-accent);
  font-size: 2.2rem;
}

/* Mobile menu */
.g706-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.g706-overlay-show {
  opacity: 1;
  visibility: visible;
}

.g706-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100%;
  background: var(--g706-bg2);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
  padding: 2rem 1.6rem 8rem;
  border-left: 1px solid rgba(176, 224, 230, 0.12);
}

.g706-menu-open { transform: translateX(0); }

.g706-menu-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 4.4rem;
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--g706-accent);
}

.g706-menu-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--g706-accent);
  margin: 1rem 0 1.6rem;
}

.g706-menu-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.8rem;
  min-height: 4.4rem;
  border-bottom: 1px solid rgba(176, 224, 230, 0.08);
  color: var(--g706-muted);
  font-size: 1.3rem;
  font-weight: 600;
}

.g706-menu-link:hover,
.g706-menu-link:active {
  color: var(--g706-accent);
  background: rgba(178, 34, 34, 0.12);
}

.g706-menu-link i,
.g706-menu-link .material-icons,
.g706-menu-link ion-icon {
  font-size: 2rem;
  width: 2.4rem;
  text-align: center;
  color: var(--g706-primary);
}

/* Main */
.g706-main {
  padding-top: calc(var(--g706-header-h) + 1rem);
  padding-bottom: 2rem;
}

/* Carousel */
.g706-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto 1.6rem;
  border-radius: var(--g706-radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--g706-bg3);
}

.g706-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  cursor: pointer;
}

.g706-slide-active { opacity: 1; z-index: 1; }

.g706-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g706-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: rgba(12, 12, 12, 0.55);
  color: var(--g706-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.g706-carousel-prev { left: 0.8rem; }
.g706-carousel-next { right: 0.8rem; }

.g706-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.g706-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(224, 255, 255, 0.35);
  transition: background 0.2s, transform 0.2s;
}

.g706-dot-active {
  background: var(--g706-primary);
  transform: scale(1.25);
}

/* Sections */
.g706-section {
  padding: 1.6rem 0;
}

.g706-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--g706-accent);
  margin-bottom: 1.2rem;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g706-section-title i,
.g706-section-title .material-icons {
  color: var(--g706-primary);
  font-size: 2rem;
}

.g706-h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--g706-accent);
  line-height: 1.35;
  margin: 0.8rem 0 1.2rem;
  text-align: center;
}

.g706-lead {
  font-size: 1.35rem;
  line-height: 1.6;
  color: var(--g706-muted);
  margin-bottom: 1.2rem;
}

.g706-text {
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--g706-muted);
  margin-bottom: 1rem;
}

.g706-text strong,
.g706-promo-text {
  color: var(--g706-primary);
  font-weight: 700;
  cursor: pointer;
}

.g706-promo-text:hover { color: #ff4d4d; text-decoration: underline; }

/* Game grid */
.g706-cat-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g706-secondary);
  margin: 1.6rem 0 1rem;
  padding-left: 0.8rem;
  border-left: 3px solid var(--g706-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g706-game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.g706-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s;
  min-width: 0;
}

.g706-game-card:active { transform: scale(0.94); }

.g706-game-card img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 0.8rem;
  object-fit: cover;
  border: 1px solid rgba(176, 224, 230, 0.12);
  background: var(--g706-bg3);
}

.g706-game-card span {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--g706-muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Cards */
.g706-card {
  background: var(--g706-bg2);
  border: 1px solid rgba(176, 224, 230, 0.1);
  border-radius: var(--g706-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

.g706-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g706-accent);
  margin-bottom: 0.8rem;
}

.g706-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.g706-feature-item {
  background: var(--g706-bg3);
  border-radius: 0.8rem;
  padding: 1.2rem;
  text-align: center;
}

.g706-feature-item i,
.g706-feature-item .material-icons,
.g706-feature-item ion-icon {
  font-size: 2.4rem;
  color: var(--g706-primary);
  margin-bottom: 0.6rem;
}

.g706-feature-item h3 {
  font-size: 1.25rem;
  color: var(--g706-accent);
  margin-bottom: 0.4rem;
}

.g706-feature-item p {
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--g706-muted);
}

/* FAQ */
.g706-faq-item {
  background: var(--g706-bg2);
  border: 1px solid rgba(176, 224, 230, 0.1);
  border-radius: 0.8rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.g706-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem;
  min-height: 4.4rem;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--g706-accent);
}

.g706-faq-q i { color: var(--g706-primary); transition: transform 0.2s; }

.g706-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  padding: 0 1.2rem;
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--g706-muted);
}

.g706-faq-open .g706-faq-a {
  max-height: 30rem;
  padding: 0 1.2rem 1.2rem;
}

.g706-faq-open .g706-faq-q i { transform: rotate(180deg); }

/* RTP table */
.g706-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
  margin: 1rem 0;
}

.g706-rtp-table th,
.g706-rtp-table td {
  padding: 0.9rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(176, 224, 230, 0.1);
}

.g706-rtp-table th {
  color: var(--g706-accent);
  font-weight: 700;
  background: var(--g706-bg3);
}

.g706-rtp-table td { color: var(--g706-muted); }
.g706-rtp-table tr:hover td { background: rgba(178, 34, 34, 0.08); }

/* Winners / testimonials */
.g706-winner-row,
.g706-review-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--g706-bg2);
  border-radius: 0.8rem;
  padding: 1rem;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(176, 224, 230, 0.08);
}

.g706-winner-amount {
  margin-left: auto;
  color: #4caf50;
  font-weight: 700;
  font-size: 1.3rem;
}

.g706-stars { color: #ffc107; font-size: 1.2rem; letter-spacing: 0.1rem; }

/* Payment */
.g706-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.g706-pay-item {
  background: var(--g706-bg3);
  border-radius: 0.6rem;
  padding: 1rem 0.4rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--g706-muted);
  font-weight: 600;
}

.g706-pay-item i {
  display: block;
  font-size: 2.2rem;
  color: var(--g706-primary);
  margin-bottom: 0.4rem;
}

/* CTA box */
.g706-cta {
  background: linear-gradient(135deg, rgba(178, 34, 34, 0.25) 0%, rgba(12, 12, 12, 0.9) 100%);
  border: 1px solid rgba(178, 34, 34, 0.45);
  border-radius: var(--g706-radius);
  padding: 2rem 1.4rem;
  text-align: center;
  margin: 1.6rem 0;
}

.g706-cta h2 {
  font-size: 1.8rem;
  color: var(--g706-accent);
  margin-bottom: 0.8rem;
}

.g706-cta p {
  font-size: 1.3rem;
  line-height: 1.55;
  color: var(--g706-muted);
  margin-bottom: 1.2rem;
}

/* Steps */
.g706-steps { counter-reset: g706step; }
.g706-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
  align-items: flex-start;
}
.g706-step::before {
  counter-increment: g706step;
  content: counter(g706step);
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--g706-primary);
  color: var(--g706-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
}
.g706-step-body h3 {
  font-size: 1.35rem;
  color: var(--g706-accent);
  margin-bottom: 0.3rem;
}
.g706-step-body p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--g706-muted);
}

/* Footer */
.g706-footer {
  background: var(--g706-bg2);
  border-top: 1px solid rgba(176, 224, 230, 0.12);
  padding: 2.4rem 0 2rem;
  margin-top: 1rem;
}

.g706-footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g706-accent);
  margin-bottom: 0.8rem;
}

.g706-footer-desc {
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--g706-muted);
  margin-bottom: 1.4rem;
}

.g706-footer-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.g706-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin-bottom: 1.6rem;
}

.g706-footer-links a {
  font-size: 1.2rem;
  color: var(--g706-secondary);
  min-height: 3.2rem;
  display: flex;
  align-items: center;
}

.g706-footer-links a:hover { color: var(--g706-accent); }

.g706-seo-links {
  margin: 1.2rem 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(176, 224, 230, 0.08);
}

.g706-seo-links h3 {
  font-size: 1.3rem;
  color: var(--g706-accent);
  margin-bottom: 0.8rem;
}

.g706-seo-links a {
  display: inline-block;
  margin: 0 0.8rem 0.6rem 0;
  font-size: 1.15rem;
  color: var(--g706-secondary);
  font-weight: 600;
}

.g706-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(176, 224, 230, 0.55);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(176, 224, 230, 0.08);
}

/* Bottom nav - unique ice-red style */
.g706-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--g706-bottom-h);
  background: linear-gradient(0deg, #0a0a0a 0%, #141414 100%);
  border-top: 2px solid var(--g706-primary);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  box-shadow: 0 -0.4rem 1.6rem rgba(178, 34, 34, 0.2);
}

.g706-bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 6rem;
  min-height: 6rem;
  color: var(--g706-muted);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.2s, transform 0.15s;
  position: relative;
}

.g706-bnav-item i,
.g706-bnav-item .material-icons,
.g706-bnav-item ion-icon,
.g706-bnav-item .bi,
.g706-bnav-item .ti {
  font-size: 2.2rem;
  line-height: 1;
}

.g706-bnav-item .material-icons { font-size: 2.4rem; }

.g706-bnav-item:active { transform: scale(0.9); color: var(--g706-accent); }

.g706-bnav-item.g706-bnav-active {
  color: var(--g706-primary);
}

.g706-bnav-item.g706-bnav-active::after {
  content: '';
  position: absolute;
  top: 0.4rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--g706-primary);
}

/* Mobile content padding for bottom nav */
@media (max-width: 768px) {
  .g706-main { padding-bottom: 8rem; }
  .g706-footer { padding-bottom: 8rem; }
}

/* Desktop */
@media (min-width: 769px) {
  .g706-bottom-nav { display: none; }
  body { background: #050505; }
  .g706-wrapper,
  .g706-container,
  .g706-header-inner,
  .g706-carousel {
    max-width: 430px;
  }
  .g706-header {
    background: rgba(12, 12, 12, 0.96);
  }
}

@media (max-width: 360px) {
  .g706-game-grid { grid-template-columns: repeat(3, 1fr); }
  .g706-logo-text { font-size: 1.15rem; }
  .g706-btn-sm { padding: 0.5rem 0.7rem; font-size: 1rem; }
}
