/* ==========================================================================
   ph365 app - core stylesheet
   Prefix: gf9e-
   Palette: #FAFAFA | #D3D3D3 | #5D5D5D | #1E1E1E | #00CED1 | #FF1493
   Mobile-first, max 430px on phones.
   ========================================================================== */

:root {
  --gf9e-bg: #1E1E1E;
  --gf9e-bg-soft: #262626;
  --gf9e-bg-card: #2b2b30;
  --gf9e-text: #FAFAFA;
  --gf9e-muted: #D3D3D3;
  --gf9e-gray: #5D5D5D;
  --gf9e-primary: #00CED1;
  --gf9e-primary-dark: #00a8aa;
  --gf9e-accent: #FF1493;
  --gf9e-accent-dark: #c90f72;
  --gf9e-gold: #ffcf4d;
  --gf9e-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --gf9e-radius: 14px;
  --gf9e-radius-sm: 10px;
  --gf9e-max: 430px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", sans-serif;
  background: var(--gf9e-bg);
  color: var(--gf9e-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  overflow-x: hidden;
}

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

a {
  color: var(--gf9e-primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--gf9e-accent); }

.gf9e-wrapper {
  width: 100%;
  max-width: var(--gf9e-max);
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ===================== Header ===================== */
.gf9e-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #161616, #1E1E1E 60%, #1a1a1a);
  border-bottom: 1px solid rgba(0, 206, 209, 0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.gf9e-header-inner {
  max-width: var(--gf9e-max);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

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

.gf9e-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.gf9e-logo-name {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(90deg, var(--gf9e-primary), var(--gf9e-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gf9e-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: none;
  border-radius: var(--gf9e-radius-sm);
  font-weight: 700;
  font-size: 1.25rem;
  padding: .65rem 1.1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  color: #fff;
  min-height: 36px;
}

.gf9e-btn:active { transform: scale(.96); }

.gf9e-btn-register {
  background: linear-gradient(135deg, var(--gf9e-accent), var(--gf9e-accent-dark));
  box-shadow: 0 4px 14px rgba(255, 20, 147, .35);
}

.gf9e-btn-login {
  background: linear-gradient(135deg, var(--gf9e-primary), var(--gf9e-primary-dark));
  box-shadow: 0 4px 14px rgba(0, 206, 209, .35);
}

.gf9e-icon-btn {
  background: transparent;
  color: var(--gf9e-text);
  font-size: 1.6rem;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

/* ===================== Mobile menu ===================== */
.gf9e-mobile-menu {
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: #181818;
  border-bottom: 1px solid rgba(0,206,209,.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
  z-index: 9999;
}

.gf9e-mobile-menu.gf9e-menu-open {
  max-height: 420px;
  padding: .6rem 0 1rem;
}

.gf9e-mobile-menu a {
  display: block;
  padding: .9rem 1.4rem;
  color: var(--gf9e-text);
  border-left: 3px solid transparent;
  font-size: 1.35rem;
}

.gf9e-mobile-menu a:hover,
.gf9e-mobile-menu a:focus {
  border-left-color: var(--gf9e-primary);
  background: rgba(0,206,209,.07);
  color: var(--gf9e-primary);
}

.gf9e-body-locked { overflow: hidden; }

/* ===================== Hero carousel ===================== */
.gf9e-main { padding-top: 60px; }

.gf9e-hero {
  position: relative;
  width: 100%;
  max-width: var(--gf9e-max);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
}

.gf9e-hero-track { position: relative; height: 220px; }

.gf9e-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gf9e-hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.gf9e-hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,30,30,.92) 0%, rgba(30,30,30,.25) 60%, transparent 100%);
}

.gf9e-hero-caption {
  position: relative;
  z-index: 2;
  color: var(--gf9e-text);
}

.gf9e-hero-caption h2 {
  font-size: 1.8rem;
  margin: 0 0 .3rem;
  font-weight: 800;
  color: #fff;
}

.gf9e-hero-caption p {
  margin: 0 0 .6rem;
  color: var(--gf9e-muted);
  font-size: 1.2rem;
}

.gf9e-hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--gf9e-accent), var(--gf9e-primary));
  color: #fff;
  padding: .55rem 1.2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.25rem;
}

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

.gf9e-hero-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}

.gf9e-hero-dot {
  width: 7px;
  height: 7px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s, width .2s;
}

.gf9e-dot-active {
  background: var(--gf9e-primary);
  width: 18px;
  border-radius: 5px;
}

/* ===================== Sections ===================== */
.gf9e-section {
  padding: 2rem 0 .5rem;
}

.gf9e-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.gf9e-section-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gf9e-text);
  position: relative;
  padding-left: 12px;
}

.gf9e-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  background: linear-gradient(to bottom, var(--gf9e-primary), var(--gf9e-accent));
  border-radius: 4px;
}

.gf9e-more {
  font-size: 1.2rem;
  color: var(--gf9e-primary);
}

.gf9e-h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 1.2rem 0 .6rem;
}

.gf9e-lead {
  color: var(--gf9e-muted);
  font-size: 1.3rem;
  margin: 0 0 1rem;
}

/* ===================== Game grid ===================== */
.gf9e-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}

.gf9e-game-card {
  background: var(--gf9e-bg-card);
  border-radius: var(--gf9e-radius-sm);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform .15s, box-shadow .2s;
  border: 1px solid rgba(255,255,255,.04);
}

.gf9e-game-card:hover,
.gf9e-game-card:active {
  transform: translateY(-3px);
  box-shadow: var(--gf9e-shadow);
  border-color: rgba(0,206,209,.4);
}

.gf9e-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111;
}

.gf9e-game-name {
  font-size: 1.15rem;
  color: var(--gf9e-text);
  text-align: center;
  padding: .4rem .3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.gf9e-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--gf9e-accent);
  color: #fff;
  font-size: 1rem;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
}

/* ===================== Filter chips ===================== */
.gf9e-filter-bar {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding: .3rem 0 1rem;
  -webkit-overflow-scrolling: touch;
}

.gf9e-filter-chip {
  flex: 0 0 auto;
  padding: .4rem 1rem;
  border-radius: 30px;
  background: var(--gf9e-bg-card);
  color: var(--gf9e-muted);
  font-size: 1.2rem;
  border: 1px solid rgba(255,255,255,.05);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.gf9e-chip-active {
  background: linear-gradient(135deg, var(--gf9e-primary), var(--gf9e-accent));
  color: #fff;
  border-color: transparent;
}

/* ===================== Cards / panels ===================== */
.gf9e-card {
  background: var(--gf9e-bg-card);
  border-radius: var(--gf9e-radius);
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,.04);
}

.gf9e-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.45rem;
  color: var(--gf9e-primary);
}

.gf9e-card p {
  margin: 0 0 .5rem;
  color: var(--gf9e-muted);
  font-size: 1.25rem;
}

.gf9e-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}

.gf9e-feature {
  background: var(--gf9e-bg-soft);
  border-radius: var(--gf9e-radius-sm);
  padding: 1rem;
  text-align: center;
  border: 1px solid rgba(0,206,209,.08);
}

.gf9e-feature i,
.gf9e-feature .material-icons-outlined {
  color: var(--gf9e-primary);
  font-size: 2.4rem;
}

.gf9e-feature h4 {
  margin: .4rem 0 0;
  font-size: 1.3rem;
  color: var(--gf9e-text);
}

.gf9e-feature p {
  margin: .3rem 0 0;
  font-size: 1.15rem;
  color: var(--gf9e-muted);
}

/* ===================== CTA banner ===================== */
.gf9e-cta {
  background: linear-gradient(135deg, rgba(0,206,209,.18), rgba(255,20,147,.18));
  border: 1px solid rgba(0,206,209,.35);
  border-radius: var(--gf9e-radius);
  padding: 1.5rem 1.2rem;
  text-align: center;
  margin: 1.5rem 0;
}

.gf9e-cta h3 {
  margin: 0 0 .4rem;
  font-size: 1.7rem;
  color: #fff;
}

.gf9e-cta p {
  margin: 0 0 1rem;
  color: var(--gf9e-muted);
  font-size: 1.25rem;
}

.gf9e-cta .gf9e-btn { font-size: 1.4rem; padding: .8rem 2rem; }

/* ===================== FAQ ===================== */
.gf9e-faq-item {
  background: var(--gf9e-bg-card);
  border-radius: var(--gf9e-radius-sm);
  margin-bottom: .6rem;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--gf9e-primary);
}

.gf9e-faq-item h4 {
  margin: 0 0 .3rem;
  font-size: 1.3rem;
  color: var(--gf9e-text);
}

.gf9e-faq-item p {
  margin: 0;
  color: var(--gf9e-muted);
  font-size: 1.2rem;
}

/* ===================== Testimonials ===================== */
.gf9e-testi {
  background: var(--gf9e-bg-card);
  border-radius: var(--gf9e-radius-sm);
  padding: 1rem;
  margin-bottom: .8rem;
  border: 1px solid rgba(255,255,255,.04);
}

.gf9e-testi-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .4rem;
}

.gf9e-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gf9e-primary), var(--gf9e-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

.gf9e-testi-name { font-size: 1.25rem; font-weight: 700; color: var(--gf9e-text); }
.gf9e-stars { color: var(--gf9e-gold); font-size: 1rem; }
.gf9e-testi p { margin: 0; font-size: 1.2rem; color: var(--gf9e-muted); }

/* ===================== Winners ===================== */
.gf9e-winner-row {
  display: flex;
  justify-content: space-between;
  padding: .55rem .8rem;
  border-bottom: 1px dashed rgba(255,255,255,.07);
  font-size: 1.2rem;
}
.gf9e-winner-row span:first-child { color: var(--gf9e-text); }
.gf9e-winner-row span:last-child { color: var(--gf9e-gold); font-weight: 700; }

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

.gf9e-pay-item {
  background: var(--gf9e-bg-soft);
  border-radius: 8px;
  padding: .8rem .4rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--gf9e-muted);
  border: 1px solid rgba(255,255,255,.05);
}

.gf9e-pay-item i { color: var(--gf9e-primary); font-size: 1.8rem; }

/* ===================== Table ===================== */
.gf9e-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.gf9e-table th,
.gf9e-table td {
  padding: .65rem .5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.gf9e-table th { color: var(--gf9e-primary); font-weight: 700; }
.gf9e-table td { color: var(--gf9e-muted); }

/* ===================== Long copy ===================== */
.gf9e-prose {
  color: var(--gf9e-muted);
  font-size: 1.3rem;
  line-height: 1.7;
}

.gf9e-prose h2 {
  color: var(--gf9e-text);
  font-size: 1.6rem;
  margin: 1.4rem 0 .5rem;
}

.gf9e-prose h3 {
  color: var(--gf9e-primary);
  font-size: 1.4rem;
  margin: 1rem 0 .4rem;
}

.gf9e-prose p { margin: 0 0 .8rem; }

.gf9e-prose strong { color: var(--gf9e-text); }

/* ===================== Footer ===================== */
.gf9e-footer {
  background: #141414;
  margin-top: 2rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid rgba(0,206,209,.15);
}

.gf9e-footer h4 {
  color: var(--gf9e-text);
  font-size: 1.3rem;
  margin: 1rem 0 .5rem;
}

.gf9e-footer p {
  color: var(--gf9e-muted);
  font-size: 1.2rem;
}

.gf9e-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  margin: .6rem 0;
}

.gf9e-footer-links a {
  color: var(--gf9e-muted);
  font-size: 1.15rem;
}

.gf9e-footer-cta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .8rem 0;
}

.gf9e-copyright {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gf9e-gray);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.05);
  margin-top: 1rem;
}

/* ===================== Bottom nav ===================== */
.gf9e-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #161616;
  border-top: 1px solid rgba(0,206,209,.2);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,.5);
}

.gf9e-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--gf9e-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1rem;
  cursor: pointer;
  min-width: 60px;
  min-height: 60px;
  transition: color .2s, transform .15s;
  padding: 0;
}

.gf9e-nav-btn i,
.gf9e-nav-btn .material-icons-outlined,
.gf9e-nav-btn ion-icon {
  font-size: 22px;
}

.gf9e-nav-btn ion-icon { font-size: 24px; transform: translateY(-1px); }

.gf9e-nav-btn:active { transform: scale(.92); }

.gf9e-nav-btn.gf9e-active { color: var(--gf9e-primary); }

.gf9e-nav-btn.gf9e-promo {
  color: var(--gf9e-accent);
}

.gf9e-nav-btn:hover { color: var(--gf9e-primary); }

/* ===================== Reveal animation ===================== */
.gf9e-fade {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
}
.gf9e-fade.gf9e-reveal {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== Misc ===================== */
.gf9e-center { text-align: center; }
.gf9e-mt { margin-top: 1.4rem; }

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  .gf9e-bottom-nav { display: none; }
  body { background: #0f0f0f; }
  .gf9e-wrapper { max-width: 760px; }
  .gf9e-header-inner { max-width: 760px; }
  .gf9e-hero { max-width: 760px; border-radius: 0 0 20px 20px; }
}

/* Mobile bottom padding so content isn't covered by bottom nav */
@media (max-width: 768px) {
  .gf9e-footer { padding-bottom: 80px; }
  main.gf9e-main { padding-bottom: 80px; }
}

/* Small phones */
@media (max-width: 360px) {
  .gf9e-grid { grid-template-columns: repeat(2, 1fr); }
  .gf9e-hero-track { height: 190px; }
}
