/* Reference layout: horizontal archive entries, sticky header, mobile footer. */
/* Animated banners keep links and text editable, without baking the brand into a GIF. */
.promo-dock>a{position:relative;overflow:hidden;background-size:200% 100%;animation:ju88-banner-color 7s ease-in-out infinite}
.promo-dock>a:before{content:'';position:absolute;inset:-60% auto -60% -50%;width:30%;background:linear-gradient(90deg,transparent,#fff8,transparent);transform:skewX(-22deg);animation:ju88-banner-shine 4.8s ease-in-out infinite;pointer-events:none}
.promo-dock>a:nth-of-type(2):before{animation-delay:1.4s}
.promo-dock>a strong{position:relative;z-index:1;animation:ju88-brand-pulse 3s ease-in-out infinite}
.promo-dock>a:nth-of-type(2) strong{animation-delay:1.5s}
.promo-dock>a .promo-scenes{position:relative;display:block;flex:1;min-width:0;max-width:none;width:auto;height:36px;overflow:hidden}
.promo-dock>a .promo-scene{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;max-width:none;width:100%;font-size:12px;line-height:1.3;text-align:center;animation:ju88-banner-scene 6s both infinite}
.promo-dock>a .promo-scene:nth-child(2){animation-delay:-3s}
.promo-dock>a:nth-of-type(2) .promo-scene{animation-duration:7s}
.promo-dock>a:nth-of-type(2) .promo-scene:nth-child(2){animation-delay:-3.5s}
.promo-dock>a b{position:relative;z-index:1}
@keyframes ju88-banner-scene{0%{opacity:0;transform:translateX(32px) scale(.94)}8%,40%{opacity:1;transform:translateX(0) scale(1)}49%,100%{opacity:0;transform:translateX(-32px) scale(.94)}}
@keyframes ju88-banner-shine{0%,35%{left:-50%;opacity:0}42%{opacity:1}70%,100%{left:140%;opacity:0}}
@keyframes ju88-brand-pulse{0%,100%{transform:scale(1);filter:drop-shadow(0 0 0 transparent)}50%{transform:scale(1.08);filter:drop-shadow(0 0 6px #d9f8ff)}}
@keyframes ju88-banner-color{0%,100%{background-position:0 50%}50%{background-position:100% 50%}}
@media(max-width:600px){.promo-dock>a .promo-scene{font-size:11px}.promo-dock>a .promo-scenes{height:30px}}
@media(prefers-reduced-motion:reduce){.promo-dock>a,.promo-dock>a strong,.promo-dock>a:before,.promo-dock>a .promo-scene{animation:none}.promo-dock>a .promo-scene:nth-child(2){display:none}.promo-dock>a:before{display:none}}
.site-header{position:sticky;top:0;z-index:60}.admin-bar .site-header{top:32px}.account-pills{display:flex;align-items:center;gap:15px}.mobile-bottom{display:none}.category-list-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr);gap:28px;margin-top:45px}.category-list-layout .article-grid{display:block}.category-list-layout .article-card{display:grid;grid-template-columns:40% 60%;gap:0;align-items:center;margin-bottom:28px;text-align:center}.card-image{position:relative;display:block}.category-list-layout .article-card img{width:100%;aspect-ratio:1.7857;object-fit:cover}.card-text{padding:12px 20px}.category-list-layout .article-card h3{font-size:18px;margin:0 0 12px}.category-list-layout .article-card p{font-size:15px;margin:0}.date-badge{position:absolute;left:-6px;top:7px;background:#315a7d;color:#fff;padding:5px 10px;font-weight:700;font-size:16px;line-height:1.15;border:2px solid #b9daee}.date-badge small{display:block;font-size:11px}.primary-nav.is-open{max-height:calc(100dvh - 150px);overflow-y:auto}
@media(max-width:900px){.category-list-layout{grid-template-columns:minmax(0,1fr)}.category-list-layout .sidebar{display:none}}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:600px){body{padding-bottom:220px}.site-header{top:0}.admin-bar .site-header{top:0}.header-top{display:grid;grid-template-columns:32px minmax(0,1fr) 32px;gap:16px 10px;padding:14px 16px 12px;min-height:112px}.branding{grid-column:2;grid-row:1;justify-self:center;margin:0;order:initial}.brand{font-size:36px}.brand-mark{font-size:37px;display:inline}.brand-crown{font-size:30px}.menu-toggle{grid-column:1;grid-row:1;order:initial;padding:0}.header-actions{display:contents}.account-pills{grid-row:2;grid-column:1/-1;justify-content:center;gap:10px}.header-actions .pill{font-size:13px;padding:8px 15px}.gift-link{display:block;grid-column:3;grid-row:1}.gift-link img{width:32px;height:32px}.button-badge{font-size:8px}.category-list-layout .article-card{display:block;margin-bottom:28px}.category-list-layout .article-card img{aspect-ratio:1.7857}.category-list-layout .card-text{padding:18px 8px 4px}.category-list-layout .article-card h3{font-size:19px}.category-list-layout .article-card p{font-size:15px}.promo-dock{grid-template-columns:1fr;bottom:83px;width:calc(100% - 18px);gap:6px}.promo-dock>a{height:42px;flex-wrap:nowrap;justify-content:space-between;padding:7px 12px;gap:12px}.promo-dock strong{font-size:28px}.promo-dock span{font-size:11px;max-width:none;width:auto;text-align:center;flex:1}.promo-dock b{display:none}.promo-close{top:-27px}.back-top{bottom:210px}.mobile-bottom{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;position:fixed;z-index:65;left:0;right:0;bottom:0;min-height:72px;padding:8px 8px max(8px,env(safe-area-inset-bottom));background:#151a21;box-shadow:0 -3px 12px #0004;align-items:center;color:#abb8c5}.mobile-bottom>a,.mobile-bottom>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;line-height:1.25;text-align:center;min-width:0;background:none;border:0;color:inherit;padding:0;font-weight:700}.mobile-bottom svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.mobile-bottom .bottom-register{background:#258ef1;border:4px solid #18539a;color:#fff;aspect-ratio:1;border-radius:50%;width:66px;max-width:100%;margin:-13px auto -4px;box-shadow:0 0 0 4px #318ee833;font-size:12px}.mobile-bottom a:hover,.mobile-bottom button:hover{color:white}.sidebar{display:none}.faq-item summary{scroll-margin-top:140px}.entry-content h2,.entry-content h3{scroll-margin-top:140px}}

/* Original animated artwork, served locally at its native 9:1 ratio. */
.promo-dock>a.promo-image{display:block;padding:0;border:0;height:auto;min-height:0;background:transparent;animation:none;overflow:hidden;border-radius:7px;box-shadow:0 3px 12px #0006}
.promo-dock>a.promo-image:before{display:none}
.promo-dock .promo-image img{display:block;width:100%;height:auto;aspect-ratio:9/1;object-fit:contain}

/* Header accents animate without moving the buttons or their hit areas. */
.site-header .button-badge{white-space:nowrap;animation:ju88-header-badge 2.4s ease-in-out infinite;transform-origin:center bottom}
.site-header .pill:nth-child(2) .button-badge{animation-delay:-1.2s}
.site-header .gift-link img{animation:ju88-header-gift 2.8s ease-in-out infinite;transform-origin:50% 75%}
@keyframes ju88-header-badge{0%,45%,100%{transform:translate(-50%,0) scale(1)}12%{transform:translate(-50%,-3px) scale(1.06)}24%{transform:translate(-50%,0) scale(1)}34%{transform:translate(-50%,-2px) scale(1.03)}}
@keyframes ju88-header-gift{0%,55%,100%{transform:rotate(0) scale(1)}10%{transform:rotate(-12deg) scale(1.08)}20%{transform:rotate(12deg) scale(1.08)}30%{transform:rotate(-9deg) scale(1.06)}40%{transform:rotate(7deg) scale(1.04)}}
@media(prefers-reduced-motion:reduce){.site-header .button-badge,.site-header .gift-link img{animation:none}}

/* JU88 purple and gold: presentation only, retaining the existing layout. */
:root{--blue:#7956bd;--paper:#17112d;--text:#eee9fa;--muted:#bdb2d3;--line:#403254;--black:#100b20;--ju88-gold:#f4d58a}
body{color:var(--text);background:#0d091b;background-image:radial-gradient(ellipse at 10% 0%,#55307855,transparent 48%),radial-gradient(ellipse at 95% 45%,#44266355,transparent 50%);background-attachment:fixed}
.site-shell{background:linear-gradient(150deg,#201537 0%,#17112d 48%,#130e25 100%);box-shadow:0 12px 70px #0007}
a:hover{color:#ffe7a9}h1,h2,h3{color:#f4d58a}
.header-top{background:linear-gradient(110deg,#19112e,#2e1d47 65%,#19112e);border-bottom:1px solid #70513c80}
.brand,.brand:hover,.brand-mark,.brand-crown,.footer-brand{color:#f6d786;text-shadow:0 2px 10px #d3952633}
.pill{background:linear-gradient(180deg,#ffedaf,#edc568 55%,#c79232);border-color:#ffe6a4;color:#352044;border-radius:10px;box-shadow:inset 0 1px 0 #fff7,0 4px 14px #07031040}
.pill:hover{background:linear-gradient(180deg,#fff2bf,#f1ce7f);color:#25152f}
.account-pills .pill:first-child,.account-actions .pill:nth-child(2){background:linear-gradient(180deg,#7753ac,#4b316e);border-color:#a787d1;color:#fff1c5}
.account-pills .pill:first-child:hover,.account-actions .pill:nth-child(2):hover{background:#7650a8;color:#fff}
.site-header .button-badge{background:#6c2d58;border:1px solid #e4ba77;color:#fff2c8;box-shadow:0 2px 7px #09031366}
.primary-nav{background:linear-gradient(90deg,#342047,#4c2e69 50%,#342047);border-bottom:1px solid #75548e}
.nav-list>li>a{color:#e9dff6;transition:background-color .18s,color .18s}
.nav-list>li>a:hover,.nav-list>.current-menu-item>a,.nav-list>.current-menu-ancestor>a{background:#f2d38b12;color:#ffdfa1;box-shadow:inset 0 -3px #e6bd64}
.sub-menu{background:#261a3a;color:#ece2f7;border:1px solid #5c4277;border-radius:0 0 10px 10px;box-shadow:0 12px 25px #0005}
.sub-menu a{border-color:#483555}.sub-menu a:hover{background:#422955;color:#ffe4a0}
.menu-toggle{color:#f5d88f}.menu-toggle span{background:#f5d88f}
.breadcrumb,.post-meta{color:#bfb2d3}.breadcrumb a,.category-label,.post-meta span{color:#e5c77e}
.category-label{display:inline-block;background:#e5bb5712;border:1px solid #9b754c66;border-radius:20px;padding:3px 12px}
.section-title:before,.section-title:after,.small-rule{background:#9a7850}
.home-tiles>a{display:block;border:1px solid #694b81;border-radius:14px;overflow:hidden;box-shadow:0 8px 20px #08041355;transition:box-shadow .18s,border-color .18s}
.home-tiles>a:hover{border-color:#e2bf73;box-shadow:0 8px 24px #e0b76520}
.featured-image,.entry-content figure.wp-block-image{border-radius:12px;overflow:hidden;box-shadow:0 6px 24px #07041040}
.entry-content a,.read-more,.article-footer-nav a{color:#eccc87}
.entry-content figcaption{background:#251a38;color:#cabcdb;border-bottom:1px solid #493657}
.entry-content blockquote{background:#2e2040;border-left:3px solid #dfba70;color:#e8dff2;border-radius:0 10px 10px 0}
.wp-block-table{border:1px solid #574068;border-radius:10px;overflow-x:auto}
.wp-block-table table{margin:0}.wp-block-table th{background:#3e2a52;color:#ffe2a2;border-color:#614977}.wp-block-table td{background:#20162f;color:#eee8f6;border-color:#493557}.wp-block-table tr:nth-child(even) td{background:#291c3b}
.sidebar{border-color:#483457}.sidebar section{background:#231832;border:1px solid #473355;border-radius:12px;padding:18px}.sidebar h2{color:#f1d08b}.sidebar li{border-color:#483657}.sidebar time{color:#b4a4c7}
.article-card{background:#251a36;border:1px solid #51395f;border-radius:12px;overflow:hidden;box-shadow:0 6px 20px #09051433}.article-card h3{color:#f0d49a}.article-card p{color:#cec2de}.article-card>h3,.article-card>p{padding-left:12px;padding-right:12px}
.date-badge{left:7px;background:#38234f;border-color:#d2ad69;color:#ffe2a1;border-radius:6px}
.article-footer-nav,.related,.faq-item{border-color:#4c375b}.faq-item summary{color:#eacf94}.faq-item[open]{background:#241831;border-radius:8px;padding-left:12px;padding-right:12px}
.site-footer{background:linear-gradient(135deg,#21142f,#130d21);border-color:#705236}.site-footer h2{color:#efcd85}.site-footer p,.site-footer li{color:#cfc3dc}.footer-tags,.copyright{border-color:#493353}.copyright{color:#b8a8c9}
.back-top{background:#3d2757e8;border-color:#d4b06d;color:#ffe1a0}.promo-close{background:#382243;border-color:#b78b61;color:#ffe7b3}
.promo-dock>a.promo-image{box-shadow:0 0 0 1px #caa15c77,0 5px 18px #0006;border-radius:10px}
.mobile-bottom{background:linear-gradient(180deg,#291a3e,#160e25);border-top:1px solid #745333;box-shadow:0 -4px 20px #09041066;color:#d5c5e3}
.mobile-bottom .bottom-register{background:linear-gradient(180deg,#ffe7a1,#cc983e);border-color:#765234;color:#2d1b37;box-shadow:0 0 0 4px #e2b95c20}.mobile-bottom a:hover,.mobile-bottom button:hover{color:#ffe2a0}.mobile-bottom .bottom-register:hover{color:#211429}
@media(max-width:900px){.sub-menu{background:#2e1d42;border:0;border-left:1px solid #70508b;border-radius:0}.sub-menu a,.nav-list>li>a{border-bottom-color:#58406a}.sidebar{border-top-color:#483457}}
@media(max-width:600px){body{background:#100b1e}.header-top{background:linear-gradient(120deg,#19112e,#302047)}.article-heading h1,.section-title{overflow-wrap:break-word}.article-card{border-radius:10px}.category-list-layout .card-text{padding:18px 12px}.site-footer{border-top:1px solid #745333}.featured-image,.entry-content figure.wp-block-image{border-radius:8px}}

/* Fit short tables to phones; wider comparisons retain readable columns. */
@media(max-width:600px){
 .entry-content .wp-block-table{border-radius:8px;scrollbar-width:thin;scrollbar-color:#d6b475 #281b3b}
 .entry-content .wp-block-table table{min-width:0;width:100%;table-layout:fixed;font-size:14px;line-height:1.55}
 .entry-content .wp-block-table th,.entry-content .wp-block-table td{padding:10px 8px;white-space:normal;overflow-wrap:break-word;word-break:normal}
 .entry-content .wp-block-table:has(tr>:nth-child(4)) table{min-width:560px;table-layout:auto}
 .entry-content .wp-block-table:has(tr>:nth-child(4)):before{content:'↔ Vuốt ngang để xem đầy đủ bảng';display:block;position:sticky;left:0;width:100%;padding:8px 10px;background:#302041;color:#f4d58a;font-size:12px;line-height:1.5;border-bottom:1px solid #614977}
}

/* Animate the mobile registration accent without shifting adjacent items. */
@media(max-width:600px){
 .mobile-bottom .bottom-register{animation:ju88-register-glow 2.2s ease-in-out infinite;transform-origin:center}
 @keyframes ju88-register-glow{0%,100%{transform:scale(1);box-shadow:0 0 0 4px #e2b95c20,0 0 8px #edc66d22}50%{transform:scale(1.07);box-shadow:0 0 0 8px #e2b95c30,0 0 22px #edc66d88}}
}
@media(prefers-reduced-motion:reduce){.mobile-bottom .bottom-register{animation:none}}
