/**
 * hyph777 Main Stylesheet
 * Website: hyph777.sbs
 * All classes use s500- prefix
 * Color palette: #0C0C0C | #FF5722 | #7FFF00 | #FFFFBA | #AD1457
 */

/* CSS Variables */
:root {
  --s500-bg: #0C0C0C;
  --s500-primary: #FF5722;
  --s500-accent: #7FFF00;
  --s500-text: #FFFFBA;
  --s500-highlight: #AD1457;
  --s500-bg-card: #1A1A1A;
  --s500-bg-nav: #141414;
  --s500-border: #2A2A2A;
  --s500-text-dim: #9A9A7A;
  --s500-radius: 8px;
  --s500-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base */
html { font-size: 62.5%; scroll-behavior: smooth; }
body { margin: 0; padding: 0; font-family: var(--s500-font); background: var(--s500-bg); color: var(--s500-text); line-height: 1.5rem; overflow-x: hidden; }
* { box-sizing: border-box; }
a { color: var(--s500-accent); text-decoration: none; }
a:hover { color: var(--s500-primary); }
img { max-width: 100%; height: auto; }

/* Container */
.s500-container { max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }

/* Header */
.s500-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--s500-bg-nav); border-bottom: 2px solid var(--s500-primary); padding: 0.6rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.s500-logo { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.s500-logo img { width: 28px; height: 28px; border-radius: 4px; }
.s500-logo-text { font-size: 1.6rem; font-weight: 700; color: var(--s500-primary); letter-spacing: 1px; }
.s500-header-actions { display: flex; align-items: center; gap: 0.6rem; }
.s500-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1.2rem; border: none; border-radius: var(--s500-radius); font-size: 1.2rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; min-height: 32px; }
.s500-btn-register { background: var(--s500-primary); color: #fff; }
.s500-btn-register:hover { background: #E64A19; transform: scale(1.03); }
.s500-btn-login { background: transparent; color: var(--s500-accent); border: 1.5px solid var(--s500-accent); }
.s500-btn-login:hover { background: rgba(127,255,0,0.1); }
.s500-menu-toggle { background: none; border: none; color: var(--s500-text); font-size: 2rem; cursor: pointer; padding: 0 0.4rem; line-height: 1; }

/* Mobile Menu */
.s500-mobile-menu { position: fixed; top: 0; right: -280px; width: 280px; height: 100%; background: var(--s500-bg-nav); z-index: 9999; transition: right 0.3s ease; padding: 2rem 1.6rem; overflow-y: auto; border-left: 2px solid var(--s500-primary); }
.s500-menu-active { right: 0 !important; }
.s500-menu-close { background: none; border: none; color: var(--s500-text); font-size: 2.4rem; cursor: pointer; position: absolute; top: 1rem; right: 1.2rem; }
.s500-menu-title { font-size: 1.4rem; color: var(--s500-primary); font-weight: 700; margin-bottom: 1.4rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--s500-border); }
.s500-menu-list { list-style: none; padding: 0; margin: 0; }
.s500-menu-list li { margin-bottom: 0.2rem; }
.s500-menu-list a { display: block; padding: 0.9rem 1rem; color: var(--s500-text); font-size: 1.3rem; border-radius: 6px; transition: all 0.2s; }
.s500-menu-list a:hover { background: rgba(255,87,34,0.15); color: var(--s500-primary); }

/* Overlay */
.s500-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 9998; }
.s500-overlay-active { display: block !important; }

/* Carousel */
.s500-carousel { position: relative; overflow: hidden; border-radius: var(--s500-radius); margin: 0.8rem 0; }
.s500-slide { display: none; cursor: pointer; transition: opacity 0.4s ease; }
.s500-slide img { width: 100%; border-radius: var(--s500-radius); }
.s500-dots { display: flex; justify-content: center; gap: 0.6rem; margin-top: 0.6rem; }
.s500-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--s500-border); cursor: pointer; transition: background 0.3s; border: none; }
.s500-dot-active { background: var(--s500-primary) !important; }

/* Section */
.s500-section { padding: 2rem 0; }
.s500-section-title { font-size: 1.8rem; font-weight: 700; color: var(--s500-primary); margin-bottom: 1.2rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--s500-highlight); }
.s500-section-title i { margin-right: 0.5rem; }

/* Game Grid */
.s500-game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.s500-game-item { text-align: center; cursor: pointer; transition: transform 0.2s; background: var(--s500-bg-card); border-radius: var(--s500-radius); padding: 0.6rem 0.3rem; border: 1px solid var(--s500-border); }
.s500-game-item:hover { transform: scale(1.04); border-color: var(--s500-primary); }
.s500-game-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 0.4rem; }
.s500-game-name { font-size: 1rem; color: var(--s500-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Category Label */
.s500-cat-label { font-size: 1.3rem; font-weight: 600; color: var(--s500-accent); margin: 1.6rem 0 0.8rem; display: flex; align-items: center; gap: 0.4rem; }
.s500-cat-label i { font-size: 1.4rem; }

/* Content Blocks */
.s500-content-block { background: var(--s500-bg-card); border-radius: var(--s500-radius); padding: 1.4rem; margin-bottom: 1.2rem; border: 1px solid var(--s500-border); }
.s500-content-block h2 { font-size: 1.6rem; color: var(--s500-primary); margin: 0 0 0.8rem; }
.s500-content-block h3 { font-size: 1.4rem; color: var(--s500-accent); margin: 1rem 0 0.6rem; }
.s500-content-block p { font-size: 1.2rem; color: var(--s500-text); line-height: 1.8rem; margin: 0.4rem 0; }
.s500-content-block ul { padding-left: 1.6rem; margin: 0.6rem 0; }
.s500-content-block li { font-size: 1.2rem; color: var(--s500-text); line-height: 1.8rem; margin-bottom: 0.3rem; }

/* Promo Buttons */
.s500-promo-btn { display: inline-block; padding: 0.8rem 2rem; background: linear-gradient(135deg, var(--s500-primary), var(--s500-highlight)); color: #fff; font-size: 1.3rem; font-weight: 700; border-radius: 50px; cursor: pointer; border: none; transition: all 0.3s; text-align: center; }
.s500-promo-btn:hover { transform: scale(1.05); box-shadow: 0 4px 15px rgba(255,87,34,0.4); }

/* Promo Link Text */
.s500-promo-text { color: var(--s500-accent); font-weight: 700; cursor: pointer; border-bottom: 1px dashed var(--s500-accent); }
.s500-promo-text:hover { color: var(--s500-primary); }

/* Footer */
.s500-footer { background: var(--s500-bg-nav); border-top: 2px solid var(--s500-primary); padding: 2rem 1.2rem 6rem; margin-top: 2rem; }
.s500-footer-brand { font-size: 1.2rem; color: var(--s500-text-dim); line-height: 1.8rem; margin-bottom: 1.4rem; }
.s500-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.s500-footer-links a { display: inline-block; padding: 0.5rem 1rem; background: var(--s500-bg-card); border: 1px solid var(--s500-border); color: var(--s500-text); font-size: 1.1rem; border-radius: 6px; transition: all 0.2s; }
.s500-footer-links a:hover { border-color: var(--s500-primary); color: var(--s500-primary); }
.s500-footer-copy { font-size: 1rem; color: var(--s500-text-dim); text-align: center; border-top: 1px solid var(--s500-border); padding-top: 1rem; }

/* Bottom Navigation */
.s500-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; background: var(--s500-bg-nav); border-top: 2px solid var(--s500-primary); display: flex; justify-content: space-around; align-items: center; height: 58px; padding: 0 0.4rem; }
.s500-bottom-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 60px; min-height: 56px; background: none; border: none; color: var(--s500-text-dim); font-size: 1rem; cursor: pointer; transition: all 0.2s; gap: 0.2rem; border-radius: 8px; }
.s500-bottom-btn:hover, .s500-bottom-btn:focus { color: var(--s500-primary); background: rgba(255,87,34,0.08); }
.s500-bottom-btn i, .s500-bottom-btn .material-symbols-outlined { font-size: 22px; }
.s500-bottom-btn span { font-size: 1rem; line-height: 1; }
.s500-bottom-active { color: var(--s500-primary) !important; }

/* Utility */
.s500-text-center { text-align: center; }
.s500-mt-1 { margin-top: 1rem; }
.s500-mb-1 { margin-bottom: 1rem; }
.s500-hidden { display: none; }

/* Responsive */
@media (min-width: 769px) {
  .s500-container { max-width: 600px; }
  .s500-bottom-nav { display: none; }
  .s500-footer { padding-bottom: 2rem; }
}
@media (max-width: 768px) {
  main { padding-bottom: 72px; }
  .s500-header { padding: 0.5rem 0.8rem; }
}

/* Main content top spacing for fixed header */
main { padding-top: 52px; }

/* Winner ticker */
.s500-winner-bar { background: var(--s500-bg-card); border: 1px solid var(--s500-border); border-radius: var(--s500-radius); padding: 0.6rem 1rem; margin: 0.8rem 0; display: flex; align-items: center; gap: 0.8rem; overflow: hidden; }
.s500-winner-icon { color: #FFD700; font-size: 1.4rem; flex-shrink: 0; }
.s500-winner-text { font-size: 1.1rem; color: var(--s500-text); white-space: nowrap; }

/* Testimonial */
.s500-testimonial { background: var(--s500-bg-card); border-radius: var(--s500-radius); padding: 1.2rem; margin-bottom: 0.8rem; border-left: 3px solid var(--s500-primary); }
.s500-testimonial-author { font-size: 1.1rem; color: var(--s500-accent); font-weight: 600; }
.s500-testimonial-text { font-size: 1.15rem; color: var(--s500-text); margin-top: 0.4rem; line-height: 1.6rem; }

/* Payment row */
.s500-payment-row { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin: 1rem 0; }
.s500-payment-item { background: var(--s500-bg-card); border: 1px solid var(--s500-border); border-radius: 6px; padding: 0.6rem 1rem; font-size: 1.1rem; color: var(--s500-text); }

/* FAQ */
.s500-faq-item { margin-bottom: 0.8rem; }
.s500-faq-q { font-size: 1.2rem; font-weight: 600; color: var(--s500-accent); margin-bottom: 0.3rem; }
.s500-faq-a { font-size: 1.15rem; color: var(--s500-text); line-height: 1.6rem; padding-left: 1rem; border-left: 2px solid var(--s500-border); }
