/* =========================================================
 * ju87.click - Main Stylesheet
 * All custom classes use prefix: w89ae-
 * Palette: #2C3E50 (bg) | #CD853F / #A0522D (brand)
 *          #E9967A (accent) | #00FF7F (highlight) | #FAFAFA (text)
 * ========================================================= */

:root {
    --w89ae-bg: #2C3E50;
    --w89ae-bg-2: #1c2a38;
    --w89ae-bg-3: #243647;
    --w89ae-brand: #CD853F;
    --w89ae-brand-2: #A0522D;
    --w89ae-accent: #E9967A;
    --w89ae-high: #00FF7F;
    --w89ae-text: #FAFAFA;
    --w89ae-muted: #b9c2cc;
    --w89ae-gold: #f5c46b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    background: var(--w89ae-bg);
    color: var(--w89ae-text);
    line-height: 1.55;
    font-size: 1.5rem;
    overflow-x: hidden;
}

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

a { color: var(--w89ae-gold); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: #fff; line-height: 1.25; font-weight: 700; }

.w89ae-wrap { width: 100%; max-width: 430px; margin: 0 auto; position: relative; }
@media (min-width: 769px) {
    .w89ae-wrap { max-width: 960px; }
}

/* ---------- Header ---------- */
.w89ae-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, #1c2a38 0%, #243647 100%);
    border-bottom: 2px solid var(--w89ae-brand);
    box-shadow: 0 2px 10px rgba(0,0,0,0.35);
}
.w89ae-header-inner {
    max-width: 430px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    height: 56px;
}
@media (min-width: 769px) {
    .w89ae-header-inner { max-width: 960px; padding: 8px 20px; }
}
.w89ae-logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 2.0rem; font-weight: 800; color: var(--w89ae-gold);
    letter-spacing: 1px;
}
.w89ae-logo .w89ae-logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #CD853F, #A0522D);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.6rem;
}
.w89ae-head-actions { display: flex; align-items: center; gap: 6px; }
.w89ae-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    border: none; cursor: pointer;
    font-weight: 700; font-size: 1.3rem;
    padding: 7px 14px; border-radius: 20px;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    color: #fff;
}
.w89ae-btn:hover { transform: translateY(-1px); text-decoration: none; }
.w89ae-btn-login { background: transparent; border: 1px solid var(--w89ae-brand); color: var(--w89ae-gold); }
.w89ae-btn-register { background: linear-gradient(135deg, #CD853F, #A0522D); box-shadow: 0 3px 8px rgba(0,0,0,0.3); }

.w89ae-menu-btn {
    background: transparent; border: none; color: var(--w89ae-text);
    font-size: 2.0rem; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}

/* Desktop nav */
.w89ae-desktop-nav { display: none; }
@media (min-width: 769px) {
    .w89ae-desktop-nav { display: flex; gap: 18px; align-items: center; }
    .w89ae-desktop-nav a { color: var(--w89ae-text); font-size: 1.4rem; font-weight: 500; }
    .w89ae-desktop-nav a:hover { color: var(--w89ae-high); }
    .w89ae-menu-btn { display: none; }
}

/* ---------- Mobile menu ---------- */
.w89ae-mobile-menu {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 320px; height: 100vh;
    background: #1c2a38; z-index: 9999;
    padding: 70px 18px 20px;
    transition: right .28s ease;
    overflow-y: auto;
    border-left: 2px solid var(--w89ae-brand);
}
.w89ae-mobile-menu.w89ae-menu-open { right: 0; }
.w89ae-mobile-menu a {
    display: block; padding: 12px 10px;
    color: var(--w89ae-text); font-size: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.w89ae-mobile-menu a:hover { color: var(--w89ae-high); text-decoration: none; }
.w89ae-menu-close {
    position: absolute; top: 12px; right: 12px;
    background: transparent; border: none; color: #fff;
    font-size: 2.4rem; cursor: pointer;
}
.w89ae-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5);
    z-index: 9998; opacity: 0; pointer-events: none;
    transition: opacity .25s ease;
}
.w89ae-menu-overlay.w89ae-menu-open { opacity: 1; pointer-events: auto; }

/* ---------- Main ---------- */
main { padding-top: 56px; }
@media (max-width: 768px) {
    main { padding-bottom: 80px; }
}

.w89ae-section { padding: 22px 12px; }
.w89ae-section-title {
    font-size: 2.0rem; margin-bottom: 4px; color: var(--w89ae-gold);
    display: flex; align-items: center; gap: 8px;
}
.w89ae-section-sub { color: var(--w89ae-muted); font-size: 1.3rem; margin-bottom: 14px; }

/* ---------- Hero carousel ---------- */
.w89ae-hero {
    position: relative; overflow: hidden;
    border-radius: 14px; margin: 14px 0;
}
.w89ae-hero-track { position: relative; }
.w89ae-hero-slide {
    display: none;
    background: linear-gradient(135deg, #243647 0%, #A0522D 100%);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(205,133,63,0.4);
}
.w89ae-hero-slide.w89ae-slide-active { display: block; animation: w89aeFade .6s ease; }
@keyframes w89aeFade { from { opacity: 0; } to { opacity: 1; } }
.w89ae-hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 16px; align-items: center;
}
.w89ae-hero-text h2 { font-size: 2.2rem; color: var(--w89ae-gold); margin-bottom: 6px; }
.w89ae-hero-text p { font-size: 1.25rem; color: var(--w89ae-text); margin-bottom: 10px; }
.w89ae-hero-text .w89ae-btn { font-size: 1.3rem; padding: 9px 18px; }
.w89ae-hero-img img { width: 100%; border-radius: 10px; }
.w89ae-hero-dots {
    display: flex; justify-content: center; gap: 6px;
    padding: 8px 0 4px;
}
.w89ae-hero-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.35); cursor: pointer;
}
.w89ae-hero-dot.w89ae-dot-active { background: var(--w89ae-high); }

/* ---------- Promo strip ---------- */
.w89ae-promo-strip {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(90deg, #A0522D, #CD853F);
    padding: 10px 14px; border-radius: 10px; margin: 12px 0;
    color: #fff;
}
.w89ae-promo-strip .w89ae-promo-icon { font-size: 2.0rem; }
.w89ae-promo-strip p { flex: 1; font-size: 1.25rem; }

/* ---------- Category tabs ---------- */
.w89ae-tabs {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 6px 0 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.w89ae-tabs::-webkit-scrollbar { display: none; }
.w89ae-tab {
    flex: 0 0 auto;
    padding: 7px 14px; border-radius: 18px;
    background: var(--w89ae-bg-3); color: var(--w89ae-text);
    font-size: 1.25rem; font-weight: 600;
    border: 1px solid transparent; cursor: pointer;
    white-space: nowrap;
}
.w89ae-tab.w89ae-tab-active {
    background: linear-gradient(135deg, #CD853F, #A0522D);
    color: #fff; border-color: var(--w89ae-gold);
}

/* ---------- Game grid ---------- */
.w89ae-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (min-width: 540px) { .w89ae-grid { grid-template-columns: repeat(4, 1fr); } }
.w89ae-card {
    background: var(--w89ae-bg-3);
    border-radius: 10px; overflow: hidden;
    border: 1px solid rgba(205,133,63,0.18);
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
}
.w89ae-card:hover { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(0,0,0,0.4); }
.w89ae-card-img { position: relative; aspect-ratio: 1 / 1; background: #0f1822; }
.w89ae-card-img img { width: 100%; height: 100%; object-fit: cover; }
.w89ae-card-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s ease;
}
.w89ae-card:hover .w89ae-card-overlay { opacity: 1; }
.w89ae-card-overlay .w89ae-play {
    background: var(--w89ae-high); color: #053;
    border-radius: 50%; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 700;
}
.w89ae-card-name {
    padding: 6px 8px; font-size: 1.15rem;
    color: var(--w89ae-text); text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w89ae-tag-hot {
    position: absolute; top: 4px; left: 4px;
    background: #e74c3c; color: #fff;
    font-size: 1.0rem; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
}
.w89ae-tag-new {
    position: absolute; top: 4px; left: 4px;
    background: var(--w89ae-high); color: #053;
    font-size: 1.0rem; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
}

/* ---------- Featured block ---------- */
.w89ae-featured {
    background: linear-gradient(135deg, #243647, #1c2a38);
    border-radius: 14px; padding: 16px; margin: 16px 0;
    border: 1px solid var(--w89ae-brand);
}
.w89ae-featured-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (min-width: 540px) { .w89ae-featured-grid { grid-template-columns: 1fr 1fr 1fr; } }
.w89ae-feat-card {
    background: rgba(0,0,0,0.25); border-radius: 10px;
    overflow: hidden; border: 1px solid rgba(255,255,255,0.06);
}
.w89ae-feat-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.w89ae-feat-card .w89ae-feat-body { padding: 8px 10px; }
.w89ae-feat-card h4 { font-size: 1.25rem; color: var(--w89ae-gold); margin-bottom: 4px; }
.w89ae-feat-card p { font-size: 1.1rem; color: var(--w89ae-muted); }

/* ---------- SEO long text ---------- */
.w89ae-seo-text {
    background: var(--w89ae-bg-2);
    border-radius: 12px; padding: 18px 16px; margin: 16px 0;
    color: var(--w89ae-text); font-size: 1.35rem; line-height: 1.7;
}
.w89ae-seo-text h2 { color: var(--w89ae-gold); font-size: 1.9rem; margin: 14px 0 8px; }
.w89ae-seo-text h2:first-child { margin-top: 0; }
.w89ae-seo-text h3 { color: var(--w89ae-accent); font-size: 1.55rem; margin: 12px 0 6px; }
.w89ae-seo-text p { margin-bottom: 10px; }
.w89ae-seo-text ul { margin: 6px 0 12px 20px; }
.w89ae-seo-text li { margin-bottom: 4px; }
.w89ae-seo-text a { color: var(--w89ae-high); }

/* ---------- FAQ ---------- */
.w89ae-faq-item {
    background: var(--w89ae-bg-3);
    border-radius: 10px; margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}
.w89ae-faq-q {
    padding: 12px 14px; cursor: pointer; font-weight: 700;
    display: flex; justify-content: space-between; align-items: center;
    color: #fff; font-size: 1.35rem;
}
.w89ae-faq-q .w89ae-faq-icon { color: var(--w89ae-gold); font-size: 1.6rem; }
.w89ae-faq-a {
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 14px;
    color: var(--w89ae-muted); font-size: 1.25rem;
}
.w89ae-faq-item.w89ae-faq-open .w89ae-faq-a {
    max-height: 600px; padding: 0 14px 12px;
}

/* ---------- Footer ---------- */
.w89ae-footer {
    background: #142030; padding: 24px 14px 18px;
    border-top: 2px solid var(--w89ae-brand);
    margin-top: 18px;
}
.w89ae-footer-cols {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (min-width: 600px) { .w89ae-footer-cols { grid-template-columns: repeat(4, 1fr); } }
.w89ae-footer-col h4 {
    color: var(--w89ae-gold); font-size: 1.4rem; margin-bottom: 8px;
}
.w89ae-footer-col a {
    display: block; color: var(--w89ae-muted); font-size: 1.2rem;
    padding: 3px 0;
}
.w89ae-footer-col a:hover { color: var(--w89ae-high); }
.w89ae-footer-bottom {
    text-align: center; color: var(--w89ae-muted);
    font-size: 1.15rem; padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.08); margin-top: 14px;
}

/* ---------- Bottom nav (mobile) ---------- */
.w89ae-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: 62px; z-index: 1000;
    background: linear-gradient(180deg, #243647 0%, #1c2a38 100%);
    border-top: 2px solid var(--w89ae-brand);
    display: flex; justify-content: space-around; align-items: stretch;
}
.w89ae-bottom-nav-item {
    flex: 1; min-width: 60px; min-height: 60px;
    background: transparent; border: none;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--w89ae-muted); cursor: pointer;
    font-size: 1.05rem; gap: 2px;
    padding: 4px 2px;
    transition: color .15s ease;
}
.w89ae-bottom-nav-item .w89ae-bn-icon { font-size: 2.2rem; line-height: 1; }
.w89ae-bottom-nav-item .w89ae-bn-label { font-size: 1.0rem; font-weight: 600; }
.w89ae-bottom-nav-item:hover { color: var(--w89ae-high); }
.w89ae-bottom-nav-item.w89ae-bn-active { color: var(--w89ae-high); }
.w89ae-bn-promo {
    color: var(--w89ae-gold);
}
.w89ae-bn-promo .w89ae-bn-icon {
    background: linear-gradient(135deg, #CD853F, #A0522D);
    color: #fff; width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-top: -22px;
    border: 3px solid #1c2a38;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
@media (min-width: 769px) {
    .w89ae-bottom-nav { display: none; }
}

/* ---------- Back to top ---------- */
.w89ae-to-top {
    position: fixed; bottom: 76px; right: 14px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--w89ae-brand); color: #fff;
    display: flex; align-items: center; justify-content: center;
    z-index: 900; cursor: pointer; font-size: 1.8rem;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
    border: none;
}
.w89ae-to-top.w89ae-to-top-show { opacity: 1; pointer-events: auto; }
@media (min-width: 769px) { .w89ae-to-top { bottom: 24px; } }

/* ---------- Marquee ---------- */
.w89ae-marquee {
    background: #05131f;
    color: var(--w89ae-high);
    padding: 6px 10px; font-size: 1.15rem;
    overflow: hidden; white-space: nowrap;
    border-bottom: 1px solid rgba(0,255,127,0.18);
}
.w89ae-marquee span { display: inline-block; padding-left: 100%; animation: w89aeMarq 22s linear infinite; }
@keyframes w89qe { 100% { padding-left: 0; } }
@keyframes w89aeMarq { 100% { transform: translateX(-100%); } }

/* ---------- Misc ---------- */
.w89ae-text-link { color: var(--w89ae-gold); font-weight: 600; cursor: pointer; }
.w89ae-text-link:hover { color: var(--w89ae-high); }

.w89ae-hide-mobile { display: none; }
@media (min-width: 769px) { .w89ae-hide-mobile { display: inline-block; } }
