/*!
 * King PH Register Login - Layout Stylesheet
 * Mobile-first HTML5 design. Root font 62.5% (1rem = 10px).
 * Palette: #FFCC33 (gold) | #B8860B (deep gold) | #EEE8AA (light gold)
 *          #141414 (dark bg) | #1E90FF (accent blue)
 * All custom classes use the gc8c- prefix.
 */

:root {
  --gold: #FFCC33;
  --gold-deep: #B8860B;
  --gold-soft: #EEE8AA;
  --ink: #141414;
  --ink-2: #1c1c1c;
  --ink-3: #262626;
  --blue: #1E90FF;
  --blue-deep: #0f6fc2;
  --line: rgba(255, 204, 51, 0.18);
  --text: #f4f1e6;
  --muted: #b9b3a0;
  --danger: #ff5a5a;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --container: 430px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 50% -10%, #202014 0%, #141414 55%, #0d0d0d 100%);
  color: var(--text);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  overflow-x: hidden;
}

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

.gc8c-container {
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}

/* ============ HEADER ============ */
.gc8c-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, #161616 0%, #101010 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.gc8c-header-inner {
  max-width: 430px;
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.gc8c-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 0;
}
.gc8c-logo img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: #000;
}
.gc8c-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.gc8c-logo-text strong {
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 0.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gc8c-logo-text span {
  color: var(--muted);
  font-size: 1rem;
}

.gc8c-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.35rem;
  border-radius: 999px;
  padding: 0.7rem 1.3rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.gc8c-btn:active { transform: translateY(1px) scale(0.98); }
.gc8c-btn-register {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(255, 204, 51, 0.35);
}
.gc8c-btn-register:hover { filter: brightness(1.08); color: #1a1a1a; }
.gc8c-btn-login {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.gc8c-btn-login:hover { background: rgba(255, 204, 51, 0.1); color: var(--gold); }

.gc8c-menu-btn {
  background: transparent;
  border: 0;
  color: var(--gold);
  font-size: 2.2rem;
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  border-radius: 8px;
}

/* ============ HERO ============ */
.gc8c-hero {
  position: relative;
  margin-top: 1rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.gc8c-hero-track { position: relative; }
.gc8c-hero-slide {
  position: relative;
  display: none;
  min-height: 220px;
}
.gc8c-hero-slide.gc8c-slide-active { display: block; }
.gc8c-hero-slide img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  filter: brightness(0.65);
}
.gc8c-hero-cap {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  bottom: 1.6rem;
  z-index: 2;
}
.gc8c-hero-cap h1 {
  margin: 0 0 0.5rem;
  font-size: 2.4rem;
  color: var(--gold);
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  line-height: 1.15;
}
.gc8c-hero-cap p {
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: 1.35rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}
.gc8c-hero-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
}
.gc8c-hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 0; padding: 0; cursor: pointer;
}
.gc8c-hero-dot.gc8c-dot-active { background: var(--gold); width: 22px; border-radius: 6px; }
.gc8c-hero-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 0.6rem;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
}
.gc8c-hero-nav button {
  pointer-events: auto;
  background: rgba(0,0,0,0.45);
  border: 0;
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
}

/* ============ FEATURE STRIP ============ */
.gc8c-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin: 1rem 0;
}
.gc8c-feature {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 0.4rem;
  text-align: center;
}
.gc8c-feature i, .gc8c-feature .material-icons-outlined {
  font-size: 2.2rem;
  color: var(--gold);
}
.gc8c-feature span {
  display: block;
  margin-top: 0.3rem;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
}

/* ============ SECTION TITLES ============ */
.gc8c-section {
  margin: 2rem 0;
}
.gc8c-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.gc8c-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  margin: 0;
}
.gc8c-section-title i, .gc8c-section-title .material-icons {
  color: var(--gold);
  font-size: 2rem;
}
.gc8c-section-more {
  font-size: 1.2rem;
  color: var(--blue);
  font-weight: 600;
}

/* ============ FILTER BAR ============ */
.gc8c-filter-bar {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.gc8c-filter-bar::-webkit-scrollbar { height: 3px; }
.gc8c-filter-btn {
  flex: 0 0 auto;
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}
.gc8c-filter-btn.gc8c-filter-active,
.gc8c-filter-btn:hover {
  background: var(--gold);
  color: #1a1a1a;
  border-color: var(--gold);
}

/* ============ GAME GRID ============ */
.gc8c-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.gc8c-game-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.gc8c-game-card:active { transform: scale(0.97); }
.gc8c-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0a0a0a;
}
.gc8c-game-name {
  display: block;
  padding: 0.5rem 0.4rem;
  font-size: 1.1rem;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.gc8c-game-badge {
  position: absolute;
  top: 0.4rem; left: 0.4rem;
  background: var(--danger);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  line-height: 1.4;
}
.gc8c-game-badge.gc8c-badge-hot { background: #ff3b3b; }
.gc8c-game-badge.gc8c-badge-new { background: var(--blue); }
.gc8c-game-play {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gc8c-game-card:hover .gc8c-game-play,
.gc8c-game-card:focus-within .gc8c-game-play { opacity: 1; }
.gc8c-game-play span {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* ============ FEATURED GAMES (large) ============ */
.gc8c-featured {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
}
.gc8c-featured-card {
  display: flex;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.gc8c-featured-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  flex: 0 0 auto;
}
.gc8c-featured-body {
  padding: 0.9rem;
  flex: 1;
  min-width: 0;
}
.gc8c-featured-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
  color: var(--gold);
}
.gc8c-featured-body p {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.35;
}
.gc8c-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--blue);
  color: #fff;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 1.15rem;
  font-weight: 700;
}

/* ============ PROMO BANNER ============ */
.gc8c-promo {
  background: linear-gradient(135deg, #2a1f02 0%, #141414 60%);
  border: 1px solid var(--gold-deep);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  text-align: center;
  margin: 1.6rem 0;
  position: relative;
  overflow: hidden;
}
.gc8c-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,204,51,0.25), transparent 60%);
  pointer-events: none;
}
.gc8c-promo h3 {
  position: relative;
  margin: 0 0 0.4rem;
  color: var(--gold);
  font-size: 2rem;
}
.gc8c-promo p {
  position: relative;
  margin: 0 0 1rem;
  color: var(--gold-soft);
  font-size: 1.25rem;
}
.gc8c-promo .gc8c-btn { position: relative; padding: 0.9rem 2rem; font-size: 1.4rem; }

/* ============ SEO CONTENT ============ */
.gc8c-content {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  margin: 1.6rem 0;
}
.gc8c-content h2 {
  color: var(--gold);
  font-size: 1.9rem;
  margin: 1.6rem 0 0.7rem;
}
.gc8c-content h2:first-child { margin-top: 0; }
.gc8c-content h3 {
  color: var(--gold-soft);
  font-size: 1.55rem;
  margin: 1.2rem 0 0.5rem;
}
.gc8c-content p {
  color: var(--text);
  font-size: 1.3rem;
  margin: 0 0 0.9rem;
  line-height: 1.6;
}
.gc8c-content ul, .gc8c-content ol {
  margin: 0 0 1rem 1.4rem;
  padding: 0;
}
.gc8c-content li {
  font-size: 1.25rem;
  margin-bottom: 0.45rem;
  line-height: 1.55;
}
.gc8c-content strong { color: var(--gold); }
.gc8c-content a { color: var(--blue); text-decoration: underline; }

/* ============ FAQ ============ */
.gc8c-faq { margin: 1.6rem 0; }
.gc8c-faq-item {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.7rem;
  overflow: hidden;
}
.gc8c-faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.35rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}
.gc8c-faq-q .gc8c-faq-icon { transition: transform 0.2s ease; color: var(--gold); }
.gc8c-faq-item.gc8c-faq-open .gc8c-faq-icon { transform: rotate(45deg); }
.gc8c-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1.2rem;
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.55;
}
.gc8c-faq-item.gc8c-faq-open .gc8c-faq-a {
  max-height: 600px;
  padding: 0 1.2rem 1rem;
}

/* ============ MOBILE MENU ============ */
.gc8c-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}
.gc8c-overlay.gc8c-overlay-show { opacity: 1; pointer-events: auto; }
.gc8c-mobile-menu {
  position: fixed;
  top: 0; right: -280px;
  width: 270px;
  height: 100%;
  background: #111;
  border-left: 1px solid var(--line);
  z-index: 9999;
  transition: right 0.28s ease;
  overflow-y: auto;
  padding: 1.2rem;
}
.gc8c-mobile-menu.gc8c-menu-open { right: 0; }
.gc8c-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.gc8c-menu-head strong { color: var(--gold); font-size: 1.6rem; }
.gc8c-menu-close {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}
.gc8c-menu-list { list-style: none; margin: 0; padding: 0; }
.gc8c-menu-list li { margin-bottom: 0.3rem; }
.gc8c-menu-list a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem 0.8rem;
  color: var(--text);
  font-size: 1.3rem;
  border-radius: 10px;
  font-weight: 600;
}
.gc8c-menu-list a:hover { background: var(--ink-3); color: var(--gold); }
.gc8c-menu-list a i, .gc8c-menu-list a .material-icons-outlined {
  color: var(--gold);
  font-size: 1.8rem;
  width: 22px;
  text-align: center;
}
.gc8c-menu-cta {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* ============ FOOTER ============ */
.gc8c-footer {
  background: #0d0d0d;
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
}
.gc8c-footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}
.gc8c-footer-col h4 {
  color: var(--gold);
  font-size: 1.35rem;
  margin: 0 0 0.6rem;
}
.gc8c-footer-col a {
  display: block;
  color: var(--muted);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.gc8c-footer-col a:hover { color: var(--gold); }
.gc8c-footer-bottom {
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 1.1rem;
}
.gc8c-footer-bottom p { margin: 0.3rem 0; }
.gc8c-pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.8rem 0;
}
.gc8c-pay-row span {
  background: var(--ink-2);
  border: 1px solid var(--line);
  color: var(--gold-soft);
  font-size: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-weight: 600;
}

/* ============ MOBILE BOTTOM NAV ============ */
.gc8c-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  border-top: 1px solid var(--gold-deep);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.55);
}
.gc8c-bottom-nav a, .gc8c-bottom-nav button {
  flex: 1;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  position: relative;
  transition: color 0.18s ease;
}
.gc8c-bottom-nav a i,
.gc8c-bottom-nav a .material-icons,
.gc8c-bottom-nav button i { font-size: 22px; }
.gc8c-bottom-nav a:hover, .gc8c-bottom-nav button:hover { color: var(--gold); }
.gc8c-bottom-nav .gc8c-nav-active { color: var(--gold); }
.gc8c-bottom-nav .gc8c-nav-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 30px;
  height: 3px;
  background: var(--gold);
  border-radius: 0 0 4px 4px;
}
.gc8c-nav-promo {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)) !important;
  color: #1a1a1a !important;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -18px;
  flex: 0 0 auto !important;
  min-width: 50px !important;
  box-shadow: 0 4px 14px rgba(255,204,51,0.5);
  border: 3px solid #141414;
}
.gc8c-nav-promo i, .gc8c-nav-promo .material-icons { font-size: 24px; color: #1a1a1a; }
.gc8c-nav-promo span { font-size: 0.9rem; }

/* Desktop: hide bottom nav, show wider header inner */
@media (min-width: 769px) {
  .gc8c-bottom-nav { display: none; }
  body { padding-bottom: 0; }
}

/* Mobile: bottom padding so content isn't hidden behind bottom nav */
@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* Reveal animation */
.gc8c-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.gc8c-reveal.gc8c-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Utility */
.gc8c-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.gc8c-text-center { text-align: center; }
.gc8c-mt-1 { margin-top: 0.5rem; }
.gc8c-mt-2 { margin-top: 1rem; }
