/* ============================================================
   open8.cyou - Core layout stylesheet
   All custom classes use prefix "w1764-"
   Mobile-first, max-width 430px
   ============================================================ */
:root {
  --w1764-primary:#E91E63; --w1764-bg:#2D2D2D; --w1764-bg-alt:#1a1a1a; --w1764-text:#ECF0F1;
  --w1764-muted:#D3D3D3; --w1764-accent:#FFFFBA; --w1764-card:#3a3a3a; --w1764-border:#4a4a4a;
  --w1764-gold:#FFD700; --w1764-header-h:56px; --w1764-bottomnav-h:62px;
}
* { box-sizing:border-box; margin:0; padding:0; }
html { font-size:62.5%; }
body { font-family:"Segoe UI","Roboto","Helvetica Neue",Arial,sans-serif; background:var(--w1764-bg); color:var(--w1764-text); line-height:1.5rem; font-size:1.4rem; -webkit-text-size-adjust:100%; overflow-x:hidden; }
img { max-width:100%; display:block; }
a { color:var(--w1764-primary); text-decoration:none; cursor:pointer; }
a:hover { text-decoration:underline; }
.w1764-container { width:100%; max-width:430px; margin:0 auto; padding:0 12px; }
.w1764-wrapper { max-width:430px; margin:0 auto; position:relative; }
/* Header */
.w1764-header { position:fixed; top:0; left:0; right:0; z-index:1000; background:linear-gradient(135deg,#2D2D2D 0%,#1a1a1a 100%); border-bottom:2px solid var(--w1764-primary); box-shadow:0 2px 8px rgba(0,0,0,.4); }
.w1764-header-inner { max-width:430px; margin:0 auto; height:var(--w1764-header-h); display:flex; align-items:center; justify-content:space-between; padding:0 10px; }
.w1764-logo { display:flex; align-items:center; gap:8px; color:var(--w1764-accent); font-weight:800; font-size:1.8rem; }
.w1764-logo img { width:30px; height:30px; border-radius:6px; }
.w1764-logo span { color:var(--w1764-primary); font-size:1.6rem; letter-spacing:.5px; }
.w1764-header-actions { display:flex; align-items:center; gap:6px; }
.w1764-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:38px; padding:0 14px; border-radius:20px; font-weight:700; font-size:1.3rem; cursor:pointer; border:none; transition:transform .15s ease,box-shadow .15s ease,background .15s ease; }
.w1764-btn-login { background:transparent; color:var(--w1764-text); border:1.5px solid var(--w1764-muted); }
.w1764-btn-register { background:linear-gradient(135deg,#E91E63,#c2185b); color:#fff; box-shadow:0 2px 6px rgba(233,30,99,.4); }
.w1764-btn:hover { transform:translateY(-1px); }
.w1764-btn-pressed { transform:scale(.95); }
.w1764-menu-btn { background:transparent; color:var(--w1764-text); border:none; font-size:2rem; cursor:pointer; width:38px; height:38px; border-radius:8px; }
/* Mobile menu */
.w1764-mobile-menu { position:fixed; top:var(--w1764-header-h); left:0; right:0; z-index:9999; background:#1a1a1a; border-bottom:2px solid var(--w1764-primary); max-height:0; overflow:hidden; transition:max-height .3s ease; }
.w1764-mobile-menu.w1764-active { max-height:620px; box-shadow:0 8px 16px rgba(0,0,0,.6); }
.w1764-mobile-menu ul { list-style:none; padding:8px 16px; }
.w1764-mobile-menu li { border-bottom:1px solid var(--w1764-border); }
.w1764-mobile-menu a { display:flex; align-items:center; gap:12px; padding:12px 6px; color:var(--w1764-text); font-weight:600; font-size:1.4rem; }
.w1764-mobile-menu a:hover { color:var(--w1764-primary); }
main.w1764-main { padding-top:calc(var(--w1764-header-h) + 8px); padding-bottom:16px; }
@media (max-width:768px) { main.w1764-main { padding-bottom:80px; } }
/* Carousel */
.w1764-carousel { position:relative; border-radius:14px; overflow:hidden; margin:10px 0 16px; box-shadow:0 4px 14px rgba(0,0,0,.5); }
.w1764-carousel-viewport { overflow:hidden; }
.w1764-carousel-track { display:flex; transition:transform .5s ease; }
.w1764-slide { min-width:100%; position:relative; cursor:pointer; }
.w1764-slide img { width:100%; height:180px; object-fit:cover; }
.w1764-slide-cap { position:absolute; bottom:0; left:0; right:0; padding:10px 14px; background:linear-gradient(to top,rgba(0,0,0,.85),transparent); color:var(--w1764-accent); font-weight:700; font-size:1.4rem; }
.w1764-carousel-dots { position:absolute; bottom:8px; left:0; right:0; display:flex; justify-content:center; gap:6px; }
.w1764-carousel-dot { width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.4); border:none; cursor:pointer; }
.w1764-carousel-dot.w1764-active { background:var(--w1764-primary); width:22px; border-radius:4px; }
/* Content */
.w1764-section { padding:14px 12px; }
.w1764-section-title { font-size:1.8rem; font-weight:800; color:var(--w1764-accent); margin-bottom:8px; border-left:4px solid var(--w1764-primary); padding-left:10px; }
.w1764-subtitle { font-size:1.4rem; font-weight:700; color:var(--w1764-primary); margin:10px 0 6px; }
.w1764-text-muted { color:var(--w1764-muted); }
.w1764-h1 { font-size:2rem; font-weight:800; color:var(--w1764-accent); margin:8px 0 6px; }
.w1764-chips { display:flex; gap:8px; overflow-x:auto; padding:6px 0 10px; scrollbar-width:none; }
.w1764-chips::-webkit-scrollbar { display:none; }
.w1764-chip { flex:0 0 auto; padding:6px 14px; border-radius:16px; background:var(--w1764-card); color:var(--w1764-text); font-size:1.2rem; font-weight:600; border:1.5px solid var(--w1764-border); cursor:pointer; white-space:nowrap; }
.w1764-chip-active { background:var(--w1764-primary); color:#fff; border-color:var(--w1764-primary); }
/* Game grid */
.w1764-game-group { margin:6px 0 14px; }
.w1764-game-group-title { font-size:1.4rem; font-weight:700; color:var(--w1764-gold); margin:8px 0; display:flex; align-items:center; gap:8px; }
.w1764-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.w1764-card { background:var(--w1764-card); border-radius:10px; overflow:hidden; border:1px solid var(--w1764-border); transition:transform .15s ease,box-shadow .15s ease; cursor:pointer; }
.w1764-card:active { transform:scale(.96); }
.w1764-card img { width:100%; height:90px; object-fit:cover; }
.w1764-card-name { font-size:1.05rem; color:var(--w1764-text); text-align:center; padding:5px 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-weight:600; }
/* Blocks */
.w1764-info { background:var(--w1764-card); border-radius:12px; padding:12px; margin:8px 0; border-left:4px solid var(--w1764-primary); }
.w1764-info p { margin:4px 0; color:var(--w1764-text); font-size:1.3rem; }
.w1764-feature-list { list-style:none; padding:0; }
.w1764-feature-list li { padding:8px 10px; background:var(--w1764-card); border-radius:8px; margin-bottom:6px; display:flex; align-items:flex-start; gap:10px; color:var(--w1764-text); }
.w1764-faq-item { background:var(--w1764-card); border-radius:10px; padding:10px 12px; margin-bottom:8px; border:1px solid var(--w1764-border); }
.w1764-faq-item h3 { font-size:1.35rem; color:var(--w1764-primary); margin-bottom:4px; }
.w1764-faq-item p { font-size:1.25rem; color:var(--w1764-muted); }
.w1764-cta { display:block; text-align:center; background:linear-gradient(135deg,#E91E63,#FFD700); color:#1a1a1a; font-weight:800; font-size:1.5rem; padding:12px 16px; border-radius:26px; margin:12px 0; box-shadow:0 3px 10px rgba(233,30,99,.45); cursor:pointer; border:none; width:100%; }
.w1764-cta-link { color:var(--w1764-accent); font-weight:700; border-bottom:1.5px dashed var(--w1764-primary); }
.w1764-testimonial { background:var(--w1764-card); border-radius:10px; padding:10px 12px; margin-bottom:8px; font-size:1.25rem; color:var(--w1764-text); border-left:3px solid var(--w1764-gold); }
.w1764-testimonial strong { color:var(--w1764-accent); }
.w1764-winner { display:flex; justify-content:space-between; background:var(--w1764-card); border-radius:8px; padding:8px 10px; margin-bottom:6px; font-size:1.2rem; }
.w1764-winner .w1764-amount { color:var(--w1764-gold); font-weight:700; }
.w1764-pay { display:flex; flex-wrap:wrap; gap:8px; }
.w1764-pay span { background:var(--w1764-card); color:var(--w1764-text); padding:6px 12px; border-radius:8px; font-size:1.2rem; border:1px solid var(--w1764-border); }
/* Footer */
.w1764-footer { background:#1a1a1a; border-top:2px solid var(--w1764-primary); padding:16px 12px 80px; color:var(--w1764-muted); font-size:1.25rem; }
.w1764-footer-links { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.w1764-footer-links a { flex:1 1 45%; color:var(--w1764-text); background:var(--w1764-card); padding:8px 10px; border-radius:8px; text-align:center; font-size:1.2rem; }
.w1764-footer-links a:hover { color:var(--w1764-primary); }
.w1764-footer-copy { text-align:center; margin-top:10px; font-size:1.1rem; color:var(--w1764-muted); }
/* Mobile bottom navigation */
.w1764-bottomnav { position:fixed; bottom:0; left:0; right:0; z-index:1000; height:var(--w1764-bottomnav-h); display:flex; justify-content:space-around; align-items:stretch; background:linear-gradient(180deg,#2D2D2D 0%,#1a1a1a 100%); border-top:2px solid var(--w1764-primary); box-shadow:0 -2px 10px rgba(0,0,0,.5); }
.w1764-bottomnav-btn { flex:1; min-width:60px; min-height:60px; background:transparent; border:none; color:var(--w1764-muted); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; cursor:pointer; font-size:1.05rem; font-weight:600; transition:color .15s ease,transform .15s ease; position:relative; }
.w1764-bottomnav-btn i,.w1764-bottomnav-btn span.material-icons-outlined,.w1764-bottomnav-btn ion-icon { font-size:22px; }
.w1764-bottomnav-btn span.material-icons-outlined,.w1764-bottomnav-btn ion-icon { font-size:24px; }
.w1764-bottomnav-btn:hover { color:var(--w1764-primary); transform:translateY(-2px); }
.w1764-bottomnav-active { color:var(--w1764-primary)!important; }
.w1764-bottomnav-active::after { content:""; display:block; width:24px; height:3px; background:var(--w1764-primary); border-radius:3px; margin-top:2px; }
.w1764-bottomnav-badge { position:absolute; top:6px; right:18px; background:var(--w1764-primary); color:#fff; font-size:.9rem; min-width:14px; height:14px; border-radius:8px; padding:0 4px; display:flex; align-items:center; justify-content:center; font-weight:700; }
@media (min-width:769px) { .w1764-bottomnav { display:none; } .w1764-container { max-width:430px; } }
