/* Trang chủ 1.28.6 — một màn hình: thanh trên, nhân vật lớn đổi lần lượt, hàng dưới (tin mới · CHƠI NGAY · boss) */
:root {
  --bg: #120a06;
  --gold: #d9b071;
  --gold2: #f3d9a2;
  --line: rgba(217, 176, 113, .55);
  --text: #f4ead6;
  --muted: #c9b694;
  --panel: rgba(22, 15, 11, .88);
  --hc: #e0442c;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Be Vietnam Pro', 'Segoe UI', Roboto, Arial, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-y: auto; height: 100vh; height: var(--app-h, 100dvh); display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0px); }
/* 1.28.6b: màn thấp quá (trình duyệt trong ứng dụng, iPhone nhỏ): cho cuộn, cảnh nhân vật có chiều cao tối thiểu */
@media (max-height: 640px) and (orientation: portrait) { body { height: auto; min-height: var(--app-h, 100dvh); } .stage { min-height: 380px; } }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

/* ---------- Màn chờ ---------- */
.pre { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; transition: opacity .5s, visibility .5s; }
.pre-bar { width: min(260px, 60vw); height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pre-bar i { display: block; height: 100%; width: 8%; background: linear-gradient(90deg, #b47a2c, #f3d9a2); transition: width .3s; }
body:not(.is-loading) .pre { opacity: 0; visibility: hidden; }

/* ---------- Thanh trên ---------- */
.top { position: relative; z-index: 20; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 14px; height: 76px; padding: 0 22px;
  background: linear-gradient(180deg, #2b231d, #1b1511); box-shadow: 0 1px 0 rgba(217, 176, 113, .25), 0 4px 18px rgba(0, 0, 0, .55); }
.t-menu { width: 40px; height: 40px; display: grid; place-content: center; gap: 5px; background: none; border: 0; cursor: pointer; }
.t-menu span { display: block; width: 26px; height: 3px; border-radius: 2px; background: var(--gold); }
.t-lang, .t-acc { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 18px; border-radius: 18px; border: 1.5px solid var(--line);
  background: rgba(0, 0, 0, .25); color: var(--gold2); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.t-lang:hover, .t-acc:hover { border-color: var(--gold2); }
.t-lang i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold); position: relative; }
.t-lang i::before { content: ''; position: absolute; inset: 2px 6px; border-left: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); border-radius: 50%; }
.t-acc i { width: 14px; height: 14px; border-radius: 50% 50% 3px 3px; border: 2px solid var(--gold); }
.t-logo { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1; }
.t-logo img { height: 92px; width: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6)); }
.t-logo b { font: 900 34px/1 var(--serif); letter-spacing: 3px; color: var(--gold2); margin-top: 10px; text-shadow: 0 2px 6px #000; }
.t-logo small { font-size: 11px; letter-spacing: 6px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.t-logo img:not([hidden]) ~ small { display: none; }
.t-acc { grid-column: 4; }

/* Menu trượt */
.drawer { position: fixed; z-index: 30; top: 76px; left: 12px; min-width: 230px; padding: 10px; display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.drawer a, .drawer button { display: block; width: 100%; text-align: left; padding: 10px 14px; border-radius: 6px; background: none; border: 0; cursor: pointer; font-weight: 700; color: var(--text); }
.drawer a:hover, .drawer button:hover { background: rgba(217, 176, 113, .14); color: var(--gold2); }
.drawer-links { border-top: 1px solid rgba(217, 176, 113, .25); margin-top: 6px; padding-top: 6px; }
.drawer-links a { font-weight: 600; color: var(--muted); }

/* ---------- Cảnh chính ---------- */
.stage { position: relative; overflow: hidden; min-height: 0; }
.bg { position: absolute; inset: 0; background: #1c120c center / cover no-repeat; transform: scale(1.03); }
.bg-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 62% 55%, transparent 30%, rgba(10, 6, 4, .55) 80%),
  linear-gradient(90deg, rgba(10, 6, 4, .78) 0%, rgba(10, 6, 4, .25) 45%, rgba(10, 6, 4, .1) 70%, rgba(10, 6, 4, .5) 100%),
  linear-gradient(0deg, rgba(10, 6, 4, .95) 0%, rgba(10, 6, 4, 0) 32%); }
.hero-art { position: absolute; left: 50%; bottom: 4%; height: 88%; transform: translateX(-8%); display: flex; align-items: flex-end; pointer-events: none; }
.hero-art::before { content: ''; position: absolute; left: 50%; bottom: 6%; width: 120%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--hc) 45%, transparent), transparent 62%); filter: blur(10px); }
.hero-art img { position: relative; height: 100%; width: auto; object-fit: contain; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .7)); }
.hero-text { position: absolute; left: clamp(24px, 14vw, 260px); top: 13%; max-width: min(520px, 42vw); }
.hero-text h1 { margin: 0; font: 900 clamp(40px, 6.4vw, 104px)/.95 var(--sans); letter-spacing: -1px; text-transform: uppercase; color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .7); }
.hero-sub { margin: 14px 0 6px; font: 800 18px/1.2 var(--sans); color: var(--gold2); letter-spacing: .5px; text-transform: uppercase; }
.hero-sub::before { content: ''; display: inline-block; width: 34px; height: 2px; margin: 0 10px 5px 0; vertical-align: middle; background: var(--hc); }
.hero-lore { margin: 0; font-size: 16px; color: #efe4cf; text-shadow: 0 1px 3px #000; max-width: 440px; }
.hero-dots { display: flex; gap: 10px; margin-top: 22px; }
.dot { width: 34px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .25); cursor: pointer; transition: background .2s, width .2s; }
.dot.on { background: var(--gold2); width: 54px; }
.stage.swap .hero-art img { animation: heroIn .7s cubic-bezier(.2, .8, .2, 1) both; }
.stage.swap .hero-text > * { animation: textIn .6s ease both; }
.stage.swap .hero-text > :nth-child(2) { animation-delay: .06s; }
.stage.swap .hero-text > :nth-child(3) { animation-delay: .12s; }
@keyframes heroIn { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes textIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.arrow { position: absolute; top: 50%; width: 66px; height: 66px; margin-top: -33px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; z-index: 5;
  background: rgba(15, 10, 7, .55); box-shadow: inset 0 0 0 4px rgba(15, 10, 7, .6), 0 0 0 1px rgba(0, 0, 0, .6); transition: border-color .2s, background .2s; }
.arrow::before { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; border: solid var(--gold2); border-width: 0 0 2.5px 2.5px; transform: translate(-30%, -50%) rotate(45deg); }
.arrow.r::before { transform: translate(-70%, -50%) rotate(-135deg); }
.arrow.l { left: 18px; } .arrow.r { right: 18px; }
.arrow:hover { border-color: var(--gold2); background: rgba(40, 26, 16, .8); }

/* ---------- Hàng dưới ---------- */
.dock { position: relative; z-index: 10; display: grid; grid-template-columns: minmax(0, 430px) auto minmax(0, 430px); justify-content: center; align-items: end; gap: 26px;
  padding: 0 24px 22px; margin-top: -120px; pointer-events: none; }
.dock > * { pointer-events: auto; }
.card { position: relative; display: flex; gap: 12px; min-height: 120px; padding: 12px; background: var(--panel);
  border: 1px solid var(--line); outline: 1px solid rgba(0, 0, 0, .7); outline-offset: 3px; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); margin-bottom: 30px; }
.card::before { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(217, 176, 113, .22); pointer-events: none; }
.thumb { flex: 0 0 104px; align-self: stretch; background: #2a1d14 center / 74% no-repeat; border: 1px solid rgba(217, 176, 113, .35); }
.c-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.c-body > b { color: var(--gold2); font-size: 16px; line-height: 1.25; }
.c-body p { margin: 0; font-size: 13.5px; color: #e9dcc3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-body small { margin-top: auto; color: var(--muted); font-style: italic; font-size: 12px; }
.c-more { position: absolute; left: 50%; bottom: -36px; transform: translateX(-50%); padding: 6px 26px; white-space: nowrap; cursor: pointer; font-weight: 700; font-size: 13.5px;
  color: var(--gold2); background: #1b1410; border: 1px solid var(--line); outline: 1px solid rgba(0, 0, 0, .7); outline-offset: 2px; }
.c-more:hover { background: #2a1f17; }
.boss .c-body { width: 100%; }
.boss-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.b-face { flex: 0 0 64px; height: 64px; background: #2a1d14 0 50% no-repeat; border: 1px solid rgba(217, 176, 113, .35); border-radius: 4px; }
.b-info { display: flex; flex-direction: column; min-width: 0; }
.b-info em { font-style: normal; font-weight: 900; font-size: 20px; color: #fff; }
.b-info em.now, .m-boss em.now { color: #ff7a52; }
.b-info b { font-size: 14px; } .b-info small { color: var(--muted); font-size: 12.5px; }
.b-none { color: var(--muted); }
/* Nút chơi: nút xanh của bộ giao diện game, viền đá hai bên */
.play { position: relative; display: grid; place-items: center; width: 420px; height: 112px; margin-bottom: 18px; padding: 10px;
  background: linear-gradient(180deg, #4a4542, #2a2624); clip-path: polygon(6% 0, 94% 0, 100% 18%, 100% 82%, 94% 100%, 6% 100%, 0 82%, 0 18%);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .7)); }
.play span { display: grid; place-items: center; width: 100%; height: 100%; font: 900 44px/1 var(--sans); letter-spacing: 1px; color: #fff; text-shadow: 0 3px 0 #1d5a12, 0 4px 10px rgba(0, 0, 0, .5);
  background: var(--wf-ok, linear-gradient(180deg, #7fd64a, #3a9a26)) center / 100% 100% no-repeat; border-radius: 6px; transition: filter .15s, transform .15s; }
.play:hover span { filter: brightness(1.12); }
.play:active span { transform: scale(.98); }

/* ---------- Cửa sổ nhỏ ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .6); }
.m-box { width: min(560px, 100%); max-height: min(78dvh, 640px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line);
  outline: 1px solid rgba(0, 0, 0, .7); outline-offset: 3px; box-shadow: 0 16px 50px rgba(0, 0, 0, .7); }
.m-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(217, 176, 113, .3); }
.m-head b { color: var(--gold2); font-size: 18px; }
.m-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; position: relative; }
.m-x::before, .m-x::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: var(--gold2); transform: translate(-50%, -50%) rotate(45deg); }
.m-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.m-body { overflow: auto; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.m-news { padding: 10px 12px; border: 1px solid rgba(217, 176, 113, .22); background: rgba(0, 0, 0, .2); }
.m-news small { color: var(--muted); } .m-news b { display: block; color: var(--gold2); margin: 2px 0; } .m-news p { margin: 0; color: #e9dcc3; font-size: 14px; }
.m-boss { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid rgba(217, 176, 113, .18); }
.m-boss .b-info { flex: 1; } .m-boss em { font-style: normal; font-weight: 800; color: #fff; white-space: nowrap; }
.m-rank { display: grid; grid-template-columns: 34px 1fr auto auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid rgba(217, 176, 113, .18); }
.m-rank .no { text-align: center; color: var(--muted); } .m-rank.t1 .no { color: #ffd23a; } .m-rank.t2 .no { color: #d8dde6; } .m-rank.t3 .no { color: #e09a5a; }
.m-rank small { color: var(--muted); } .m-rank em { font-style: normal; font-weight: 800; color: var(--gold2); }
.m-note, .m-empty { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

/* ---------- Màn vừa (máy tính bảng / điện thoại xoay ngang) ---------- */
@media (max-width: 1180px) {
  .dock { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; }
  .play { width: 320px; height: 92px; } .play span { font-size: 34px; }
  .thumb { flex-basis: 76px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .top { height: 52px; } .t-logo img { height: 58px; } .t-logo b { font-size: 24px; margin-top: 6px; } .drawer { top: 52px; }
  .hero-text { top: 8%; } .hero-text h1 { font-size: clamp(30px, 5.4vw, 58px); } .hero-sub { font-size: 14px; margin-top: 8px; } .hero-lore { font-size: 13px; max-width: 340px; }
  .hero-dots { margin-top: 10px; }
  .hero-text { max-width: 38vw; left: 90px; }
  .hero-art { transform: translateX(4%); height: 92%; bottom: 0; }
  .dock { margin-top: -84px; padding-bottom: 10px; gap: 12px; }
  .card { min-height: 0; padding: 8px; margin-bottom: 26px; } .thumb { display: none; } .c-body p { -webkit-line-clamp: 1; } .c-more { bottom: -30px; padding: 4px 16px; font-size: 12px; }
  .b-face { flex-basis: 44px; height: 44px; } .b-info em { font-size: 16px; }
  .play { width: 250px; height: 70px; margin-bottom: 14px; } .play span { font-size: 28px; }
  .arrow { width: 46px; height: 46px; margin-top: -23px; }
}

/* ---------- Điện thoại dọc: logo trên, nhân vật giữa, nút chơi + thẻ boss dưới ---------- */
@media (max-width: 760px) and (orientation: portrait) {
  .top { height: 58px; padding: 0 12px; gap: 8px; }
  .t-lang { padding: 0 10px; } .t-lang span { display: none; }
  .t-acc { padding: 0 12px; font-size: 13px; }
  .t-acc span { display: none; }
  .t-logo b { letter-spacing: 1px; } .t-logo img { max-width: 52vw; object-fit: contain; }
  .t-logo img { height: 64px; } .t-logo b { font-size: 24px; margin-top: 8px; } .t-logo small { font-size: 9px; letter-spacing: 4px; }
  .drawer { top: 58px; }
  .bg-shade { background: linear-gradient(0deg, rgba(10, 6, 4, .97) 0%, rgba(10, 6, 4, .55) 38%, rgba(10, 6, 4, .1) 62%, rgba(10, 6, 4, .45) 100%); }
  .hero-art { left: 50%; height: 70%; bottom: 26%; transform: translateX(-50%); }
  .hero-text { left: 16px; right: 16px; top: auto; bottom: 14px; max-width: none; text-align: center; }
  .hero-text h1 { font-size: clamp(30px, 10vw, 46px); }
  .hero-sub { font-size: 13px; margin: 8px 0 4px; } .hero-sub::before { display: none; }
  .hero-lore { font-size: 13px; margin: 0 auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-dots { justify-content: center; margin-top: 10px; }
  .arrow { top: 38%; width: 42px; height: 42px; margin-top: -21px; } .arrow.l { left: 8px; } .arrow.r { right: 8px; }
  .dock { grid-template-columns: 1fr; margin-top: 0; padding: 10px 14px 14px; gap: 10px; background: linear-gradient(180deg, #120a06, #0d0805); }
  .news { display: none; }
  .play { width: 100%; height: 72px; margin: 0; order: 1; } .play span { font-size: 30px; }
  .boss { order: 2; min-height: 0; margin: 0; padding: 8px 10px; }
  .boss .c-more { position: static; transform: none; margin-left: auto; align-self: center; padding: 6px 12px; font-size: 12px; }
  .boss .c-body > b { font-size: 13px; } .boss-row { margin-top: 2px; }
  .b-face { flex-basis: 40px; height: 40px; } .b-info em { font-size: 15px; }
}

/* 1.28.6b: nút chơi + đường dẫn đăng ký ngay bên dưới */
.play-box { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 10px; }
.play-box .play { margin-bottom: 0; }
.reg { font-size: 13.5px; font-weight: 700; color: var(--gold2); text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 1px 3px #000; }
.t-logo small { white-space: nowrap; }
@media (max-height: 560px) and (orientation: landscape) { .play-box { margin-bottom: 6px; gap: 2px; } .reg { font-size: 12px; } }
@media (max-width: 760px) and (orientation: portrait) {
  .play-box { order: 1; width: 100%; margin: 0; } .play-box .play { width: 100%; }
  .t-logo small { font-size: 8px; letter-spacing: 2.5px; }
}

/* 1.28.8: nhân vật chính nhỏ lại, hình nền mờ hơn để nhân vật và chữ nổi rõ */
.bg { filter: blur(6px) brightness(.78) saturate(1.05); transform: scale(1.08); }
.hero-art { height: 54%; bottom: 17%; }
@media (max-height: 560px) and (orientation: landscape) { .hero-art { height: 62%; bottom: 16%; } }
@media (max-width: 760px) and (orientation: portrait) { .hero-art { height: 46%; bottom: 33%; } }

/* 1.28.10: Giờ vàng (trên nút CHƠI NGAY) */
.gh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 5px 14px; border-radius: 999px; background: linear-gradient(180deg, rgba(60, 36, 8, .92), rgba(30, 18, 6, .92)); border: 1px solid #c9952e; box-shadow: 0 0 14px rgba(255, 190, 60, .25); font-size: 13px; color: #f3dfb0; text-shadow: 0 1px 2px #000; max-width: 100%; }
.gh b { color: #ffd45a; letter-spacing: .5px; text-transform: uppercase; }
.gh em { font-style: normal; font-weight: 800; color: #ffcf6a; }
.gh em.now { color: #7dff7a; }
@media (max-height: 560px) and (orientation: landscape) { .gh { font-size: 11px; padding: 3px 10px; gap: 6px; } }
@media (max-width: 760px) and (orientation: portrait) { .gh { font-size: 12px; } }

/* 1.28.22: nút Fanpage nhận Giftcode */
.fb-code { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 13.5px; color: #fff;
  background: linear-gradient(180deg, #3b8cff, #1658d6); border: 1px solid #0d3fa8; box-shadow: 0 4px 12px rgba(20, 90, 220, .45), inset 0 1px 0 rgba(255,255,255,.3); text-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .12s, filter .15s; }
.fb-code:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fb-code[hidden] { display: none; }
.fb-f { width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #1658d6; display: grid; place-items: center; font: 900 17px/1 Arial, sans-serif; font-style: normal; padding-top: 3px; box-sizing: border-box; }
.play-box .fb-code { animation: fbPulse 2.6s ease-in-out infinite; }
@keyframes fbPulse { 50% { box-shadow: 0 4px 18px rgba(60, 140, 255, .8), inset 0 1px 0 rgba(255,255,255,.3); } }
.m-fb { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 4px; border: 1px solid rgba(60, 140, 255, .45); background: rgba(22, 88, 214, .14); }
.m-fb span { color: #e9dcc3; font-size: 14px; font-weight: 600; }
.m-news .fb-code { margin-top: 8px; font-size: 12.5px; padding: 5px 12px 5px 6px; }
.m-news .fb-code .fb-f { width: 20px; height: 20px; font-size: 14px; }
.m-news.pin { border-color: rgba(255, 210, 110, .55); }
@media (max-height: 560px) and (orientation: landscape) { .fb-code { padding: 4px 12px 4px 5px; font-size: 12px; } .fb-f { width: 20px; height: 20px; font-size: 14px; } }

/* 1.28.41: nút Discord cạnh nút Fanpage */
.soc-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.dc-code { background: linear-gradient(180deg, #7a86ff, #5865f2); border-color: #3c45b8; box-shadow: 0 4px 12px rgba(88, 101, 242, .45), inset 0 1px 0 rgba(255,255,255,.3); }
.play-box .dc-code { animation: dcPulse 2.6s ease-in-out infinite; }
@keyframes dcPulse { 50% { box-shadow: 0 4px 18px rgba(120, 130, 255, .8), inset 0 1px 0 rgba(255,255,255,.3); } }
.dc-code .fb-f { color: #5865f2; padding-top: 0; }
.dc-i { width: 70%; height: 70%; display: block; }

/* 1.28.41: 4 nút Tải game dưới nút CHƠI NGAY */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 190px)); gap: 8px 10px; justify-content: center; margin: 2px 0; }
.dl-grid[hidden], .dl-btn[hidden] { display: none; }
.dl-btn { display: flex; align-items: center; gap: 9px; padding: 6px 12px; min-height: 46px; box-sizing: border-box; border-radius: 7px; text-decoration: none; color: #fff; border: 1px solid rgba(0,0,0,.45); box-shadow: 0 3px 8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.22); transition: transform .12s, filter .15s; }
.dl-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.dl-i { width: 28px; height: 28px; flex: none; display: grid; place-items: center; }
.dl-i svg { width: 100%; height: 100%; display: block; }
.dl-btn span { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; text-align: left; }
.dl-btn small { font-size: 10px; font-weight: 700; text-transform: uppercase; opacity: .9; letter-spacing: .3px; }
.dl-btn b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-pc { background: linear-gradient(180deg, #86b43c, #5f8a24); }
.dl-apk { background: linear-gradient(180deg, #e2681e, #b8460b); }
.dl-ios, .dl-play { background: linear-gradient(180deg, #1c1c1c, #000); border-color: #555; }
@media (max-height: 560px) and (orientation: landscape) { .dl-grid { grid-template-columns: repeat(4, minmax(0, 150px)); gap: 6px; } .dl-btn { min-height: 36px; padding: 4px 8px; gap: 6px; } .dl-i { width: 20px; height: 20px; } .dl-btn b { font-size: 12px; } .dl-btn small { font-size: 8.5px; } }
@media (max-width: 420px) { .dl-btn b { font-size: 13px; } .dl-i { width: 24px; height: 24px; } }
@media (max-width: 760px) and (orientation: portrait) {
  .play-box .gh { order: 0; } .play-box .play { order: 1; } .play-box .reg { order: 2; } .play-box .dl-grid { order: 3; width: 100%; grid-template-columns: 1fr 1fr; } .play-box .soc-row { order: 4; flex-wrap: nowrap; gap: 6px; }
  .soc-row .fb-code { font-size: 11.5px; padding: 5px 10px 5px 5px; gap: 5px; } .soc-row .fb-f { width: 20px; height: 20px; font-size: 14px; }
}
@media (max-height: 560px) and (orientation: landscape) { .dl-grid { grid-template-columns: repeat(4, minmax(0, 118px)); gap: 4px; } .dl-btn { padding: 3px 6px; gap: 4px; min-height: 32px; } .dl-i { width: 17px; height: 17px; } .dl-btn b { font-size: 11px; } }
/* 1.28.41b: điện thoại: trang chủ cuộn được, cảnh nhân vật giữ đủ cao, các nút xếp gọn */
@media (max-width: 760px) and (orientation: portrait) {
  body { height: auto; min-height: var(--app-h, 100dvh); }
  .stage { min-height: max(340px, 52dvh); }
}
@media (max-height: 560px) and (orientation: landscape) {
  body { height: auto; min-height: var(--app-h, 100dvh); }
  .stage { min-height: max(230px, 72dvh); }
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 132px)); gap: 4px 6px; }
  .dl-btn { min-height: 34px; }
  .dock { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
}
@media (max-height: 560px) and (orientation: landscape) and (max-width: 760px) {
  .soc-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .soc-row .fb-code { justify-content: center; font-size: 11.5px; }
  .dock { gap: 8px; padding-left: 8px; padding-right: 8px; }
}
