/* SUNWIN – bố cục trang chủ kiểu AU88/J88 (hero + các dải mục ngang, bỏ cột Mục lục), giữ nguyên màu Sunwin: đỏ đen, chữ vàng (05/12).
   File này nạp sau sw-mobile.css và chỉ đổi khung bố cục trang chủ; màu, nút, thẻ… vẫn lấy từ sunwin.css + sw-mobile.css. */
body.home .sw-main{padding:0!important}
body.home .sw-jw{position:relative;z-index:3;--sw-s:1}

/* ---------- dải mục ---------- */
body.home .jsec{padding:30px 0;background:rgba(10,4,2,.58);border-top:1px solid rgba(240,213,127,.14)}
body.home .jsec.jsec--alt{background:rgba(74,12,8,.30)}
body.home .jsec__in{width:min(1200px,calc(100% - 28px));margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
body.home .jsec__head,body.home .jsec__body{min-width:0}
body.home .jsec__head .sw-h2{margin:0!important;padding:0;text-align:left;font-size:19px!important;line-height:1.3!important;width:auto}
body.home .jsec__body>:first-child{margin-top:0!important}
body.home .jsec__body>:last-child{margin-bottom:0!important}
body.home .jsec__body .sw-copy p,body.home .jsec__body .sw-copy li{font-size:15px;line-height:1.7}
body.home .jsec__body .sw-about-img{max-height:340px;object-fit:cover}
body.home .jsec [id]{scroll-margin-top:92px}

/* ---------- mở đầu: H1 + giới thiệu + sảnh game + lối tắt ---------- */
body.home .jintro{background:linear-gradient(180deg,rgba(10,4,2,.2),rgba(10,4,2,.58));border-top:0;padding-top:22px}
body.home .jintro .section-title-container{margin:0!important}
body.home .jintro .sw-copy{max-width:920px;margin:0 auto}
body.home .jintro .sw-lead{font-size:16px!important;line-height:1.7!important}
body.home .jneed__t{margin:26px 0 10px;font-weight:800;font-size:16px;letter-spacing:.3px;text-transform:uppercase;background:linear-gradient(180deg,#fefbdb 30%,#ff9f3e 90%);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
body.home .jintro .sw-game-cats{margin:0!important}
body.home .jintro .sw-game-cats::before{content:none!important;display:none!important}
body.home .jneed{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;border-top:1px solid rgba(240,213,127,.2)}
body.home .jneed li{margin:0;padding:0}
body.home .jneed a{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;align-items:start;min-height:56px;padding:11px 0;border-bottom:1px solid rgba(240,213,127,.2);color:#efe3cf;text-decoration:none}
body.home .jneed a svg{grid-row:1/3;color:#ffd330;margin-top:2px}
body.home .jneed a b{color:#fff;font-weight:800;font-size:15px;line-height:1.3}
body.home .jneed a span{font-size:13px;line-height:1.35;color:#cdbfa8}
body.home .jneed a:hover b{color:#ffd330}

/* ---------- đối tác ---------- */
body.home .jpart .sw-partners-head{margin:0 0 4px}
body.home .jpart .sw-partners-row{margin-bottom:0}

/* ---------- tin tức: lưới bài + danh mục nằm ngang bên dưới ---------- */
body.home .jnews .jsec__head .sw-h2{text-align:center}
body.home .jnews .swn-sec{margin:0}
body.home .jnews .swn-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:22px}
body.home .jnews .swn-layout>.swn-side{display:grid!important;position:static!important;grid-template-columns:minmax(0,1fr);gap:14px}

/* ---------- từ 768px ---------- */
@media(min-width:48rem){
body.home .jsec{padding:44px 0}
body.home .jsec__in{width:min(1200px,calc(100% - 48px))}
body.home .jsec__head .sw-h2{font-size:22px!important}
body.home .jneed{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:28px}
body.home .jnews .swn-layout>.swn-side{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
}
/* ---------- từ 960px: tiêu đề mục cột trái (dính), nội dung cột phải ---------- */
@media(min-width:60rem){
body.home .jsec__in{grid-template-columns:minmax(0,17rem) minmax(0,1fr);gap:48px;align-items:start}
body.home .jsec__head{position:sticky;top:96px}
body.home .jsec--one .jsec__in{grid-template-columns:minmax(0,1fr);gap:18px}
body.home .jsec--one .jsec__head{position:static}
body.home .jsec--one .jsec__head .sw-h2{text-align:center}
}

/* ---------- nền bằng màu thay cho ảnh (05/12): bỏ bg-body.png 1,7 MB và ảnh rèm hero 770 KB trên trang chủ ---------- */
body.home.sunwin-page,body.home.sunwin-page #wrapper,body.home.sunwin-page .page-wrapper{background-image:none!important;background-color:#0f0a0a!important}
body.home .sw-main-bg{background-image:none!important;background:linear-gradient(90deg,rgba(110,0,8,.34) 0%,rgba(110,0,8,0) 14%,rgba(110,0,8,0) 86%,rgba(110,0,8,.34) 100%),#0f0a0a!important}
body.home .sw-hero{background:radial-gradient(80% 62% at 50% 0%,#b0101a 0%,#6e0008 34%,rgba(40,4,6,0) 74%),radial-gradient(42% 30% at 50% 0%,rgba(255,159,62,.42) 0%,rgba(255,159,62,0) 70%),linear-gradient(180deg,#3a0408 0%,#1a0606 62%,#0f0a0a 100%)!important}

/* ---------- "Các sản phẩm giải trí nổi bật khác": chia 2 phần, mỗi phần một thẻ (05/12) ---------- */
body.home .sw-more{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important}
body.home .sw-more-block,body.home .sw-more-minis{min-width:0;margin:0!important;padding:16px 14px!important;border:1px solid rgba(240,213,127,.22)!important;border-radius:16px;background:radial-gradient(ellipse at 50% 0%,rgba(80,20,8,.35),rgba(10,4,2,0) 70%),rgba(10,4,2,.55)}
body.home .sw-more-minis{display:flex!important;flex-direction:column;gap:12px}
body.home .sw-more-minis p{margin-bottom:0}
body.home .sw-more-phone{display:flex;align-items:center;justify-content:center;flex:1}
body.home .sw-more-phone img{width:auto;max-width:100%;max-height:155px}
@media(min-width:48rem){
body.home .sw-more{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:stretch}
body.home .sw-more-block,body.home .sw-more-minis{padding:22px 22px 20px!important}
body.home .sw-more-block{display:flex;flex-direction:column}
body.home .sw-more-block .sw-more-row{flex:1;flex-wrap:nowrap}
}

/* ---------- thanh app đáy mobile: dựng bằng CSS + icon SVG, không dùng ảnh (05/12) ---------- */
body.home .jdock{display:none}
@media(max-width:767px){
body.home .sw{padding-bottom:0!important}
body.home .jdock{position:fixed;left:0;right:0;bottom:0;z-index:9999;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-items:end;height:calc(62px + env(safe-area-inset-bottom,0px));padding:0 6px env(safe-area-inset-bottom,0px);background:linear-gradient(180deg,#3a0a0a 0%,#1a0606 100%);border-top:1px solid rgba(240,213,127,.45);border-radius:18px 18px 0 0;box-shadow:0 -8px 24px rgba(0,0,0,.55)}
body.home .jdock a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;height:62px;min-width:0;color:#e9d9b4;text-decoration:none;-webkit-tap-highlight-color:transparent}
body.home .jdock a span{font-size:10.5px;font-weight:700;line-height:1.1;letter-spacing:.02em;white-space:nowrap}
body.home .jdock a svg{color:#ffd330}
body.home .jdock a:active{color:#fff}
body.home .jdock .jdock__play{position:relative;justify-content:flex-end;padding-bottom:8px;color:#ffd330}
body.home .jdock .jdock__play span{font-weight:800;text-transform:uppercase}
body.home .jdock .jdock__play i{position:absolute;left:50%;top:-22px;transform:translateX(-50%);display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:linear-gradient(180deg,#ffe98c 0%,#ffd330 45%,#f29d09 100%);border:3px solid #1a0606;box-shadow:0 0 0 1px rgba(240,213,127,.6),0 6px 16px rgba(242,157,9,.45)}
body.home .jdock .jdock__play i svg{color:#5a0008;fill:#5a0008;width:24px;height:24px;margin-left:2px}
}
