/**
 * 4499.click - Layout Stylesheet
 * Prefix: pg55-
 * Colors: #0F0F23 | #48D1CC | #F5F5F5 | #AFEEEE | #FFB347 | #F0FDFF
 */

/* === CSS Variables === */
:root {
  --pg55-dark: #0F0F23;
  --pg55-cyan: #48D1CC;
  --pg55-light: #F5F5F5;
  --pg55-pale: #AFEEEE;
  --pg55-orange: #FFB347;
  --pg55-white: #F0FDFF;
  --pg55-header-h: 56px;
  --pg55-bottom-h: 62px;
}

/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--pg55-dark);
  color: var(--pg55-light);
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--pg55-cyan); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--pg55-orange); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* === Header === */
.pg55-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--pg55-header-h);
  background: rgba(15, 15, 35, 0.97);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  z-index: 1000;
  border-bottom: 1px solid rgba(72, 209, 204, 0.12);
  transition: box-shadow 0.3s;
}
.pg55-header-scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.pg55-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 800; color: var(--pg55-cyan);
  letter-spacing: 1px;
}
.pg55-logo img { width: 34px; height: 34px; border-radius: 8px; }
.pg55-header-actions { display: flex; align-items: center; gap: 8px; }
.pg55-btn-register, .pg55-btn-login {
  padding: 7px 16px; border-radius: 20px; font-size: 13px;
  font-weight: 700; cursor: pointer; border: none; transition: all 0.25s;
}
.pg55-btn-register {
  background: linear-gradient(135deg, var(--pg55-orange), #FF8C00);
  color: var(--pg55-dark);
}
.pg55-btn-register:hover { transform: scale(1.06); box-shadow: 0 0 14px rgba(255,179,71,0.5); }
.pg55-btn-login {
  background: transparent; color: var(--pg55-cyan);
  border: 1.5px solid var(--pg55-cyan);
}
.pg55-btn-login:hover { background: rgba(72,209,204,0.1); }
.pg55-hamburger {
  display: none; background: none; border: none; color: var(--pg55-cyan);
  font-size: 24px; cursor: pointer; padding: 4px;
}
@media (max-width: 768px) { .pg55-hamburger { display: block; } }

/* === Mobile Menu === */
.pg55-menu-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.65); z-index: 9998;
}
.pg55-overlay-active { display: block; }
.pg55-mobile-menu {
  position: fixed; top: 0; right: -280px;
  width: 280px; height: 100vh;
  background: var(--pg55-dark);
  z-index: 9999;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 70px 20px 30px;
  border-left: 1px solid rgba(72,209,204,0.15);
  overflow-y: auto;
}
.pg55-menu-active { right: 0; }
.pg55-menu-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--pg55-cyan);
  font-size: 26px; cursor: pointer;
}
.pg55-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 0; color: var(--pg55-light);
  font-size: 15px; border-bottom: 1px solid rgba(72,209,204,0.08);
  transition: color 0.2s, padding-left 0.2s;
}
.pg55-mobile-menu a:hover { color: var(--pg55-orange); padding-left: 6px; }
.pg55-mobile-menu .material-icons-outlined { font-size: 20px; color: var(--pg55-cyan); }

/* === Bottom Navigation === */
.pg55-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--pg55-bottom-h);
  background: rgba(15, 15, 35, 0.98);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 1000;
  border-top: 1px solid rgba(72,209,204,0.15);
  padding: 0 4px;
}
.pg55-bottom-btn {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px;
  min-width: 60px; min-height: 54px;
  background: none; border: none; color: var(--pg55-pale);
  font-size: 10px; cursor: pointer; transition: all 0.25s;
  border-radius: 10px; padding: 4px 6px;
}
.pg55-bottom-btn i, .pg55-bottom-btn .material-icons-outlined,
.pg55-bottom-btn .bi { font-size: 22px; }
.pg55-bottom-btn:hover { color: var(--pg55-orange); transform: translateY(-2px); }
.pg55-bottom-btn.pg55-bottom-active {
  color: var(--pg55-cyan);
  background: rgba(72,209,204,0.08);
}
@media (min-width: 769px) { .pg55-bottom-nav { display: none; } }

/* === Main Content === */
.pg55-main {
  padding-top: calc(var(--pg55-header-h) + 10px);
  min-height: 100vh;
}
@media (max-width: 768px) {
  .pg55-main { padding-bottom: calc(var(--pg55-bottom-h) + 18px); }
}

/* === Hero Banner === */
.pg55-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0F0F23 0%, #162447 50%, #1a1a3e 100%);
  padding: 28px 16px 36px; text-align: center;
}
.pg55-hero::before {
  content: ''; position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(72,209,204,0.06) 0%, transparent 50%);
  animation: pg55pulse 8s ease-in-out infinite;
}
@keyframes pg55pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.pg55-hero-content { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; }
.pg55-hero h1 {
  font-size: 28px; font-weight: 900; margin-bottom: 10px;
  background: linear-gradient(90deg, var(--pg55-cyan), var(--pg55-orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pg55-hero p { font-size: 14px; color: var(--pg55-pale); margin-bottom: 20px; }
.pg55-hero-cta {
  display: inline-block; padding: 12px 36px;
  background: linear-gradient(135deg, var(--pg55-orange), #FF8C00);
  color: var(--pg55-dark); font-size: 16px; font-weight: 800;
  border-radius: 28px; border: none; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.pg55-hero-cta:hover { transform: scale(1.06); box-shadow: 0 0 20px rgba(255,179,71,0.45); }

/* === Section Styles === */
.pg55-section {
  padding: 28px 14px; max-width: 480px; margin: 0 auto;
}
.pg55-section-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 20px; font-weight: 800; color: var(--pg55-cyan);
  margin-bottom: 16px;
}
.pg55-section-title i { font-size: 22px; }

/* === Category Tabs === */
.pg55-tabs {
  display: flex; gap: 6px; overflow-x: auto;
  padding-bottom: 6px; margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pg55-tabs::-webkit-scrollbar { display: none; }
.pg55-tab-btn {
  flex-shrink: 0; padding: 7px 16px;
  background: rgba(72,209,204,0.08); color: var(--pg55-pale);
  border: 1px solid rgba(72,209,204,0.15); border-radius: 18px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all 0.25s; white-space: nowrap;
}
.pg55-tab-btn:hover { border-color: var(--pg55-cyan); color: var(--pg55-cyan); }
.pg55-tab-active {
  background: linear-gradient(135deg, var(--pg55-cyan), #38B2AC) !important;
  color: var(--pg55-dark) !important; border-color: var(--pg55-cyan) !important;
  font-weight: 700;
}

/* === Game Grid === */
.pg55-game-panel { display: none; }
.pg55-panel-active { display: block; }
.pg55-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (min-width: 400px) { .pg55-game-grid { grid-template-columns: repeat(4, 1fr); } }
.pg55-game-card {
  background: rgba(72,209,204,0.04);
  border: 1px solid rgba(72,209,204,0.1);
  border-radius: 12px; overflow: hidden;
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
}
.pg55-game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(72,209,204,0.15);
}
.pg55-game-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.3s;
}
.pg55-game-card:hover img { transform: scale(1.05); }
.pg55-game-card figcaption {
  padding: 6px 4px; font-size: 11px; font-weight: 600;
  text-align: center; color: var(--pg55-light);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* === Promo Banner === */
.pg55-promo-banner {
  background: linear-gradient(135deg, rgba(255,179,71,0.1), rgba(72,209,204,0.08));
  border: 1px solid rgba(255,179,71,0.2);
  border-radius: 14px; padding: 18px; text-align: center;
  margin: 16px 0;
}
.pg55-promo-banner h3 {
  font-size: 17px; color: var(--pg55-orange); margin-bottom: 8px;
}
.pg55-promo-banner p { font-size: 13px; color: var(--pg55-pale); margin-bottom: 14px; }

/* === Features Grid === */
.pg55-features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
.pg55-feature-item {
  background: rgba(72,209,204,0.05);
  border: 1px solid rgba(72,209,204,0.1);
  border-radius: 12px; padding: 16px; text-align: center;
  transition: border-color 0.25s;
}
.pg55-feature-item:hover { border-color: var(--pg55-cyan); }
.pg55-feature-item i { font-size: 28px; color: var(--pg55-cyan); margin-bottom: 8px; }
.pg55-feature-item h4 { font-size: 13px; color: var(--pg55-orange); margin-bottom: 4px; }
.pg55-feature-item p { font-size: 11px; color: var(--pg55-pale); }

/* === Footer === */
.pg55-footer {
  background: rgba(10, 10, 25, 0.95);
  border-top: 1px solid rgba(72,209,204,0.1);
  padding: 30px 14px 20px; max-width: 480px; margin: 0 auto;
}
.pg55-footer-logo { text-align: center; margin-bottom: 16px; }
.pg55-footer-logo span { font-size: 20px; font-weight: 800; color: var(--pg55-cyan); }
.pg55-footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin-bottom: 16px;
}
.pg55-footer-links a { font-size: 12px; color: var(--pg55-pale); }
.pg55-footer-links a:hover { color: var(--pg55-orange); }
.pg55-footer-partners {
  text-align: center; margin-bottom: 14px;
}
.pg55-footer-partners span {
  display: inline-block; padding: 4px 10px;
  background: rgba(72,209,204,0.06); border-radius: 6px;
  font-size: 10px; color: var(--pg55-pale); margin: 3px;
}
.pg55-footer-copy {
  text-align: center; font-size: 11px; color: rgba(245,245,245,0.4);
  border-top: 1px solid rgba(72,209,204,0.06); padding-top: 14px;
}

/* === Content Pages === */
.pg55-content { max-width: 480px; margin: 0 auto; padding: 14px; }
.pg55-content h2 {
  font-size: 20px; color: var(--pg55-cyan); margin: 22px 0 10px;
  padding-bottom: 6px; border-bottom: 2px solid rgba(72,209,204,0.2);
}
.pg55-content h3 { font-size: 16px; color: var(--pg55-orange); margin: 16px 0 8px; }
.pg55-content p { font-size: 14px; color: var(--pg55-light); margin-bottom: 12px; }
.pg55-content ul { padding-left: 18px; margin-bottom: 12px; }
.pg55-content li {
  font-size: 14px; color: var(--pg55-light); margin-bottom: 6px;
  list-style: disc;
}

/* === Inline CTA === */
.pg55-inline-cta {
  display: inline-block; padding: 10px 24px;
  background: linear-gradient(135deg, var(--pg55-orange), #FF8C00);
  color: var(--pg55-dark); font-size: 14px; font-weight: 700;
  border-radius: 22px; border: none; cursor: pointer;
  transition: transform 0.25s; margin: 8px 0;
}
.pg55-inline-cta:hover { transform: scale(1.05); }

/* === Utility === */
.pg55-text-center { text-align: center; }
.pg55-mt-12 { margin-top: 12px; }
.pg55-mb-12 { margin-bottom: 12px; }
.pg55-hidden { display: none; }
.pg55-no-scroll { overflow: hidden; }
.pg55-lazy-img { opacity: 0.7; transition: opacity 0.4s; }
.pg55-img-loaded { opacity: 1; }

/* === Scroll to Top === */
.pg55-scroll-top {
  position: fixed; bottom: 78px; right: 14px;
  width: 40px; height: 40px;
  background: rgba(72,209,204,0.2); border: 1px solid var(--pg55-cyan);
  border-radius: 50%; color: var(--pg55-cyan);
  font-size: 20px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  z-index: 999; transition: opacity 0.3s;
}
.pg55-scroll-top:hover { background: rgba(72,209,204,0.35); }

/* === Breadcrumb === */
.pg55-breadcrumb {
  padding: 10px 14px; font-size: 12px; color: var(--pg55-pale);
}
.pg55-breadcrumb a { color: var(--pg55-cyan); }
.pg55-breadcrumb span { margin: 0 6px; color: rgba(245,245,245,0.3); }

/* === FAQ Accordion === */
.pg55-faq-item {
  background: rgba(72,209,204,0.04);
  border: 1px solid rgba(72,209,204,0.1);
  border-radius: 10px; margin-bottom: 10px; overflow: hidden;
}
.pg55-faq-q {
  padding: 14px; font-size: 14px; font-weight: 700;
  color: var(--pg55-cyan); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.pg55-faq-q .bi { font-size: 18px; transition: transform 0.3s; }
.pg55-faq-a { padding: 0 14px 14px; font-size: 13px; color: var(--pg55-light); }

/* === Responsive Desktop === */
@media (min-width: 769px) {
  .pg55-header { padding: 0 30px; }
  .pg55-section { max-width: 600px; padding: 30px 20px; }
  .pg55-footer { max-width: 600px; }
  .pg55-content { max-width: 600px; padding: 20px; }
  .pg55-game-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .pg55-features-grid { grid-template-columns: repeat(3, 1fr); }
  .pg55-hero h1 { font-size: 34px; }
}
