/* Trang Đua Top Lực Chiến (/dua-top): đầu trang theo art sự kiện, phần nội dung nền giấy.
   Chỉ nạp ở dua-top.blade.php; mọi lớp có tiền tố .dtp- để không đụng phần còn lại của site. */
.dtp {
    --muc: #16233A;
    --muc-2: #1F3150;
    --kim: #C9A45C;
    --kim-sang: #E6CB8B;
    --gold: #8C6A2E;
    --chu: #B8322A;
    --ngoc: #4E7D6F;
    --bac: #6F7C8C;
    --dong: #A35F33;
    --text: #2A2A2A;
    --phu: #6E6350;
    --surface: rgba(255, 252, 244, .8);
    --line: rgba(140, 106, 46, .28);
    --font: "Barlow Semi Condensed", "Be Vietnam Pro", system-ui, sans-serif;
    --serif: var(--font);
    background: #EFE6D2 url("/assets/game/ui/bg-main.webp?v=3") center top / 100% auto repeat-y;
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
}
.dtp a { color: var(--chu); }
.dtp h1, .dtp h2, .dtp h3 { margin: 0; font-family: var(--font); }

/* ---------- Đầu trang sự kiện ---------- */
.dtp-hero {
    overflow: hidden;
    padding: 104px 0 10px;
    background: #35252a url('/assets/game/thienhadenha/nen.webp') center center / cover no-repeat;
}
.dtp-hero-in {
    display: grid;
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    align-items: end;
    min-height: 315px;
}
.dtp-hero-main { position: relative; z-index: 1; padding: 0 0 12px; }
.dtp-hero-title { position: relative; left: 50%; width: 140%; max-width: 720px; transform: translateX(-50%); }
.dtp-hero-title img { display: block; width: 100%; height: auto; }
.dtp-desc {
    max-width: 46ch;
    margin: 0 0 14px;
    color: #fff6df;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.45;
    text-shadow: 0 2px 4px rgba(36, 15, 14, .85);
}
.dtp-hero-main .mh-dt2-cd { margin: 14px auto 0; transform: translateX(-32px); }
.dtp-note { margin: 14px 0 0; padding: 12px 14px; border: 1px solid #c7974d; border-radius: 8px; background: rgba(41, 19, 18, .82); color: #fff2cc; }
.dtp-hero-side { position: relative; align-self: end; justify-self: center; width: 135%; margin: 0; }
.dtp-hero-prize { display: block; width: 100%; height: auto; }
.dtp-hero-gifts { position: absolute; z-index: 2; left: 50%; bottom: 5%; width: 52%; height: auto; transform: translateX(-50%); }
@media (prefers-reduced-motion: reduce) {
    .dtp-hero-side .mh-dt2-fx i { animation: none; opacity: 0; }
}

/* ---------- Thanh tab và thân trang ---------- */
.dtp-tabbar { position: relative; z-index: 10; background: #693f2b; border-top: 1px solid rgba(255, 214, 151, .35); border-bottom: 1px solid #b98a4d; }
.dtp-tabs { display: flex; margin: 0; overflow-x: auto; }
.dtp .dtp-tabs a {
    flex: none;
    padding: 13px 28px 12px;
    border-bottom: 3px solid transparent;
    color: #fff5e6;
    font-family: var(--font);
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.dtp .dtp-tabs a:hover { color: #ffe790; }
.dtp .dtp-tabs a.is-active { border-bottom-color: #ffe078; background: linear-gradient(180deg, rgba(251, 218, 116, .03), rgba(255, 211, 89, .27)); color: #ffe797; }
.dtp-body {
    padding: 16px 0 72px;
}
.dtp-body.is-ranking {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #c87951 0, #d99a70 540px, #f4e9d8 1350px);
}
.dtp-body.is-rewards {
    position: relative;
    isolation: isolate;
    padding-top: 0;
    background: linear-gradient(180deg, #c77749 0, #d58b59 680px, #e5b287 1450px, #f4e9d8 100%);
}
.dtp-body.is-rules {
    position: relative;
    isolation: isolate;
    background: linear-gradient(180deg, #c77749 0, #d58b59 680px, #e5b287 1450px, #f4e9d8 100%);
}
.dtp-body.is-rules::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .42;
    background:
        url('/assets/game/duatop/phao-hoa.webp') left -80px top 35px / 340px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') right -80px top 90px / 360px auto repeat-y;
}
.dtp-body.is-rewards::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .5;
    background:
        url('/assets/game/duatop/phao-hoa.webp') left -80px top 35px / 340px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') 40% 150px / 300px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') right -80px top 90px / 360px auto repeat-y;
}
.dtp-body.is-ranking::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .78;
    background:
        url('/assets/game/duatop/phao-hoa.webp') left -85px top 35px / 370px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') 22% 210px / 300px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') 50% 80px / 340px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') 78% 270px / 300px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') right -85px top 145px / 370px auto repeat-y;
}
.dtp-body.is-ranking::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .38;
    background:
        url('/assets/game/duatop/phao-hoa.webp') 10% 275px / 200px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') 37% 30px / 230px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') 64% 350px / 210px auto repeat-y,
        url('/assets/game/duatop/phao-hoa.webp') 91% 60px / 230px auto repeat-y;
}
.dtp-pane[hidden] { display: none; }
.dtp-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 40px 0 18px; }
.dtp-h h2 { font-weight: 900; font-size: clamp(28px, 3vw, 36px); color: var(--muc); }
.dtp-h span { font-size: 15px; color: var(--phu); }
.dtp-top-heading { position: relative; display: block; width: min(800px, 94%); margin: 8px auto 0; }
.dtp-top-heading h2 img { display: block; width: 100%; height: auto; filter: saturate(1.15) brightness(1.05); }
.dtp-top-heading > span { position: absolute; bottom: 25%; left: 10%; color: #fff4d4; font-size: 14px; font-weight: 700; text-shadow: 0 1px 3px #3d1409; }

/* ---------- Tra cứu ---------- */
.dtp-search {
    display: grid;
    grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 12px 20px;
    border-radius: 6px;
    background: rgba(81, 39, 27, .82);
}
.dtp-search h2 { padding-bottom: 3px; background: url('/Trang2/VachTraCuu.webp') left bottom / 85% 2px no-repeat; font-family: 'FZ GameBR', var(--font); font-weight: 400; font-size: clamp(22px, 2.4vw, 30px); color: #ffe18b; }
.dtp-search h2 img { display: inline-block; width: auto; height: .9em; vertical-align: -0.08em; }
.dtp-search p { margin: 2px 0 0; font-size: 12px; line-height: 1.3; color: #fff4d9; }
.dtp .dtp-search-hint a { color: #ffe18b; font-weight: 700; text-decoration: underline; }
.dtp-search form { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dtp-search input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 4px;
    background: #21110c;
    color: #fff7e9;
    font: inherit;
    font-size: 15px;
}
.dtp-search input::placeholder { color: #b6a99d; }
.dtp-search input:focus { outline: 2px solid #ffe18b; outline-offset: 1px; }
.dtp-search button {
    flex: none;
    width: clamp(110px, 17vw, 174px);
    height: 50px;
    padding: 0 14px;
    border: 0;
    background: url('/Trang2/TraCuu.webp') center / 100% 100% no-repeat;
    color: #813b19;
    font-family: 'FZ GameBR', var(--font);
    font-size: 20px;
    cursor: pointer;
}
.dtp-search button:hover { filter: brightness(1.1); }

/* Kết quả tra cứu: trong Top / ngoài Top / không tìm thấy */
.dtp-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 16px 24px;
    margin-top: 14px;
    padding: 18px 24px;
    border: 1px solid var(--kim);
    border-left-width: 4px;
    border-radius: 10px;
    background: linear-gradient(90deg, rgba(230, 203, 139, .4), var(--surface));
}
.dtp-result.is-out { border-color: var(--line); border-left-color: var(--bac); background: var(--surface); }
.dtp-result.is-miss { display: flex; flex-direction: column; gap: 6px; border-color: rgba(184, 50, 42, .5); border-left-color: var(--chu); background: rgba(184, 50, 42, .06); }
.dtp-result.is-miss > b { font-size: 19px; color: var(--chu); }
.dtp-result.is-miss > span { color: var(--phu); }
.dtp-result-rank { display: flex; flex-direction: column; font-weight: 900; font-size: 40px; line-height: 1; color: var(--chu); }
.dtp-result-rank small { font-weight: 500; font-size: 13px; color: var(--phu); margin-bottom: 4px; }
.dtp-result-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dtp-result-who b { font-size: 22px; color: var(--muc); }
.dtp-result-who span { font-size: 14px; color: var(--phu); }
.dtp-result-stat { display: flex; flex-direction: column; gap: 2px; }
.dtp-result-stat small { font-size: 13px; color: var(--phu); }
.dtp-result-stat b { font-size: 21px; color: var(--gold); }
/* ghi chú hạng trống ngay trên (cms-api mục 2.1), trải hết bề ngang lưới kết quả */
.dtp-result-note { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--phu); }

/* hạng trống: không ai đạt Lực Chiến tối thiểu của bậc — tên là câu yêu cầu, chữ mờ, xuống dòng được */
.dtp .is-empty { opacity: .78; }
.dtp .is-empty .dtp-name,
.dtp .dtp-table tr.is-empty b { white-space: normal; font-weight: 600; font-size: 15px; color: var(--phu); }

/* ---------- Khung Top 2–1–3, dùng cùng art và vị trí chữ với trang chủ ---------- */
.dtp-podium { width: min(100%, 940px); margin: 0 auto; padding-bottom: clamp(44px, 5vw, 70px); }
.dtp-podium .mh-dt2-pod { min-width: 0; }
.dtp-podium .mh-dt2-pod.is-p2 { order: 1; translate: -6% 0; }
.dtp-podium .mh-dt2-pod.is-p1 { order: 2; }
.dtp-podium .mh-dt2-pod.is-p3 { order: 3; translate: 6% 0; }
.dtp-podium .mh-dt2-pod .dtp-tie { align-self: center; margin-top: 4px; color: #ffe7a6; }
.dtp-ava {
    flex: none;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin-bottom: 12px;
    border: 3px solid var(--c, var(--kim));
    border-radius: 50%;
    background: #FFFBF2;
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--c, var(--kim)) 18%, transparent);
    color: var(--c, var(--gold));
    font-weight: 900;
    font-size: 36px;
}
.dtp-ava.is-xs { width: 34px; height: 34px; margin: 0; border-width: 2px; box-shadow: none; font-size: 15px; }
.dtp-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 21px; color: var(--muc); }
.dtp-meta { font-size: 14px; color: var(--phu); }
.dtp-lc { font-weight: 900; font-size: 20px; color: var(--c, var(--gold)); font-variant-numeric: tabular-nums; }
.dtp-tie {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 3px;
    background: rgba(78, 125, 111, .14);
    color: var(--ngoc);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}
.dtp .is-found { outline: 2px solid var(--chu); outline-offset: 2px; }

/* ---------- Top 4-10: lưới 2 cột ---------- */
.dtp-grid-heading { width: 300px; height: 62px; margin: 14px 0 10px; padding: 13px 18px; background: url('/Trang2/NenTop.webp') left center / 100% 100% no-repeat; }
.dtp-grid-heading h2 { font-family: var(--font); font-size: 28px; font-weight: 600; line-height: 1.1; color: #ffe98b; text-shadow: 0 2px 2px #4b1306; }
.dtp-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; }
.dtp-grid li {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 68px;
    gap: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(111, 55, 31, .7);
}
.dtp-grid .dtp-rank { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255, 238, 212, .8); border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 238, 212, .17), 0 0 0 2px rgba(255, 238, 212, .25); color: #fff9e9; font-family: var(--font); font-size: 32px; font-weight: 500; line-height: 1; }
.dtp-grid .dtp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dtp-grid .dtp-name { display: flex; align-items: center; gap: 7px; min-width: 0; color: #ffe878; font-size: 21px; font-weight: 600; line-height: 1.1; }
.dtp-grid .dtp-meta { color: #fff4e8; font-size: 14px; font-weight: 600; }
.dtp-grid .dtp-score { flex: none; display: flex; align-items: center; gap: 5px; }
.dtp-grid .dtp-score img, .dtp-grid .dtp-name img { flex: none; width: 23px; height: 29px; object-fit: contain; }
.dtp-grid .dtp-lc { color: #ffe16d; font-family: var(--font); font-size: 23px; font-weight: 600; font-style: normal; line-height: 1; white-space: nowrap; text-shadow: 0 1px 2px #5f301b; }
.dtp-grid li.is-empty { opacity: 1; }
.dtp-grid li.is-empty .dtp-name { color: #fff5e9; font-family: var(--font); font-size: 20px; font-weight: 600; }

/* ---------- Bảng 11-100 ---------- */
.dtp-table-heading { width: 300px; height: 62px; margin: 24px 0 0; padding: 13px 18px; background: url('/Trang2/NenTop.webp') left center / 100% 100% no-repeat; }
.dtp-table-heading h2 { color: #ffe98b; font-family: var(--font); font-size: 28px; font-weight: 600; line-height: 1.1; text-shadow: 0 2px 2px #4b1306; }
.dtp-table-wrap { overflow-x: auto; }
.dtp-table { width: 100%; border-collapse: separate; border-spacing: 0 5px; table-layout: fixed; font-size: 16px; }
.dtp-table th { padding: 8px 12px; background: rgba(10, 52, 99, .6); color: #fff9ee; font-size: 15px; font-weight: 600; text-align: left; white-space: nowrap; }
.dtp-table th:first-child, .dtp-table tbody td:first-child { border-radius: 6px 0 0 6px; }
.dtp-table th:last-child, .dtp-table tbody td:last-child { border-radius: 0 6px 6px 0; }
.dtp-table th:nth-child(1) { width: 10%; }
.dtp-table th:nth-child(2) { width: 23%; }
.dtp-table th:nth-child(3) { width: 25%; }
.dtp-table th:nth-child(4) { width: 23%; }
.dtp-table th:nth-child(5) { width: 19%; }
.dtp-table th.is-center { text-align: center; }
.dtp-table .is-show-sm { display: none; }
.dtp-table tr.is-empty td[colspan] { border-radius: 0 6px 6px 0; }
.dtp-table td { height: 68px; padding: 7px 12px; border: 0; color: #fff8ec; vertical-align: middle; }
.dtp-table tbody tr:not(.dtp-table-empty) td { background: rgba(27, 28, 41, .6); }
.dtp-table tbody tr:hover { filter: brightness(1.1); }
.dtp-table .is-num { text-align: right; }
.dtp-table td.dtp-rank { text-align: center; }
.dtp-table td.dtp-rank span { display: grid; place-items: center; width: 48px; height: 48px; margin: auto; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .16), 0 0 0 2px rgba(255, 255, 255, .2); color: #fff; font-size: 31px; font-weight: 500; line-height: 1; }
.dtp-table td.dtp-lc { color: #ffe16d; font-size: 22px; font-weight: 600; white-space: nowrap; }
.dtp-table td.dtp-lc img, .dtp-table-requirement img { width: 24px; height: 30px; object-fit: contain; vertical-align: middle; }
.dtp-table-score { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dtp-table-score img { flex: none; }
.dtp .dtp-table tr.is-found { outline: 0; box-shadow: inset 4px 0 0 #ffe16d; }
.dtp-cell-who { display: flex; align-items: center; min-width: 0; }
.dtp-cell-who div { display: flex; flex-direction: column; min-width: 0; }
.dtp-cell-who b { color: #ffe16d; font-size: 20px; font-weight: 600; }
.dtp-cell-who span { color: #fff8ec; font-size: 14px; font-weight: 600; }
.dtp-table tr.is-empty { opacity: 1; }
.dtp-table-requirement { display: flex; align-items: center; justify-content: center; gap: 6px; }
.dtp .dtp-table tr.is-empty .dtp-table-requirement b { color: #fff8ec; font-size: 19px; font-weight: 600; }
.dtp-time { color: #fff8ec; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dtp-time small { color: #fff8ec; font-size: .8em; }
.dtp-table-empty td { padding: 40px 18px; text-align: center; color: var(--phu); }
.dtp-table-empty b { color: var(--chu); }
/* Chuyển từng trang 9 hạng */
.dtp-pager { display: flex; justify-content: center; align-items: stretch; margin-top: 12px; }
.dtp-pager a, .dtp-pager span {
    display: grid;
    place-items: center;
    height: 28px;
    border: 0;
    background: #666665;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
}
.dtp-pager .dtp-page-current { min-width: 78px; padding: 0 8px; }
.dtp-pager .dtp-page-arrow { width: 30px; }
.dtp-pager .dtp-page-arrow::before { content: ''; width: 11px; height: 13px; background: url('/Trang2/ChuyenTrang.webp') center / contain no-repeat; }
.dtp-pager .is-prev::before { transform: rotate(180deg); }
.dtp-pager .is-prev { border-radius: 5px 0 0 5px; }
.dtp-pager .is-next { border-radius: 0 5px 5px 0; }
.dtp-pager a:hover { background: #535353; }
.dtp-pager .is-off { opacity: .55; }
/* khung chờ trước giờ mở */
.dtp-grid.is-wait li { opacity: .8; }

/* ---------- Phần thưởng ---------- */
#phan-thuong .dtp-iphone { margin-top: -16px; }
.dtp-body.is-rewards #phan-thuong .dtp-iphone { margin-top: 0; }
.dtp-iphone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    isolation: isolate;
    min-height: min(44vw, 500px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.dtp-iphone-art { position: relative; z-index: 0; min-width: 0; min-height: 0; align-self: stretch; overflow: visible; transform: translateY(-64px); pointer-events: none; }
/* ảnh nền phóng 1.45 → dưới 1440px mép trái thò ra ngoài màn: dịch cả khối (ảnh + ô quà) sang phải để không lệch nhau */
@media (min-width: 761px) and (max-width: 1279px) { .dtp-iphone-art { transform: translate(12%, -64px) scale(.9); } }
@media (min-width: 1280px) and (max-width: 1439px) { .dtp-iphone-art { transform: translate(12%, -64px); } }
.dtp-iphone-art > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: scale(1.45); transform-origin: center; }
.dtp-iphone-cells { position: absolute; z-index: 1; left: 7%; bottom: -14%; width: 78%; aspect-ratio: 572 / 244; pointer-events: none; }
.dtp-iphone-cells::before { content: ''; position: absolute; inset: 18% 7% 17%; border: 1px solid rgba(222, 155, 51, .45); border-radius: 5px; background: linear-gradient(180deg, rgba(45, 24, 17, .9), rgba(21, 13, 12, .86)); box-shadow: 0 5px 12px rgba(35, 14, 5, .5); }
.dtp-iphone-art .dtp-iphone-items { position: absolute; z-index: 2; left: 7%; bottom: -14%; width: 78%; height: auto; }
.dtp-iphone-body {
    position: relative;
    z-index: 1;
    min-width: 0;
    align-self: center;
    margin: 12px 14px 12px 0;
    padding: 0 18px 18px;
    border: 1px solid rgba(255, 193, 104, .18);
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(69, 39, 25, .97), rgba(77, 44, 28, .78)), url('/assets/game/duatop/phao-hoa.webp') right -70px bottom -100px / 320px auto no-repeat, #573826;
    box-shadow: 0 10px 22px rgba(54, 35, 25, .22);
    color: #fff1d5;
}
.dtp-reward-heading { width: 300px; height: 62px; margin: 8px 0 10px; padding: 13px 18px; background: url('/Trang2/NenTop.webp') left center / 100% 100% no-repeat; }
.dtp-reward-heading h2 { color: #ffe98b; font-family: var(--font); font-size: 28px; font-weight: 600; line-height: 1.1; text-shadow: 0 2px 2px #4b1306; }
.dtp-eyebrow { display: flex; align-items: center; width: min(180px, 82%); height: 34px; margin: -1px 0 0 -19px; padding: 0 14px; border-radius: 15px 0 18px 0; background: linear-gradient(90deg, #a72a0c, #d7420c); color: #fff2da; font-size: 18px; font-weight: 600; line-height: 1; }
.dtp-iphone .dtp-iphone-title { display: flex; align-items: center; gap: 7px; margin: 4px 0 8px; color: #ffe638; }
.dtp-iphone-title img { display: block; width: min(390px, 100%); max-width: 100%; height: auto; filter: drop-shadow(0 0 7px rgba(255, 214, 35, .55)); }
.dtp-iphone p { margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid rgba(255, 217, 119, .55); color: #ffe28a; font-size: 16px; font-weight: 500; line-height: 1.35; }
.dtp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dtp-checks li { position: relative; padding-left: 22px; color: #fff0dc; font-size: 16px; font-weight: 400; line-height: 1.35; }
.dtp-checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 15px;
    height: 15px;
    background: url('/TrangPhanThuong/Decor.webp') center / contain no-repeat;
}
.dtp-checks b { color: #ffdc4b; font-weight: 600; }
.dtp-card b { color: var(--muc); }
.dtp-tiers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; }

/* min-width: 0 — không thì card trong grid/flex bị bảng nowrap kéo rộng, tràn ngang cả trang trên mobile */
.dtp-card { min-width: 0; }
.dtp-moc-wrap { overflow-x: auto; }
.dtp-moc { width: 100%; max-width: 760px; margin: 0 auto; border-collapse: collapse; border: 1px solid rgba(255, 208, 139, .45); font-size: 17px; line-height: 1.4; }
.dtp-moc th, .dtp-moc td { padding: 8px 16px; border: 1px solid rgba(255, 208, 139, .3); text-align: left; white-space: nowrap; }
.dtp-moc thead th { background: rgba(255, 189, 85, .18); color: #ffe49c; font-weight: 600; }
.dtp-moc tbody tr:nth-child(even) td { background: rgba(35, 19, 17, .28); }
.dtp-moc tbody tr:hover td { background: rgba(255, 189, 85, .1); }
.dtp-moc .c-lc { text-align: right; font-variant-numeric: tabular-nums; }

.dtp-tier {
    position: relative;
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    aspect-ratio: 1.43;
    padding: 12px 14px 10px;
    background: url('/TrangPhanThuong/KhungTopSau.webp') center / 100% 100% no-repeat;
    color: #fff4e7;
}
.dtp-tier:nth-child(7) { grid-column: 2 / span 2; }
.dtp-tier:nth-child(8) { grid-column: 4 / span 2; }
.dtp-tier.is-t1 { background-image: url('/TrangPhanThuong/KhungTop1.webp'); }
.dtp-tier.is-t2 { background-image: url('/TrangPhanThuong/KhungTop2.webp'); }
.dtp-tier.is-t3 { background-image: url('/TrangPhanThuong/khungtop3.webp'); }
.dtp-tier-prize { position: absolute; right: 6px; top: -24px; padding: 4px 12px; border-radius: 5px 5px 0 0; background: #24a5d9; color: white; font-size: 20px; font-weight: 600; line-height: 1; white-space: nowrap; }
.dtp-tier-head { display: flex; align-items: center; gap: 6px; min-height: 47px; margin: 0; padding: 0 0 7px; border-bottom: 1px solid rgba(255, 243, 216, .55); }
.dtp-tier-head b { flex: none; color: #fff5dd; font-size: 24px; font-weight: 600; line-height: 1; }
.dtp-tier-head small { margin-left: auto; color: #ffe49c; font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-shadow: 0 1px 2px rgba(60, 20, 5, .6); }
.dtp-tier-medal { flex: none; width: 38px; height: 38px; margin-left: -5px; object-fit: contain; }
.dtp-tier-title-art { flex: none; width: 72px; height: 42px; object-fit: contain; object-position: left center; }
.dtp-tier ul { display: grid; grid-auto-rows: minmax(0, 1fr); flex: 1; list-style: none; margin: 0; padding: 0; }
.dtp-tier li { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 3px 0; border-bottom: 1px solid rgba(255, 244, 224, .35); color: #fff8ec; font-size: 16px; line-height: 1.15; }
.dtp-tier li:last-child { border-bottom: 0; }
.dtp-tier-icon { display: block; width: 48px; height: 48px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.dtp-tier.is-t1 .dtp-tier-icon { background-image: url('/assets/game/thienhadenha/quatop1.webp'); background-size: 245px 105px; }
.dtp-tier.is-t1 .sprite-one { background-position: -30px -26px; }
.dtp-tier.is-t1 .sprite-two { background-position: -99px -26px; }
.dtp-tier.is-t1 .sprite-three { background-position: -167px -26px; }
.dtp-tier.is-t2 .dtp-tier-icon, .dtp-tier.is-t3 .dtp-tier-icon { background-size: 187px 48px; }
.dtp-tier.is-t2 .dtp-tier-icon { background-image: url('/assets/game/thienhadenha/quatop2.webp'); }
.dtp-tier.is-t3 .dtp-tier-icon { background-image: url('/assets/game/thienhadenha/quatop3.webp'); }
.dtp-tier .sprite-one { background-position: 0 0; }
.dtp-tier .sprite-two { background-position: -69px 0; }
.dtp-tier .sprite-three { background-position: -139px 0; }
.dtp-tier .red-orb { background-image: url('/TrangPhanThuong/ICon1.webp'); }
.dtp-tier .red-chest { background-image: url('/TrangPhanThuong/icon2.webp'); }
.dtp-tier .gold-chest { background-image: url('/TrangPhanThuong/Icon3.webp'); }
.dtp-tier .gold-orb { background-image: url('/TrangPhanThuong/Icon4.webp'); }
.dtp-tier .manh { background-image: url('/TrangPhanThuong/ManhDo.webp'); }
.dtp-rw > .dtp-card { margin-top: 18px; padding: 16px 20px 20px; border: 0; border-radius: 10px; background: #866550; box-shadow: 0 4px 12px rgba(68, 35, 18, .12); color: #fff8ed; line-height: 1.4; }
.dtp-rw > .dtp-card h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: #fff9f0; font-size: 30px; font-weight: 600; line-height: 1; }
.dtp-rw > .dtp-card h2 img { display: block; width: 30px; height: 30px; object-fit: contain; }
.dtp-rw > .dtp-card ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.dtp-rw > .dtp-card li { position: relative; padding-left: 24px; color: #fff8ed; font-size: 17px; line-height: 1.3; }
.dtp-rw > .dtp-card li::before { content: ''; position: absolute; left: 0; top: .24em; width: 16px; height: 16px; background: url('/TrangPhanThuong/Decor.webp') center / contain no-repeat; }
.dtp-rw > .dtp-card b { color: #ffe38b; font-weight: 600; }

/* ---------- Thể lệ ---------- */
.dtp-rules { display: grid; gap: 18px; }
.dtp-rules-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.dtp-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); line-height: 1.65; color: var(--text); }
.dtp-card h2 { margin-bottom: 12px; font-weight: 800; font-size: 25px; color: var(--muc); }
.dtp-card p { margin: 0 0 10px; }
.dtp-card p:last-child { margin-bottom: 0; }
.dtp-card ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.dtp-card li::marker { color: var(--kim); }
.dtp-example { padding: 12px 14px; border-left: 3px solid var(--kim); background: rgba(230, 203, 139, .25); font-size: 16px; }
.dtp-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: dtp; }
.dtp-timeline li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border-top: 3px solid var(--chu);
    border-radius: 0 0 8px 8px;
    background: rgba(230, 203, 139, .22);
    counter-increment: dtp;
}
.dtp-timeline li::before { content: "0" counter(dtp); font-weight: 900; font-size: 15px; color: var(--chu); }
.dtp-timeline b { font-size: 19px; color: var(--muc); }
.dtp-timeline span { font-size: 15px; color: var(--phu); }
.dtp-faq { display: grid; gap: 8px; }
.dtp-faq details { border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .5); }
.dtp-faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; font-weight: 700; color: var(--muc); cursor: pointer; list-style: none; }
.dtp-faq summary::-webkit-details-marker { display: none; }
.dtp-faq summary::after { content: "+"; flex: none; font-size: 22px; line-height: 1; color: var(--chu); }
.dtp-faq details[open] summary::after { content: "−"; }
.dtp-faq details p { margin: 0; padding: 0 18px 16px; }
#the-le .dtp-card {
    font-family: "Barlow Semi Condensed", "Be Vietnam Pro", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    border-color: rgba(255, 208, 139, .3);
    background: rgba(74, 37, 25, .86);
    box-shadow: 0 12px 28px rgba(73, 27, 8, .16);
    color: #fff1db;
}
#the-le .dtp-card h2 {
    font-family: var(--font);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    color: #ffe49c;
    text-shadow: 0 2px 2px #4b1306;
}
#the-le .dtp-card b { color: #ffe49c; font-weight: 600; }
#the-le .dtp-card a { color: #ffe49c; }
#the-le .dtp-card li::marker { color: #ffc95f; }
#the-le .dtp-timeline li, #the-le .dtp-example {
    border-color: #ffcf72;
    background: rgba(255, 189, 85, .12);
}
#the-le .dtp-timeline li::before { color: #ffc95f; }
#the-le .dtp-timeline b { font-size: 18px; font-weight: 600; }
#the-le .dtp-timeline span { color: #f5d7b7; }
#the-le .dtp-faq details {
    border-color: rgba(255, 208, 139, .3);
    background: rgba(35, 19, 17, .34);
}
#the-le .dtp-faq summary { color: #fff1db; }
#the-le .dtp-faq summary::after { color: #ffc95f; }

/* ---------- Màn hẹp ---------- */
@media (max-width: 1100px) {
    .dtp-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dtp-tier, .dtp-tier:nth-child(7), .dtp-tier:nth-child(8) { grid-column: auto; }
    .dtp-timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dtp-result { grid-template-columns: auto minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .dtp-moc { font-size: 15px; }
    .dtp-moc th, .dtp-moc td { padding: 7px 8px; }
    .dtp-moc thead th { white-space: normal; }
    /* chữ cập nhật đè lên ảnh "Tam Đỉnh Thiên Hạ" → đưa xuống dưới ảnh, căn giữa */
    .dtp-top-heading > span { position: static; display: block; margin-top: -3%; text-align: center; }
    .dtp-body.is-ranking::before {
        opacity: .65;
        background:
            url('/assets/game/duatop/phao-hoa.webp') left -100px top 40px / 270px auto repeat-y,
            url('/assets/game/duatop/phao-hoa.webp') center top 180px / 230px auto repeat-y,
            url('/assets/game/duatop/phao-hoa.webp') right -100px top 90px / 270px auto repeat-y;
    }
    .dtp-body.is-ranking::after {
        opacity: .3;
        background:
            url('/assets/game/duatop/phao-hoa.webp') 25% 270px / 170px auto repeat-y,
            url('/assets/game/duatop/phao-hoa.webp') 75% 20px / 170px auto repeat-y;
    }
    .dtp { font-size: 16px; }
    .dtp-hero { padding: 94px 0 0; background-position: center top; }
    .dtp-hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .dtp-hero-main { padding: 0; }
    .dtp-hero-title { width: 140%; max-width: 660px; margin: 0 0 4px; }
    .dtp-desc { margin: 0 auto 15px; font-size: 18px; text-align: center; }
    .dtp-hero-main .mh-dt2-cd { transform: translateX(-24px); }
    .dtp-hero-side { width: min(118%, 610px); margin: -8px 0 0; }
    .dtp .dtp-tabs a { padding: 14px 16px 11px; font-size: 17px; }
    .dtp-search { padding: 12px; gap: 10px; }
    .dtp-search button { width: 110px; }
    .dtp-podium { width: 100%; }
    .dtp-ava { width: 52px; height: 52px; font-size: 22px; box-shadow: none; }
    .dtp-name { font-size: 15px; }
    .dtp-meta { font-size: 12px; }
    .dtp-grid { grid-template-columns: minmax(0, 1fr); }
    .dtp-grid li { padding: 8px 10px; gap: 10px; }
    .dtp-table .is-hide-sm { display: none; }
    .dtp-table .is-show-sm { display: table-cell; }
    .dtp-table th, .dtp-table td { padding: 10px 12px; }
    .dtp-table th:nth-child(1) { width: 72px; }
    .dtp-table th:nth-child(2), .dtp-table th:nth-child(4) { width: auto; }
    .dtp-iphone { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 20px; gap: 18px; }
    #phan-thuong .dtp-iphone { margin-top: 0; }
    .dtp-iphone-art { aspect-ratio: 1131 / 742; transform: none; }
    .dtp-iphone-art > img:first-child { transform: none; }
    .dtp-iphone-body { margin: 0; }
    .dtp-tiers, .dtp-rules-grid, .dtp-timeline { grid-template-columns: minmax(0, 1fr); }
    .dtp-tier { aspect-ratio: auto; min-height: 230px; }
    .dtp-card { padding: 20px 18px; }
    .dtp-result { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 16px; }
    .dtp-result-who { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 480px) {
    .dtp-hero-main .mh-dt2-cd { transform: none; }
    .dtp-search { grid-template-columns: minmax(0, 1fr); }
    .dtp-search form { width: 100%; }
    .dtp-search button { width: 96px; font-size: 17px; }
    .dtp-top-heading { width: 100%; }
    .dtp-top-heading > span { font-size: 12px; }
}
