/* ph828 layout styles - g15c- prefix */
:root {
  --g15c-bg: #333333;
  --g15c-bg-deep: #242424;
  --g15c-bg-card: #3d3d3d;
  --g15c-yellow: #FFF176;
  --g15c-coral: #FF7F50;
  --g15c-orange: #FF8C00;
  --g15c-text: #FFF8E7;
  --g15c-text-muted: #d0c8b0;
  --g15c-border: rgba(255, 241, 118, 0.22);
  --g15c-header-h: 5.6rem;
  --g15c-bottom-h: 6.2rem;
  --g15c-radius: 1rem;
  --g15c-shadow: 0 0.4rem 1.2rem rgba(0, 0, 0, 0.35);
}

*,
*::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: 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.5rem;
  background: var(--g15c-bg);
  color: var(--g15c-text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--g15c-yellow);
  text-decoration: none;
  font-weight: 700;
}

a:hover {
  color: var(--g15c-coral);
}

ul {
  list-style: none;
}

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

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

/* Header */
.g15c-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #2a2a2a 0%, #333333 100%);
  border-bottom: 1px solid var(--g15c-border);
  box-shadow: var(--g15c-shadow);
}

.g15c-header-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--g15c-header-h);
  padding: 0 1.2rem;
  gap: 0.8rem;
}

.g15c-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  color: var(--g15c-yellow);
}

.g15c-logo img {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.6rem;
}

.g15c-logo-text {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

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

.g15c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  min-width: 4.4rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  color: #1a1a1a;
  background: var(--g15c-coral);
}

.g15c-btn:active {
  transform: scale(0.96);
}

.g15c-btn-register {
  background: linear-gradient(135deg, var(--g15c-orange), var(--g15c-coral));
  color: #1a1a1a;
  box-shadow: 0 0.2rem 0.8rem rgba(255, 127, 80, 0.4);
}

.g15c-btn-login {
  background: transparent;
  color: var(--g15c-yellow);
  border: 1px solid var(--g15c-yellow);
}

.g15c-btn-login:hover {
  background: rgba(255, 241, 118, 0.12);
}

.g15c-btn-primary {
  background: linear-gradient(135deg, var(--g15c-yellow), var(--g15c-orange));
  color: #222;
  width: 100%;
  font-size: 1.4rem;
}

.g15c-btn-outline {
  background: transparent;
  color: var(--g15c-yellow);
  border: 1px solid var(--g15c-yellow);
}

.g15c-menu-btn {
  background: transparent;
  border: none;
  color: var(--g15c-yellow);
  width: 4.4rem;
  height: 4.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 2.2rem;
}

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

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

.g15c-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 30rem);
  height: 100%;
  background: #2a2a2a;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  padding: 2rem 1.6rem;
  overflow-y: auto;
  border-left: 1px solid var(--g15c-border);
}

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

.g15c-menu-title {
  color: var(--g15c-yellow);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.6rem;
}

.g15c-menu-list a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0.8rem;
  min-height: 4.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--g15c-text);
  font-size: 1.4rem;
  font-weight: 600;
}

.g15c-menu-list a:hover {
  color: var(--g15c-yellow);
  background: rgba(255, 241, 118, 0.06);
}

/* Main */
.g15c-main {
  max-width: 430px;
  margin: 0 auto;
  padding-top: calc(var(--g15c-header-h) + 1rem);
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .g15c-main {
    padding-bottom: 8rem;
  }
}

/* Carousel */
.g15c-carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--g15c-radius);
  margin: 0 1.2rem 1.6rem;
  box-shadow: var(--g15c-shadow);
  cursor: pointer;
}

.g15c-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.g15c-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.g15c-carousel-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.g15c-carousel-dots {
  position: absolute;
  bottom: 0.8rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.g15c-carousel-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
}

.g15c-dot-active {
  background: var(--g15c-yellow);
  transform: scale(1.2);
}

/* Hero / titles */
.g15c-hero {
  padding: 0 1.2rem 1.6rem;
  text-align: center;
}

.g15c-h1 {
  font-size: 1.8rem;
  line-height: 2.4rem;
  color: var(--g15c-yellow);
  font-weight: 800;
  margin-bottom: 1rem;
}

.g15c-lead {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--g15c-text-muted);
  margin-bottom: 1.2rem;
}

.g15c-section {
  padding: 1.6rem 1.2rem;
}

.g15c-section-alt {
  background: var(--g15c-bg-deep);
}

.g15c-h2 {
  font-size: 1.6rem;
  line-height: 2.2rem;
  color: var(--g15c-coral);
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.g15c-h3 {
  font-size: 1.4rem;
  line-height: 2rem;
  color: var(--g15c-yellow);
  font-weight: 700;
  margin: 1.2rem 0 0.8rem;
}

.g15c-text {
  font-size: 1.3rem;
  line-height: 2rem;
  color: var(--g15c-text-muted);
  margin-bottom: 1rem;
}

.g15c-text strong,
.g15c-text b {
  color: var(--g15c-yellow);
}

/* Game grid */
.g15c-cat-title {
  font-size: 1.5rem;
  color: var(--g15c-yellow);
  font-weight: 800;
  margin: 0.4rem 0 1rem;
  padding-left: 0.4rem;
  border-left: 0.3rem solid var(--g15c-coral);
}

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

.g15c-game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  background: var(--g15c-bg-card);
  border-radius: 0.8rem;
  padding: 0.6rem 0.3rem 0.7rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-height: 4.4rem;
}

.g15c-game-card:hover,
.g15c-game-card:active {
  transform: translateY(-0.2rem) scale(1.03);
  border-color: var(--g15c-orange);
}

.g15c-game-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.6rem;
  margin-bottom: 0.4rem;
}

.g15c-game-name {
  font-size: 1rem;
  line-height: 1.3rem;
  color: var(--g15c-text);
  font-weight: 600;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Cards */
.g15c-card {
  background: var(--g15c-bg-card);
  border-radius: var(--g15c-radius);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--g15c-border);
}

.g15c-feature-list {
  display: grid;
  gap: 1rem;
}

.g15c-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.18);
  padding: 1.2rem;
  border-radius: 0.8rem;
}

.g15c-feature-icon {
  width: 4rem;
  height: 4rem;
  min-width: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--g15c-orange), var(--g15c-coral));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  font-size: 2rem;
}

.g15c-feature-body h3 {
  color: var(--g15c-yellow);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.g15c-feature-body p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--g15c-text-muted);
}

/* Steps */
.g15c-steps {
  counter-reset: g15cstep;
  display: grid;
  gap: 1rem;
}

.g15c-step {
  counter-increment: g15cstep;
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 4.4rem;
  background: var(--g15c-bg-card);
  border-radius: 0.8rem;
  border-left: 0.3rem solid var(--g15c-orange);
}

.g15c-step::before {
  content: counter(g15cstep);
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--g15c-yellow);
  color: #222;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g15c-step h3 {
  color: var(--g15c-yellow);
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.g15c-step p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--g15c-text-muted);
}

/* FAQ */
.g15c-faq-item {
  background: var(--g15c-bg-card);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border: 1px solid var(--g15c-border);
}

.g15c-faq-item h3 {
  color: var(--g15c-yellow);
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.g15c-faq-item p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--g15c-text-muted);
}

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

.g15c-rtp-table th,
.g15c-rtp-table td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--g15c-border);
}

.g15c-rtp-table th {
  color: var(--g15c-yellow);
  background: rgba(0, 0, 0, 0.25);
}

.g15c-rtp-table td {
  color: var(--g15c-text-muted);
}

.g15c-rtp-high {
  color: #7CFC00 !important;
  font-weight: 700;
}

/* Testimonials */
.g15c-review {
  background: var(--g15c-bg-card);
  border-radius: 0.8rem;
  padding: 1.2rem;
  margin-bottom: 0.8rem;
  border-left: 0.3rem solid var(--g15c-coral);
}

.g15c-review-name {
  color: var(--g15c-yellow);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.g15c-review p {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--g15c-text-muted);
  font-style: italic;
}

.g15c-stars {
  color: var(--g15c-orange);
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

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

.g15c-pay-item,
.g15c-winner-item {
  background: var(--g15c-bg-card);
  border-radius: 0.8rem;
  padding: 1rem 0.6rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--g15c-text);
  border: 1px solid var(--g15c-border);
}

.g15c-pay-item i,
.g15c-pay-item .material-icons,
.g15c-pay-item ion-icon {
  font-size: 2.2rem;
  color: var(--g15c-coral);
  display: block;
  margin: 0 auto 0.4rem;
}

.g15c-winner-amt {
  color: var(--g15c-yellow);
  font-weight: 800;
  font-size: 1.3rem;
}

/* CTA band */
.g15c-cta {
  margin: 1.6rem 1.2rem;
  padding: 1.8rem 1.4rem;
  border-radius: var(--g15c-radius);
  background: linear-gradient(135deg, #4a2c14 0%, #333333 50%, #3d220f 100%);
  border: 1px solid var(--g15c-orange);
  text-align: center;
}

.g15c-cta h2 {
  color: var(--g15c-yellow);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.g15c-cta p {
  color: var(--g15c-text-muted);
  font-size: 1.2rem;
  line-height: 1.8rem;
  margin-bottom: 1.2rem;
}

.g15c-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin: 1rem 0;
}

.g15c-inline-links a {
  color: var(--g15c-coral);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: underline;
}

/* Footer */
.g15c-footer {
  background: var(--g15c-bg-deep);
  border-top: 1px solid var(--g15c-border);
  padding: 2rem 1.2rem 2rem;
  max-width: 430px;
  margin: 0 auto;
}

.g15c-footer-brand {
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--g15c-text-muted);
  margin-bottom: 1.2rem;
}

.g15c-footer-promo {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.g15c-footer-promo .g15c-btn {
  min-height: 4rem;
  padding: 0.6rem 1rem;
  font-size: 1.1rem;
  flex: 1 1 auto;
}

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

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

.g15c-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: #9a9278;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Bottom nav - unique amber glow bar */
.g15c-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 6.2rem;
  background: linear-gradient(0deg, #1f1f1f 0%, #2e2e2e 100%);
  border-top: 2px solid var(--g15c-orange);
  box-shadow: 0 -0.4rem 1.6rem rgba(255, 140, 0, 0.18);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  max-width: 430px;
  margin: 0 auto;
  padding: 0.3rem 0.2rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
}

.g15c-bottom-nav-item {
  flex: 1;
  min-width: 6rem;
  min-height: 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: var(--g15c-text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  padding: 0.4rem;
  border-radius: 0.8rem;
}

.g15c-bottom-nav-item i,
.g15c-bottom-nav-item .material-icons,
.g15c-bottom-nav-item ion-icon,
.g15c-bottom-nav-item .bi {
  font-size: 2.2rem;
  line-height: 1;
}

.g15c-bottom-nav-item .material-icons {
  font-size: 2.4rem;
}

.g15c-bottom-nav-item:active {
  transform: scale(0.92);
  color: var(--g15c-yellow);
}

.g15c-bottom-nav-item.g15c-nav-active {
  color: var(--g15c-yellow);
  background: rgba(255, 241, 118, 0.1);
}

.g15c-bottom-nav-item.g15c-nav-active i,
.g15c-bottom-nav-item.g15c-nav-active .material-icons {
  color: var(--g15c-coral);
}

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

  body {
    background: #1a1a1a;
  }

  .g15c-header,
  .g15c-main,
  .g15c-footer,
  .g15c-bottom-nav {
    max-width: 430px;
  }

  .g15c-header {
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
  }
}

/* Utility */
.g15c-mt-1 { margin-top: 1rem; }
.g15c-mb-1 { margin-bottom: 1rem; }
.g15c-mb-2 { margin-bottom: 1.6rem; }
.g15c-text-center { text-align: center; }
.g15c-promo-link {
  color: var(--g15c-coral);
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.g15c-badge {
  display: inline-block;
  background: var(--g15c-orange);
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  margin-left: 0.4rem;
}
