/*
Theme Name: UG88 Green Elite v7
Theme URI: https://jellygrandma.com/
Author: JellyGrandma
Description: Theme WordPress màu xanh lá, responsive, tập trung nội dung UG88 và Core Web Vitals.
Version: 7.0.0
Text Domain: ug88-green-elite
*/
:root{--ug-950:#03180f;--ug-900:#062818;--ug-850:#07371f;--ug-800:#084626;--ug-700:#0a662f;--ug-600:#0d7f39;--ug-500:#13a249;--ug-100:#eff9f1;--ug-50:#f7fcf8;--gold:#ffd900;--gold2:#ffef68;--ink:#132219;--muted:#637369;--line:#d9eadf;--white:#fff;--shadow:0 16px 45px rgba(4,47,23,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#f5fbf6 0,#edf7f0 100%);color:var(--ink);font-family:Arial,"Helvetica Neue",sans-serif;font-size:16px;line-height:1.72}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto;display:block}.ug-shell{width:min(1180px,calc(100% - 32px));margin-inline:auto}
.site-header{position:relative;z-index:50;background:var(--ug-950);color:#fff;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 8px 24px rgba(3,24,15,.16)}.ug-head-main{min-height:82px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px}.ug-head-side{display:flex;align-items:center}.ug-head-side.right{justify-content:flex-end}.custom-logo-link{display:flex;align-items:center;justify-content:center}.custom-logo{max-height:58px!important;width:auto!important;max-width:190px!important}.ug-text-logo{font-size:36px;font-weight:1000;letter-spacing:-2px;color:#fff}.ug-text-logo b{color:var(--gold)}
.ug-action{position:relative;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;min-width:124px;padding:11px 18px;border-radius:12px;font-size:13px;font-weight:900;text-transform:uppercase;letter-spacing:.3px;border:1px solid rgba(255,255,255,.26);transition:.2s transform,.2s box-shadow}.ug-action.login{background:linear-gradient(180deg,#13ad56,#087533);box-shadow:0 0 0 3px rgba(23,197,91,.10),0 0 20px rgba(29,220,99,.38)}.ug-action.register{color:#17220c;background:linear-gradient(180deg,#fff26b,#ffd600);border-color:#ffea38;box-shadow:0 0 0 3px rgba(255,216,0,.10),0 0 22px rgba(255,219,0,.34)}.ug-action::after{content:"";position:absolute;inset:-50% auto -50% -50%;width:38%;transform:skewX(-20deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.65),transparent);animation:ugShine 2.6s infinite}.ug-action:hover{transform:translateY(-1px)}@keyframes ugShine{0%,45%{left:-55%}70%,100%{left:135%}}
.ug-nav-wrap{background:#052116;border-top:1px solid rgba(255,255,255,.06)}.ug-nav{height:46px;display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.ug-nav a{color:#dff7e7;padding:8px 14px;border-radius:8px;font-size:14px;font-weight:800}.ug-nav a:hover{color:#fff;background:#0a6130}
main{display:block}.ug-top-space{padding-top:20px}.hero{position:relative;border-radius:18px;overflow:hidden;background:var(--ug-900);box-shadow:var(--shadow);border:1px solid rgba(4,92,42,.15)}.hero-track{position:relative;height:330px}.hero-slide{position:absolute;inset:0;opacity:0;pointer-events:none;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;transition:opacity .55s ease;background:radial-gradient(circle at 72% 50%,rgba(38,205,93,.35),transparent 34%),linear-gradient(135deg,#06341d,#0a6b31)}.hero-slide.active{opacity:1;pointer-events:auto}.hero-copy{padding:48px 30px 48px 58px;color:#fff;position:relative;z-index:2}.hero-kicker{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:1.5px;color:#bdf7ce}.hero-copy h2{font-size:42px;line-height:1.05;margin:12px 0 13px;letter-spacing:-1.3px;max-width:610px}.hero-copy p{margin:0 0 20px;max-width:590px;color:#e6f8eb}.hero-cta{display:inline-flex;background:var(--gold);color:#16220d;font-weight:950;padding:12px 19px;border-radius:10px}.hero-art{height:330px;position:relative;overflow:hidden}.hero-art img{width:100%;height:100%;object-fit:cover;object-position:center 20%}.hero-art:before{content:"";position:absolute;z-index:1;inset:0;background:linear-gradient(90deg,#0b5c30 0,transparent 38%),linear-gradient(0deg,rgba(3,24,15,.14),transparent 50%)}.hero-dots{position:absolute;z-index:5;bottom:14px;left:50%;display:flex;gap:6px;transform:translateX(-50%)}.hero-dot{width:8px;height:8px;border:0;border-radius:50%;background:rgba(255,255,255,.5);cursor:pointer}.hero-dot.active{width:28px;border-radius:999px;background:var(--gold)}
.ug-panel{margin-top:16px;border-radius:17px;background:#fff;box-shadow:var(--shadow);border:1px solid var(--line);overflow:hidden}.ug-panel.dark{background:var(--ug-950);border-color:#0b4d28;color:#fff}.ug-panel-head{padding:17px 20px 7px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.ug-eyebrow{font-size:11px;color:#19a44c;font-weight:950;letter-spacing:1.4px;text-transform:uppercase}.ug-panel-head h2{margin:2px 0 0;font-size:26px;line-height:1.15}.ug-panel.dark .ug-eyebrow{color:#6eef9c}.ug-live{font-size:11px;color:var(--gold);font-weight:900}.trend-viewport{overflow:hidden;padding:4px 14px 16px}.trend-track{display:flex;width:max-content;gap:10px;animation:ugMarquee 32s linear infinite}.trend-viewport:hover .trend-track{animation-play-state:paused}@keyframes ugMarquee{to{transform:translateX(-50%)}}.game-card{width:132px;flex:0 0 132px}.game-card img{width:132px;height:178px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,.15)}.game-card .name{font-size:11px;font-weight:850;margin-top:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-card .meta{font-size:9px;color:var(--gold);font-weight:700}
.category-wrap{margin-top:14px;background:var(--gold);padding:8px;border-radius:16px;box-shadow:0 10px 30px rgba(9,88,39,.12)}.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:7px}.cat{min-height:90px;border-radius:11px;background:linear-gradient(180deg,#0b7c38,#08622d);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:950;text-transform:uppercase;border:1px solid rgba(255,255,255,.16);transition:.2s}.cat:hover{background:#095929;transform:translateY(-1px)}.cat svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.feature-section{margin-top:22px}.section-title{text-align:center;margin-bottom:10px}.section-title .mini{font-size:10px;color:#11813d;font-weight:950;letter-spacing:1.6px;text-transform:uppercase}.section-title h2{font-size:26px;margin:2px 0 0;line-height:1.25}.sanh-card{overflow:hidden;border-radius:17px;background:#4d2205;border:1px solid #7b3d10;box-shadow:var(--shadow)}.sanh-card img{width:100%;height:auto}
.content-card{margin:28px auto 0;max-width:1030px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:34px 42px;box-shadow:var(--shadow)}.content-card h1{font-size:34px;line-height:1.2;margin:0 0 12px;letter-spacing:-.7px}.content-card h2{font-size:25px;line-height:1.3;margin:34px 0 10px;color:#083a20}.content-card h3{font-size:19px;line-height:1.4;margin:24px 0 8px}.content-card p{margin:0 0 15px;color:#34463b}.content-card ul{padding-left:21px}.ug-toc{margin:20px 0 25px;padding:18px 20px;background:#f2faf4;border:1px solid #d8eddf;border-radius:13px}.ug-toc strong{color:#07562a}.ug-toc a{color:#0b7335;font-weight:750}.ug-note{padding:15px 17px;background:#f7fbf8;border-left:4px solid #0c9c48;border-radius:8px;margin:18px 0;color:#32503d}
.blog-section{margin:28px 0}.blog-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:12px}.blog-head h2{font-size:27px;margin:0}.blog-head a{font-size:13px;font-weight:900;color:#0a7836}.blog-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.blog-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;box-shadow:0 8px 24px rgba(4,47,23,.06)}.blog-thumb{aspect-ratio:16/10;background:linear-gradient(135deg,#0a7537,#08381f);display:flex;align-items:center;justify-content:center;color:#fff;font-size:25px;font-weight:1000}.blog-card-body{padding:12px}.blog-card h3{font-size:14px;line-height:1.35;margin:0 0 6px}.blog-card p{font-size:11px;line-height:1.5;color:#68776e;margin:0}.faq{margin:28px auto;max-width:1030px}.faq h2{font-size:27px}.faq details{background:#fff;border:1px solid var(--line);border-radius:12px;margin:9px 0;padding:0 17px;box-shadow:0 5px 18px rgba(4,47,23,.04)}.faq summary{cursor:pointer;font-weight:900;padding:15px 0}.faq details p{padding:0 0 15px;margin:0;color:#53655a}
.site-footer{margin-top:38px;background:linear-gradient(180deg,#052619,#03170f);color:#e7f5eb;border-top:4px solid #0a7a38}.footer-top{padding:40px 0 34px}.footer-grid{display:grid;grid-template-columns:1.45fr .8fr .8fr 1fr;gap:36px}.footer-brand{font-size:27px;font-weight:1000;color:#fff;margin-bottom:8px}.footer-brand b{color:var(--gold)}.footer-desc{font-size:13px;color:#b7cfbf;max-width:420px}.site-footer h3{font-size:14px;text-transform:uppercase;margin:0 0 13px;color:#fff}.foot-links{display:grid;gap:7px}.foot-links a{font-size:13px;color:#bed3c5}.foot-links a:hover{color:#fff}.footer-info{font-size:12px;color:#b9cec0;display:grid;gap:7px}.footer-bottom{border-top:1px solid rgba(255,255,255,.08);padding:16px 0 80px;font-size:11px;color:#90ad9b;text-align:center}.mobile-sticky{display:none}
@media(max-width:900px){.ug-shell{width:min(100% - 22px,760px)}.ug-head-main{grid-template-columns:1fr auto 1fr;min-height:68px}.custom-logo{max-height:46px!important;max-width:145px!important}.ug-action{min-width:102px;padding:9px 11px;font-size:11px}.ug-nav{justify-content:flex-start;overflow:auto}.hero-track,.hero-art{height:280px}.hero-slide{grid-template-columns:1.05fr .95fr}.hero-copy{padding:34px}.hero-copy h2{font-size:34px}.blog-grid{grid-template-columns:repeat(3,1fr)}.footer-grid{grid-template-columns:1.4fr 1fr 1fr}.footer-grid>div:last-child{grid-column:1/-1}}
@media(max-width:600px){body{font-size:15px;padding-bottom:64px}.ug-shell{width:calc(100% - 18px)}.ug-head-main{min-height:60px;gap:7px}.ug-head-side .ug-action{min-width:78px;padding:8px 7px;border-radius:9px;font-size:9px}.custom-logo{max-height:41px!important;max-width:120px!important}.ug-text-logo{font-size:25px}.ug-nav-wrap{display:none}.ug-top-space{padding-top:9px}.hero{border-radius:12px}.hero-track{height:205px}.hero-slide{grid-template-columns:1.08fr .92fr}.hero-copy{padding:22px 7px 22px 18px}.hero-kicker{font-size:8px}.hero-copy h2{font-size:25px;margin:8px 0}.hero-copy p{font-size:11px;line-height:1.5;margin-bottom:13px}.hero-cta{font-size:10px;padding:9px 12px}.hero-art{height:205px}.hero-dots{bottom:8px}.ug-panel{border-radius:12px;margin-top:10px}.ug-panel-head{padding:12px 11px 5px}.ug-panel-head h2{font-size:20px}.trend-viewport{padding:3px 9px 11px}.game-card,.game-card img{width:96px}.game-card{flex-basis:96px}.game-card img{height:130px;border-radius:9px}.game-card .name{font-size:9px}.game-card .meta{font-size:8px}.category-wrap{margin-top:9px;padding:6px;border-radius:12px}.category-grid{gap:4px}.cat{min-height:69px;font-size:8.5px;border-radius:8px}.cat svg{width:22px;height:22px}.feature-section{margin-top:16px}.section-title h2{font-size:21px}.sanh-card{border-radius:11px}.content-card{margin-top:16px;padding:23px 17px;border-radius:13px}.content-card h1{font-size:27px}.content-card h2{font-size:21px;margin-top:28px}.content-card h3{font-size:17px}.content-card p{font-size:14px}.blog-head h2{font-size:22px}.blog-grid{grid-template-columns:repeat(2,1fr);gap:8px}.blog-card:nth-child(5){display:none}.faq h2{font-size:22px}.footer-top{padding:30px 0 24px}.footer-grid{grid-template-columns:1fr 1fr;gap:24px 18px}.footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:1/-1}.footer-bottom{padding-bottom:20px}.mobile-sticky{position:fixed;display:grid;grid-template-columns:1fr 1fr;gap:7px;left:0;right:0;bottom:0;z-index:100;padding:8px 10px;background:rgba(3,24,15,.96);backdrop-filter:blur(10px);border-top:1px solid rgba(255,255,255,.08)}.mobile-sticky .ug-action{width:100%;min-height:44px}}

/* v5: image-only hero + SEO topic archives */
.hero-image-only .hero-track{height:auto;aspect-ratio:580/220;background:#06341d}.hero-image-only .hero-slide{display:block;background:none}.hero-image-only .hero-slide img{width:100%;height:100%;object-fit:cover}.archive-shell{padding-top:26px;padding-bottom:20px}.archive-hero{background:linear-gradient(135deg,#06341d,#0b6a32);color:#fff;border-radius:18px;padding:34px 38px;margin-bottom:18px}.archive-hero h1{font-size:38px;line-height:1.15;margin:5px 0 10px}.archive-hero p{max-width:800px;margin:0;color:#dff4e5}.archive-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.archive-card{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 8px 24px rgba(4,47,23,.06)}.archive-card img,.archive-placeholder{width:100%;aspect-ratio:16/9;object-fit:cover}.archive-placeholder{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#0a7537,#08381f);color:#fff;font-size:34px;font-weight:1000}.archive-body{padding:18px}.archive-body span{font-size:11px;color:#748278}.archive-body h2{font-size:20px;line-height:1.35;margin:5px 0 8px;color:#09391f}.archive-body p{font-size:13px;color:#5b6c61}.archive-body b{font-size:12px;color:#087337}.seo-home a{color:#087337;text-decoration:underline;text-underline-offset:2px}
@media(max-width:900px){.archive-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.hero-image-only .hero-track{height:auto;aspect-ratio:580/220}.archive-shell{padding-top:12px}.archive-hero{padding:23px 18px;border-radius:13px}.archive-hero h1{font-size:29px}.archive-grid{grid-template-columns:1fr}.archive-body h2{font-size:19px}}


/* v6 polished category navigation */
.category-wrap{padding:7px;background:linear-gradient(180deg,#ffe934,#ffc900);border:1px solid #efd000;box-shadow:0 12px 34px rgba(3,68,30,.13),inset 0 1px rgba(255,255,255,.55)}
.category-grid{gap:7px}
.cat{position:relative;isolation:isolate;overflow:hidden;min-height:100px;border-radius:13px;background:linear-gradient(145deg,#0b8a3d,#06672d 65%,#055625);border:1px solid rgba(255,255,255,.22);box-shadow:inset 0 1px 0 rgba(255,255,255,.17),0 6px 14px rgba(2,52,22,.14);gap:7px;letter-spacing:.25px}
.cat:before{content:"";position:absolute;z-index:-1;width:85px;height:85px;right:-34px;top:-38px;border-radius:50%;background:rgba(255,255,255,.07)}
.cat:hover{background:linear-gradient(145deg,#0d9845,#087537);transform:translateY(-2px);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 10px 20px rgba(2,52,22,.18)}
.cat-icon{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.06));border:1px solid rgba(255,255,255,.28);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 4px 10px rgba(0,0,0,.10)}
.cat-icon svg{width:27px;height:27px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cat span{font-size:12px;text-shadow:0 1px 2px rgba(0,0,0,.18)}
.archive-pillar{margin:0 0 22px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:30px 34px;box-shadow:var(--shadow)}
.archive-pillar h2{font-size:27px;line-height:1.25;color:#073a20;margin:0 0 12px}.archive-pillar h3{font-size:20px;color:#075229;margin:24px 0 8px}.archive-pillar p{margin:0 0 13px;color:#425349}.archive-pillar ul{padding-left:20px}.archive-list-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin:28px 0 12px}.archive-list-head h2{margin:0;font-size:27px;color:#073a20}.archive-empty{grid-column:1/-1;background:#fff;border:1px dashed #b9d8c3;border-radius:14px;padding:22px;color:#52695a}
.ug-admin-note{margin-top:14px;padding:13px 15px;border-radius:10px;background:#f4fbf6;border:1px solid #cfe8d7;color:#2d5039}
@media(max-width:600px){.cat{min-height:78px;gap:5px}.cat-icon{width:34px;height:34px}.cat-icon svg{width:21px;height:21px}.cat span{font-size:8.5px}.archive-pillar{padding:22px 17px;border-radius:13px}.archive-pillar h2{font-size:23px}.archive-pillar h3{font-size:18px}.archive-list-head h2{font-size:22px}}


/* v7 category icon redesign */
.category-wrap{padding:8px;background:linear-gradient(180deg,#ffec39 0%,#ffd400 100%);border-radius:18px}
.category-grid{gap:8px}
.cat{min-height:106px;border-radius:14px;background:linear-gradient(180deg,#0b8b3d 0%,#087232 52%,#075d2b 100%);border:1px solid rgba(255,255,255,.26);box-shadow:inset 0 1px 0 rgba(255,255,255,.20),0 6px 14px rgba(2,52,22,.16);gap:8px}
.cat:hover{background:linear-gradient(180deg,#0d9a45 0%,#087a36 55%,#06632d 100%)}
.cat-icon{width:52px;height:52px;border-radius:15px;background:linear-gradient(145deg,#119d49,#075c2b);border:2px solid rgba(255,255,255,.78);box-shadow:0 5px 14px rgba(0,0,0,.16),inset 0 1px rgba(255,255,255,.22)}
.cat-icon img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 2px 2px rgba(0,0,0,.18))}
.cat>span:last-child{font-size:12px;font-weight:950;letter-spacing:.3px;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.35)}
@media(max-width:600px){.category-wrap{padding:6px;border-radius:13px}.category-grid{gap:5px}.cat{min-height:82px;border-radius:9px;gap:5px}.cat-icon{width:38px;height:38px;border-radius:11px}.cat-icon img{width:26px;height:26px}.cat>span:last-child{font-size:8.5px}}

/* v7 setup notice */
.ug88-setup-card{border-left-color:#0a8a3e!important}.ug88-setup-card .button-primary{background:#087737;border-color:#087737}.ug88-setup-card .button-primary:hover{background:#075f2d;border-color:#075f2d}
