/* phspinlink.click - layout stylesheet */
/* All custom classes use the g56d- prefix. */
/* Palette: #0D1117 | #FF8000 | #BC8F8F | #FFDEAD | #191970 | #E9ECEF */

:root {
  --g56d-bg: #0D1117;
  --g56d-primary: #FF8000;
  --g56d-accent: #BC8F8F;
  --g56d-light: #FFDEAD;
  --g56d-deep: #191970;
  --g56d-text: #E9ECEF;
  --g56d-card-bg: #161b22;
  --g56d-border: #30363d;
  --g56d-radius: 10px;
  --g56d-shadow: 0 4px 16px rgba(0,0,0,.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--g56d-bg);
  color: var(--g56d-text);
  font-size: 1.5rem;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--g56d-light); text-decoration: none; }
a:hover { color: var(--g56d-primary); }
button { font-family: inherit; }

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

/* Header */
.g56d-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--g56d-bg), var(--g56d-deep));
  border-bottom: 1px solid var(--g56d-border);
  transition: background .3s ease, box-shadow .3s ease;
}
.g56d-header-scrolled { background: rgba(13,17,23,.96); box-shadow: 0 2px 12px rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.g56d-header-inner {
  max-width: 430px; margin: 0 auto; padding: .8rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
.g56d-logo { display: flex; align-items: center; gap: .6rem; font-size: 1.7rem; font-weight: 700; color: var(--g56d-light); }
.g56d-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g56d-logo span { color: var(--g56d-primary); }
.g56d-header-actions { display: flex; align-items: center; gap: .5rem; }

.g56d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.1rem; border-radius: var(--g56d-radius); font-size: 1.3rem; font-weight: 600;
  border: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 36px; text-align: center;
}
.g56d-btn:hover { transform: translateY(-1px); }
.g56d-btn-primary { background: linear-gradient(135deg, var(--g56d-primary), #ff9a3c); color: #fff; box-shadow: 0 3px 10px rgba(255,128,0,.4); }
.g56d-btn-outline { background: transparent; color: var(--g56d-light); border: 1px solid var(--g56d-primary); }
.g56d-btn-block { width: 100%; }

.g56d-menu-toggle {
  background: transparent; border: none; color: var(--g56d-light); font-size: 1.8rem;
  cursor: pointer; padding: .4rem; min-width: 36px; min-height: 36px;
}

/* Mobile slide menu */
.g56d-mobile-menu {
  position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh;
  background: var(--g56d-bg); z-index: 9999; padding: 6rem 1.5rem 2rem;
  transition: right .3s ease; overflow-y: auto; border-left: 1px solid var(--g56d-border);
}
.g56d-mobile-menu.g56d-menu-open { right: 0; box-shadow: -4px 0 24px rgba(0,0,0,.5); }
.g56d-mobile-menu a {
  display: flex; align-items: center; gap: .8rem; padding: 1rem .6rem;
  border-bottom: 1px solid var(--g56d-border); color: var(--g56d-text); font-size: 1.4rem;
}
.g56d-mobile-menu a i, .g56d-mobile-menu a .material-icons { color: var(--g56d-primary); font-size: 16px; }
.g56d-mobile-menu a:hover { color: var(--g56d-primary); padding-left: 1rem; }

/* Carousel */
.g56d-carousel {
  position: relative; margin-top: 6.5rem; border-radius: var(--g56d-radius);
  overflow: hidden; box-shadow: var(--g56d-shadow);
}
.g56d-carousel-slide { display: none; cursor: pointer; position: relative; }
.g56d-carousel-slide.g56d-active { display: block; }
.g56d-carousel-slide img { width: 100%; height: 180px; object-fit: cover; }
.g56d-carousel-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 1rem; font-size: 1.3rem; color: var(--g56d-light); font-weight: 600;
}
.g56d-carousel-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.g56d-carousel-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s, transform .2s; }
.g56d-carousel-dot.g56d-active { background: var(--g56d-primary); transform: scale(1.15); }

/* Main content sections */
.g56d-main { padding-top: 1rem; }
.g56d-section { padding: 1.8rem 0; }
.g56d-section-title {
  font-size: 1.9rem; font-weight: 700; color: var(--g56d-light);
  margin-bottom: 1rem; border-left: 4px solid var(--g56d-primary); padding-left: 1rem;
}
.g56d-section-title span { color: var(--g56d-primary); }
.g56d-h1 {
  font-size: 2.2rem; font-weight: 800; color: var(--g56d-light);
  margin: 1.5rem 0; text-align: center; line-height: 1.3;
}
.g56d-h1 span { color: var(--g56d-primary); }
.g56d-text p { margin-bottom: 1rem; color: var(--g56d-text); }
.g56d-text strong { color: var(--g56d-primary); }
.g56d-text a { color: var(--g56d-primary); font-weight: 600; text-decoration: underline; }

/* Game list */
.g56d-game-group { margin-bottom: 2rem; }
.g56d-cat-label {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .9rem;
  background: var(--g56d-deep); color: var(--g56d-light); border-radius: 20px;
  font-size: 1.2rem; margin-bottom: .8rem; letter-spacing: 1px;
}
.g56d-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.g56d-game-card {
  background: var(--g56d-card-bg); border-radius: var(--g56d-radius); padding: .6rem;
  text-align: center; cursor: pointer; border: 1px solid var(--g56d-border);
  transition: transform .15s ease, border-color .15s ease; display: block; color: var(--g56d-text);
}
.g56d-game-card:hover { transform: translateY(-2px); border-color: var(--g56d-primary); color: var(--g56d-primary); }
.g56d-game-card img { width: 100%; height: 70px; object-fit: cover; border-radius: 6px; margin-bottom: .4rem; }
.g56d-game-card-name {
  font-size: 1.1rem; line-height: 1.25; overflow: hidden; min-height: 2.8rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: ellipsis;
}

/* Cards */
.g56d-card {
  background: var(--g56d-card-bg); border: 1px solid var(--g56d-border);
  border-radius: var(--g56d-radius); padding: 1.2rem; margin-bottom: 1rem;
}
.g56d-card-title { font-size: 1.5rem; color: var(--g56d-primary); margin-bottom: .6rem; font-weight: 600; }

/* FAQ */
.g56d-faq-item { background: var(--g56d-card-bg); border: 1px solid var(--g56d-border); border-radius: 8px; margin-bottom: .6rem; overflow: hidden; }
.g56d-faq-q {
  padding: 1rem; cursor: pointer; font-weight: 600; color: var(--g56d-light);
  display: flex; justify-content: space-between; align-items: center; font-size: 1.35rem;
}
.g56d-faq-q i { color: var(--g56d-primary); transition: transform .2s; }
.g56d-faq-q.g56d-faq-open i { transform: rotate(45deg); }
.g56d-faq-a { display: none; padding: 0 1rem 1rem; color: var(--g56d-text); font-size: 1.3rem; line-height: 1.5; }

/* Testimonials */
.g56d-testimonial { background: var(--g56d-card-bg); border-left: 3px solid var(--g56d-primary); padding: 1rem; border-radius: 6px; margin-bottom: .8rem; }
.g56d-testimonial p { color: var(--g56d-text); font-size: 1.25rem; margin-bottom: .5rem; }
.g56d-testimonial-author { font-size: 1.2rem; color: var(--g56d-accent); font-weight: 600; }

/* Stats */
.g56d-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; margin: 1rem 0; }
.g56d-stat { background: var(--g56d-card-bg); border: 1px solid var(--g56d-border); border-radius: 8px; padding: 1rem; text-align: center; }
.g56d-stat-num { font-size: 2rem; font-weight: 700; color: var(--g56d-primary); }
.g56d-stat-label { font-size: 1.1rem; color: var(--g56d-text); margin-top: .3rem; }

/* Latest winners */
.g56d-winner { display: flex; align-items: center; gap: .8rem; background: var(--g56d-card-bg); padding: .7rem; border-radius: 6px; margin-bottom: .5rem; }
.g56d-winner-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--g56d-primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.3rem; }
.g56d-winner-info { flex: 1; }
.g56d-winner-name { color: var(--g56d-light); font-size: 1.2rem; font-weight: 600; }
.g56d-winner-prize { color: var(--g56d-primary); font-size: 1.2rem; font-weight: 600; }

/* Payment */
.g56d-payment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.g56d-payment-item { background: var(--g56d-card-bg); border: 1px solid var(--g56d-border); border-radius: 6px; padding: .8rem; text-align: center; font-size: 1.1rem; color: var(--g56d-text); }
.g56d-payment-item i, .g56d-payment-item .material-icons { font-size: 22px; color: var(--g56d-primary); margin-bottom: .3rem; display: block; }

/* Promo CTA */
.g56d-cta { background: linear-gradient(135deg, var(--g56d-deep), var(--g56d-primary)); padding: 1.5rem; border-radius: var(--g56d-radius); text-align: center; margin: 1.5rem 0; box-shadow: var(--g56d-shadow); }
.g56d-cta-title { color: #fff; font-size: 1.8rem; margin-bottom: .8rem; font-weight: 700; }
.g56d-cta-text { color: var(--g56d-light); font-size: 1.3rem; margin-bottom: 1rem; }

/* Feature list */
.g56d-feature-list { list-style: none; }
.g56d-feature-list li { padding: .6rem 0 .6rem 2rem; position: relative; color: var(--g56d-text); font-size: 1.3rem; }
.g56d-feature-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--g56d-primary); position: absolute; left: 0; }

/* Steps */
.g56d-steps { counter-reset: step; list-style: none; }
.g56d-steps li { position: relative; padding: .8rem 0 .8rem 3rem; color: var(--g56d-text); font-size: 1.3rem; border-left: 2px solid var(--g56d-border); margin-left: 1rem; }
.g56d-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: -1.4rem; top: .8rem; width: 28px; height: 28px; background: var(--g56d-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }

/* Footer */
.g56d-footer { background: linear-gradient(180deg, var(--g56d-bg), #050811); padding: 2rem 0 6.5rem; margin-top: 2rem; border-top: 1px solid var(--g56d-border); }
.g56d-footer-brand { color: var(--g56d-text); font-size: 1.3rem; line-height: 1.7; margin-bottom: 1.5rem; }
.g56d-footer-promo { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.g56d-footer-promo .g56d-btn { flex: 1 1 calc(50% - .6rem); min-width: 140px; }
.g56d-footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.g56d-footer-links a { font-size: 1.2rem; color: var(--g56d-text); padding: .3rem 0; display: inline-flex; align-items: center; gap: .3rem; }
.g56d-partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0 1.5rem; }
.g56d-partner-badge { border: 1px solid var(--g56d-border); background: rgba(255,128,0,.08); color: var(--g56d-light); border-radius: 8px; padding: .7rem .4rem; text-align: center; font-size: 1.1rem; font-weight: 700; }
.g56d-footer-copy { font-size: 1.1rem; color: var(--g56d-accent); text-align: center; padding-top: 1rem; border-top: 1px solid var(--g56d-border); }

/* Bottom nav (mobile only) */
.g56d-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(180deg, var(--g56d-deep), #0a0e2a);
  border-top: 1px solid var(--g56d-primary);
  display: flex; justify-content: space-around; align-items: center;
  padding: .3rem 0; height: 60px;
}
.g56d-bottom-nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: transparent; border: none; color: var(--g56d-text);
  font-size: 1rem; cursor: pointer; padding: .3rem; min-width: 60px; min-height: 52px;
  transition: color .2s, transform .2s;
}
.g56d-bottom-nav-btn:hover, .g56d-bottom-nav-btn.g56d-nav-active { color: var(--g56d-primary); transform: scale(1.06); }
.g56d-bottom-nav-btn .material-icons, .g56d-bottom-nav-btn ion-icon, .g56d-bottom-nav-btn i { font-size: 22px; margin-bottom: 2px; }
.g56d-bottom-nav-btn span { font-size: 1rem; }

/* Inline helpers */
.g56d-tag { display: inline-block; padding: .2rem .6rem; background: rgba(255,128,0,.15); color: var(--g56d-primary); border-radius: 4px; font-size: 1.1rem; margin-right: .3rem; }
.g56d-divider { height: 1px; background: var(--g56d-border); margin: 1.5rem 0; border: none; }
.g56d-collapsed { display: none; }

/* Responsive */
.g56d-desktop-only { display: none; }

@media (min-width: 769px) {
  .g56d-bottom-nav { display: none; }
  .g56d-desktop-only { display: block; }
  .g56d-mobile-only { display: none; }
  .g56d-container { max-width: 768px; }
  .g56d-game-grid { grid-template-columns: repeat(6, 1fr); }
  .g56d-footer { padding-bottom: 2rem; }
}

@media (max-width: 768px) {
  .g56d-main { padding-bottom: 80px; }
}

@media (max-width: 360px) {
  .g56d-game-grid { grid-template-columns: repeat(2, 1fr); }
  .g56d-h1 { font-size: 1.9rem; }
  .g56d-section-title { font-size: 1.7rem; }
  .g56d-footer-links { grid-template-columns: 1fr; }
}
