/* =====================================================================
   Trang chủ index.html — landing "Nghi thức triệu hồi" (mockup game/mockup/s400.html, chủ dự án duyệt s400: "Duyệt, ráp thật").
   Đếm ngược + quà Open Beta: scene/ob.css (nạp trước, dùng chung play.html) — tệp này chỉ chỉnh cỡ khối đếm trên sân khấu.
   Token theo scene/home.css (vàng + hải quân + mực nâu) + cam lửa / tím chiều từ tranh. Chuyển động: ease-out expo / quint, chỉ transform + opacity.
   ===================================================================== */
@property --sweep { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
:root {
  --ink-0: #080604; --ink-1: #120e0a; --ink-2: #1b150f; --ink-3: #261e15; --ink-4: #33281c;
  --plate: rgba(16, 12, 8, .94);
  --gold-0: #3e2e12; --gold-1: #6f5322; --gold-2: #b08a3c; --gold-3: #e3c46e; --gold-4: #fff0c4;
  --navy-0: #0a1430; --navy-1: #12234a; --navy-2: #1c3a78; --navy-3: #3264be;
  --fire: #ff8a3d; --ember: #ffb35c; --dusk: #6a5a9c;
  --text: #f1e8d4; --muted: #b3a78d; --off: #8a7f6b;
  --ok: #8fdc6a; --bad: #ff7a6a;
  --z-green: #7fd65a; --z-yellow: #f2cf4a; --z-red: #ff5a4a; --z-black: #2a2233;
  --line: rgba(227, 196, 110, .18);
  --f-title: 'Alegreya SC', Georgia, serif;
  --f-ui: 'Be Vietnam Pro', system-ui, 'Segoe UI', sans-serif;
  --expo: cubic-bezier(.16, 1, .3, 1); --quint: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(24px, 5vw, 112px);
  --wrap: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
[tabindex="-1"]:focus { outline: none; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: var(--ink-1); color: var(--text); font: 400 15px/1.6 var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--gold-3); }
:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--gold-3); color: var(--ink-1); border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- chạm: tắt vệt chạm mặc định của trình duyệt điện thoại (khối xanh ngọc đặc) — mỗi phần tử có trạng thái nhấn riêng (:active bên dưới) ---------- */
* { -webkit-tap-highlight-color: transparent; }

/* ---------- nút chung ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid transparent;
       border-radius: 8px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; transition: filter .15s, background-color .15s, border-color .15s, transform .12s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .55; }
.btn.block { display: flex; width: 100%; }
.btn.lg { min-height: 52px; font-size: 16px; }
.btn.primary { color: #23170a; background: linear-gradient(180deg, #f6dd8f 0%, var(--gold-3) 45%, #c99a3e 100%); border-color: #f8e3a0;
               box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px rgba(176, 138, 60, .28); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); }
.btn.ghost { color: var(--gold-4); background: rgba(18, 14, 10, .6); border-color: var(--gold-1); }
.btn.ghost:hover:not(:disabled) { border-color: var(--gold-2); background: rgba(227, 196, 110, .12); }
.link { padding: 0; background: none; border: 0; color: var(--gold-3); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--gold-4); }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.eyebrow { margin: 0; font: 700 13px/1 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }

/* ---------- khung kiểu game: viền vàng + 4 ốp góc (giao diện v2) ---------- */
.frame { position: relative; background: var(--plate); border: 1px solid var(--gold-1); border-radius: 6px;
         box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 0 0 4px rgba(111, 83, 34, .22), 0 24px 60px rgba(0, 0, 0, .55); }
.frame::after { content: ""; position: absolute; inset: -9px; pointer-events: none; z-index: 2;
  background: url(../b_px/ui/v2/corner.png?v=e04300d2) left top / 46px auto no-repeat, url(../b_px/ui/v2/corner_tr.png?v=b0e1fea2) right top / 46px auto no-repeat,
              url(../b_px/ui/v2/corner_bl.png?v=0d7e32f7) left bottom / 46px auto no-repeat, url(../b_px/ui/v2/corner_br.png?v=bf3909ba) right bottom / 46px auto no-repeat; }
.rule { width: 190px; height: 15px; margin: 8px auto 0; background: url(../b_px/ui/v2/rule.png?v=2d2b8a2e) center / contain no-repeat; }

/* ---------- thanh trên ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, border-color .3s, opacity .5s var(--quint), transform .5s var(--quint); border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(12, 9, 6, .94); border-color: var(--line); }
.nav .in { height: 64px; padding: 0 var(--pad); display: flex; align-items: center; gap: 28px; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: var(--gold-3); text-decoration: none; font: 800 23px/1 var(--f-title); letter-spacing: .02em; }
.nav .brand img { width: 40px; height: auto; }
.nav .links { display: flex; gap: 2px; }
.nav .links a { padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; font-size: 14.5px; opacity: .85; }
.nav .links a:hover { opacity: 1; background: rgba(227, 196, 110, .1); color: var(--gold-4); }
.nav .end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav .end .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
.nav .lang { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 6px 0 12px; border: 1px solid var(--gold-1); border-radius: 8px;
             color: var(--gold-4); background: rgba(18, 14, 10, .55); cursor: pointer; }
.nav .lang:hover { border-color: var(--gold-2); }
.nav .lang:focus-within { outline: 2px solid var(--gold-3); outline-offset: 2px; }
.nav .lang select { min-height: 38px; padding: 0 4px; border: 0; background: transparent; color: inherit; font-weight: 600; font-size: 14px; cursor: pointer; outline: none; }
.nav .lang option { color: #23170a; }
.nav .menu { display: none; width: 44px; height: 44px; border: 1px solid var(--gold-1); border-radius: 8px; background: rgba(18, 14, 10, .55); color: var(--gold-4); cursor: pointer; }
.nav .sheet { display: none; }
.nav .end .go { display: none; }
.nav .cd_chip { gap: 7px; cursor: default; font-variant-numeric: tabular-nums; }
.nav .cd_chip i { color: var(--gold-3); }
a[data-wiki]:not(.on) { display: none !important; }          /* link Cẩm Nang: home.js thêm .on khi /wiki/<lang>/ có thật */

/* =====================================================================
   1. ĐẦU TRANG
   ===================================================================== */
.hero { position: relative; height: 100svh; min-height: 640px; }
html.gl.mo .hero { height: calc(100svh + 152svh); }              /* đường cuộn: máy quay đẩy + 2 lớp mây dâng + đáy mây (home_gl.js) */
.stage { position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden; background: #0b0814; isolation: isolate; }
.stage .still { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; z-index: -3; image-rendering: auto; }
.stage canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity .5s; }
.stage canvas.gl.on { opacity: 1; }
html.nogl .stage canvas.gl { display: none; }
.stage .veil { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 6, 4, .78) 0%, rgba(8, 6, 4, .32) 30%, rgba(8, 6, 4, 0) 46%, rgba(8, 6, 4, 0) 64%, rgba(8, 6, 4, .4) 80%, rgba(8, 6, 4, .7) 100%),
              linear-gradient(180deg, rgba(8, 6, 4, .5) 0%, rgba(8, 6, 4, 0) 14%, rgba(8, 6, 4, 0) 72%, rgba(8, 6, 4, .5) 100%); }
.stage .in { position: absolute; inset: 0; padding: 96px var(--pad) 56px; display: flex; align-items: center; justify-content: space-between; gap: 40px; pointer-events: none; }
.stage .in > * { pointer-events: auto; }
.pitch { flex: 0 1 min(500px, 30vw); align-self: flex-end; }
.pitch .eyebrow { margin: 0 0 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--gold-1); border-radius: 999px;
                  background: rgba(10, 7, 5, .66); color: var(--gold-4); font: 500 12.5px/1 var(--f-ui); letter-spacing: .04em; text-transform: none; }
.pitch .eyebrow i { color: var(--gold-3); }
.pitch .eyebrow.ob { text-transform: uppercase; letter-spacing: .04em; }   /* đang đếm Open Beta (s177): giờ mở viết hoa */
.logo { margin: 0; }
.logo img { width: clamp(300px, 27vw, 500px); height: auto; filter: drop-shadow(0 4px 0 rgba(40, 20, 4, .9)) drop-shadow(0 12px 26px rgba(0, 0, 0, .6)); transform-origin: 30% 60%; }
.pitch .realm { margin: 6px 0 0; font: 700 clamp(20px, 1.9vw, 27px)/1.2 var(--f-title); color: var(--gold-4); letter-spacing: .12em; text-shadow: 0 2px 10px rgba(0, 0, 0, .85); }
.pitch .tagline { margin: 14px 0 0; max-width: 30em; font-size: 16.5px; line-height: 1.6; color: #efe5cf; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li { padding: 6px 12px; background: rgba(10, 7, 5, .7); border: 1px solid var(--line); border-radius: 6px; font-size: 13.5px; color: var(--muted); }
.facts b { color: var(--gold-3); font-size: 15px; margin-right: 3px; }
.keepset li { display: inline-flex; align-items: center; gap: 7px; color: #e6dcc4; }   /* đang đếm Open Beta: thay .facts (home.js obStart) */
.keepset .fa-check { color: var(--ok); } .keepset .fa-rotate { color: var(--gold-3); }

/* Đếm ngược Open Beta (chữ số màu đặc — không gradient chữ) */
.cd { margin: 16px 0 0; }
.cd .k { margin: 0 0 8px; font: 700 14px/1.2 var(--f-title); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-3); text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }
.cd .t { display: flex; align-items: flex-start; gap: 8px; }
.cd .u { width: 88px; padding: 10px 0 8px; text-align: center; border-radius: 6px; background: rgba(14, 10, 7, .92); box-shadow: inset 0 0 0 1px var(--gold-1), 0 0 0 1px #000, 0 12px 28px rgba(0, 0, 0, .5); }
.cd .u b { display: block; font: 800 46px/1 var(--f-title); font-variant-numeric: tabular-nums; color: var(--gold-4); text-shadow: 0 2px 0 #2a1b08; }
.cd .u small { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cd .sep { padding-top: 12px; font: 800 34px/1 var(--f-title); color: var(--gold-2); }
.cd .at { margin: 10px 0 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: #efe5cf; }
.cd .at i { color: var(--gold-3); }
.cd .u::before { content: none; }                                 /* khối đếm trên sân khấu: số màu đặc như mockup (bỏ vạch giữa + chữ gradient + nhấp nháy của ob.css) */
.cd .u b, .cd .u.s b { background: none; filter: none; animation: none; }

/* bảng tên 3 tướng (vị trí theo cover-fit chung — home.js) */
.plates { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.plate { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; white-space: nowrap;
         background: rgba(9, 7, 5, .86); border: 1px solid var(--gold-1); border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
         transition: opacity .45s var(--quint), translate .45s var(--quint); }
.plate.off { opacity: 0; translate: 0 6px; }
.plate img { width: 30px; height: 30px; flex: none; }
.plate b { display: block; font: 700 17px/1.1 var(--f-title); color: var(--gold-4); letter-spacing: .02em; }
.plate small { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 1.3; color: var(--muted); }
.plate small i { font-size: 11px; }
@media (max-width: 1600px) { .plate small { display: none; } } /* màn hẹp: bảng đầy đủ che đầu tướng bên cạnh */
.plate .r_tank { color: #b9d0ff; } .plate .r_sup { color: #c4f0ae; } .plate .r_dps { color: #ffc0b6; }
.plate::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 9px; height: 9px; translate: -50% 0; rotate: 45deg;
                background: rgba(9, 7, 5, .86); border: solid var(--gold-1); border-width: 0 1px 1px 0; }

/* vòng rune = nút thật; nút "Triệu hồi" cạnh đó cho người không đoán ra */
.rune_btn { position: absolute; left: 0; top: 0; z-index: 1; border: 0; border-radius: 50%; background: transparent; cursor: pointer; padding: 0; }
.rune_btn:focus-visible { outline: 2px solid var(--gold-4); outline-offset: 4px; }
.summon_btn { position: absolute; left: 0; top: 0; z-index: 2; display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; translate: -50% 0;
              border: 1px solid var(--gold-2); border-radius: 999px; background: rgba(12, 9, 6, .82); color: var(--gold-4); font-weight: 600; font-size: 14px; cursor: pointer;
              box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 8px 20px rgba(0, 0, 0, .45); transition: border-color .15s, background-color .15s, opacity .3s; }
.summon_btn i { color: var(--gold-3); }
.summon_btn:hover { border-color: var(--gold-3); background: rgba(48, 36, 18, .9); }
.summon_btn[aria-disabled="true"], .rune_btn[aria-disabled="true"] { cursor: progress; }
.summon_btn[aria-disabled="true"] { opacity: .6; }
html.nogl .rune_btn, html.nogl .summon_btn, html.rm .rune_btn, html.rm .summon_btn { display: none; }

/* ---------- hộp đăng nhập ---------- */
.stage .auth { flex: 0 0 400px; align-self: center; }
.auth { padding: 30px 30px 22px; }
.auth h2 { margin: 0; text-align: center; font: 700 27px/1.2 var(--f-title); color: var(--gold-4); letter-spacing: .02em; }
.auth .sub { margin: 10px 0 18px; text-align: center; color: var(--muted); font-size: 14px; }
.auth .sub b { color: var(--text); font-weight: 600; word-break: break-all; }
.auth .rule:has(+ .sub[hidden]) { margin-bottom: 20px; }            /* s450: bỏ dòng phụ dưới tiêu đề — giữ khoảng cách gạch hoa văn ↔ khối kế (Open Beta mới hiện dòng này) */
.auth label.lbl { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.field { position: relative; }
.field > i { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--gold-2); pointer-events: none; }
.field input { width: 100%; height: 48px; padding: 0 14px 0 42px; background: rgba(6, 4, 3, .8); border: 1px solid var(--ink-4); border-radius: 8px; font-size: 15.5px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: var(--off); }
.field input:hover { border-color: var(--gold-1); }
.field input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(227, 196, 110, .2); }
.msg { margin: 8px 0 0; font-size: 13.5px; display: flex; gap: 7px; align-items: flex-start; }
.msg:empty { display: none; }
.msg.err { color: var(--bad); } .msg.ok { color: var(--ok); }
.msg i { margin-top: 3px; }
/* lỗi cũ: chỉ .btn.primary có lề — nút gửi mã đổi sang ghost khi bật Google là dính sát ô Gmail. Giờ mọi nút trong form cách ô ≥ 16 px */
.auth form .btn, .auth form .check + .btn { margin-top: 16px; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--off); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* nút Google theo hướng dẫn thương hiệu: nền trắng, viền #747775, chữ Roboto 500 */
.btn.google { background: #fff; color: #1f1f1f; border-color: #747775; font: 500 15px/1 Roboto, var(--f-ui); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.btn.google:hover:not(:disabled) { background: #f2f2f2; }
.btn.google svg { width: 20px; height: 20px; flex: none; }
/* nút nhóm Zalo (s450) cuối khung đăng nhập — màu thương hiệu Zalo #0068FF, logo ứng dụng Zalo SVG nhúng trong index.html (không viền bọc) */
.btn.zalo { margin-top: 18px; justify-content: flex-start; gap: 12px; padding: 0 16px; min-height: 60px; color: #fff; text-decoration: none; text-align: left;
            background: linear-gradient(180deg, #2b84ff 0%, #0068ff 55%, #0052cc 100%); border-color: #6aa8ff; box-shadow: 0 6px 18px rgba(0, 40, 120, .35); }
.btn.zalo:hover { filter: brightness(1.08); }
.btn.zalo .zl_ic { flex: none; width: 38px; height: 38px; }
.btn.zalo .zl_t { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.btn.zalo .zl_t b { font-size: 16px; font-weight: 700; line-height: 1.15; }
.btn.zalo .zl_t small { font-size: 12.5px; font-weight: 500; line-height: 1.2; color: rgba(255, 255, 255, .86); }
.btn.zalo .zl_out { flex: none; font-size: 13px; opacity: .8; }
.g_cancel { margin-top: 10px; }                                      /* client máy tính: Hủy dưới nút Google đang chờ trình duyệt (home.js deskGoogle) */
.legal { margin: 18px 0 0; font-size: 12.5px; color: var(--off); text-align: center; line-height: 1.55; }
.legal .link { font-size: inherit; color: var(--muted); }
.back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; min-height: 36px; text-decoration: none; font-size: 14px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 0; padding: 0; border: 0; }
.otp input { width: 100%; height: 56px; text-align: center; background: rgba(6, 4, 3, .8); border: 1px solid var(--ink-4); border-radius: 8px;
             font: 700 25px/1 var(--f-ui); color: var(--gold-4); caret-color: var(--gold-3); transition: border-color .15s, box-shadow .15s; }
.otp input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(227, 196, 110, .2); }
.invalid .field input, .invalid .field input:focus, .otp.invalid input { border-color: var(--bad); box-shadow: 0 0 0 3px rgba(255, 122, 106, .18); }
.otp.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.check { display: flex; align-items: center; gap: 10px; margin-top: 14px; min-height: 32px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold-3); }
.resend { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.resend b { color: var(--text); font-variant-numeric: tabular-nums; }
.hint { margin: 14px 0 0; padding: 10px 12px; display: flex; gap: 9px; font-size: 13px; color: var(--muted); background: rgba(28, 58, 120, .22); border: 1px solid rgba(50, 100, 190, .35); border-radius: 8px; }
.hint i { color: #8fb4ff; margin-top: 3px; }
.who { text-align: center; }
.who .avatar { width: 72px; height: 72px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; font: 800 32px/1 var(--f-title); color: var(--gold-4);
               background: radial-gradient(circle at 35% 30%, var(--navy-3), var(--navy-1)); border: 3px solid var(--gold-2); box-shadow: 0 0 0 4px rgba(0, 0, 0, .45); }
.facts_mini { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.facts_mini li { display: flex; gap: 10px; align-items: center; padding: 9px 12px; background: rgba(6, 4, 3, .55); border: 1px solid var(--ink-4); border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.facts_mini i { width: 18px; text-align: center; color: var(--gold-3); }
.who .acct { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; }
.who .acct .link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 4px; }
.gm .cur { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 14px; background: rgba(6, 4, 3, .55); border: 1px solid var(--ink-4); border-radius: 8px; font-size: 14px; text-align: left; }
.gm .cur i { color: var(--gold-2); }
.gm .cur small { display: block; font-size: 12px; color: var(--muted); }
.gm .cur b { font-weight: 600; word-break: break-all; }
.gm label.lbl small { float: right; font-weight: 500; color: var(--muted); }
.gm .field + label.lbl { margin-top: 14px; }
.gm .field.bad input { border-color: var(--bad); }
.who .btn.wait:disabled { opacity: 1; cursor: default; color: var(--gold-4); background: rgba(40, 30, 14, .92); border-color: var(--gold-1); box-shadow: none; }
.who .btn.wait b { font-variant-numeric: tabular-nums; }
.who .btn.wait i { color: var(--gold-3); }
.btn.primary.glow { animation: ob_glow 1.6s ease-in-out infinite; }   /* Open Beta vừa mở: Vào game sáng nhịp */
@keyframes ob_glow { 50% { box-shadow: 0 0 0 1px #f8e3a0, 0 0 24px 4px rgba(255, 214, 120, .55); } }
.gift { text-align: left; margin: 0 0 14px; }
.gift h3 { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font: 700 17px/1.2 var(--f-title); color: var(--gold-3); }
.gift ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.auth .keep { display: flex; align-items: center; gap: 10px; margin: -8px -6px 16px; padding: 9px 12px; border-radius: 6px; font-size: 13px; line-height: 1.45;
              background: rgba(227, 196, 110, .12); border: 1px solid rgba(227, 196, 110, .35); }
.auth .keep > i { color: var(--gold-3); font-size: 16px; }
.auth .keep b { color: var(--gold-4); }
.auth .early { margin: 0 0 16px; display: flex; gap: 9px; padding: 10px 12px; text-align: left; font-size: 13px; line-height: 1.45; color: #e6dcc4;
               background: rgba(127, 214, 90, .08); border: 1px solid rgba(127, 214, 90, .3); border-radius: 8px; }
.auth .early i { margin-top: 3px; color: var(--ok); }
/* tia sáng vàng chạy 1 vòng quanh viền: sau mở màn + khi focus ô nhập */
.auth::before { content: ""; position: absolute; inset: -2px; z-index: 3; border-radius: 7px; padding: 2px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--sweep), transparent 0deg, transparent 300deg, rgba(255, 214, 120, .55) 330deg, #fff4cc 352deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.auth.sweep::before { animation: sweep 1.5s var(--quint) 1; }
@keyframes sweep { 0% { --sweep: -40deg; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { --sweep: 360deg; opacity: 0; } }

/* ---------- Mời bạn ---------- */
.invite { flex: 0 1 420px; align-self: flex-end; padding: 22px 22px 18px; }
.invite .host { display: flex; align-items: center; gap: 14px; }
.invite .pt { flex: none; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: #120e0a; box-shadow: 0 0 0 1px var(--gold-2), 0 0 0 2px #000; }
.invite .pt img { width: 100%; height: 100%; image-rendering: pixelated; }
.invite .k { margin: 0; font-size: 12.5px; color: var(--muted); }
.invite h2 { margin: 0; font: 800 28px/1.1 var(--f-title); color: var(--gold-4); }
.invite .m { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.invite .m b { color: var(--text); }
.invite .lead { margin: 12px 0 0; font-size: 14.5px; line-height: 1.55; color: #efe5cf; }
.invite h3 { margin: 14px 0 8px; font: 700 16px var(--f-title); color: var(--gold-3); }
.invite .gifts { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.invite .gifts li { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 40px; padding: 4px 10px 4px 6px; border-radius: 5px; background: rgba(6, 4, 3, .6); border: 1px solid rgba(0, 0, 0, .7); }
.invite .when { display: inline-flex; justify-content: center; padding: 2px 0; border-radius: 4px; background: rgba(227, 196, 110, .12); color: var(--gold-4); font-size: 12.5px; font-weight: 600; }
.invite .what { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13.5px; }
.invite .what > span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.invite .it { flex: none; width: 24px; height: 24px; background: url(../b_px/ui/items.png?v=66abc269) 0 0 / 600% 600% no-repeat; }
.invite .fine { display: flex; gap: 8px; margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.invite .fine i { margin-top: 3px; color: var(--gold-2); }

/* ---------- mở màn: ẩn giao diện tới khi logo nện xuống, rồi lướt vào so le ---------- */
html.intro .stage .still { opacity: 0; }
html.intro .nav, html.intro .pitch .eyebrow, html.intro .pitch .realm, html.intro .pitch .cd, html.intro .pitch .tagline, html.intro .pitch .facts, html.intro .stage .auth, html.intro .stage .invite, html.intro .plates, html.intro .summon_btn, html.intro .music, html.intro .mock {
  opacity: 0; transform: translateY(14px); pointer-events: none; }
html.intro .nav { transform: translateY(-12px); }
html.intro .logo img { opacity: 0; transform: scale(1.4); }
html.slam .logo img { opacity: 1; transform: none; transition: transform .42s var(--expo), opacity .14s linear; }
html.reveal .nav, html.reveal .pitch .eyebrow, html.reveal .pitch .realm, html.reveal .pitch .cd, html.reveal .pitch .tagline, html.reveal .pitch .facts, html.reveal .stage .auth, html.reveal .stage .invite, html.reveal .plates, html.reveal .summon_btn, html.reveal .music, html.reveal .mock {
  opacity: 1; transform: none; transition: opacity .6s var(--quint) var(--d, 0s), transform .7s var(--quint) var(--d, 0s); }
html.snap * { transition: none !important; }
.pitch .eyebrow { --d: 0s; } .pitch .realm { --d: .06s; } .pitch .cd { --d: .09s; } .pitch .tagline { --d: .12s; } .pitch .facts { --d: .18s; }
.stage .auth { --d: .1s; } .nav { --d: .02s; } .summon_btn { --d: .25s; } .plates { --d: .2s; }

/* =====================================================================
   mục chung
   ===================================================================== */
.sec { position: relative; padding: 112px 24px; }
.sec .wrap { position: relative; max-width: var(--wrap); margin: 0 auto; }
.sec h2 { margin: 12px 0 0; font: 700 clamp(30px, 3.8vw, 48px)/1.12 var(--f-title); color: var(--gold-3); }
.head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.head p { margin: 14px 0 0; color: var(--muted); font-size: 16px; }

/* ---------- 2. Game thật ---------- */
.reel { background: var(--ink-1); padding-top: calc(340px * var(--cps, 1) + 24px); }
/* mép mây: dải ảnh (điện thoại / giảm chuyển động / không WebGL) cùng độ to điểm ảnh với tranh — trên là đỉnh mây, dưới là múi mây treo tan vào nền mực.
   Chưa nạp ảnh: dải múi mây SVG (không để trống). PC có WebGL: đáy mây vẽ trong canvas đầu trang, phần này trượt lên đè sân khấu dính */
.cl_edge { position: absolute; left: 0; right: 0; top: 0; height: calc(340px * var(--cps, 1)); pointer-events: none; image-rendering: pixelated;
           background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 340' shape-rendering='crispEdges'%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='.3' stop-color='%233b3163'/%3E%3Cstop offset='.9' stop-color='%231d1830'/%3E%3C/linearGradient%3E%3Cpath fill='url(%23g)' d='M0 190A28 40 0 0 1 56 190A22 18 0 0 1 100 190A35 50 0 0 1 170 190A19 12 0 0 1 208 190A16 22 0 0 1 240 190V292A25 20 0 0 1 190 292A35 30 0 0 1 120 292A25 14 0 0 1 70 292A35 26 0 0 1 0 292Z'/%3E%3C/svg%3E") 0 0 / calc(240px * var(--cps, 1)) 100% repeat-x; }
html.cl .cl_edge { background: url(../b_px/home/stage/cloud_edge.webp?v=ac5277f2) center top / calc(1536px * var(--cps, 1)) 100% no-repeat; }
@media (min-width: 921px) {
  /* giảm chuyển động / không WebGL: đáy đầu trang tan vào nền mực rồi tới dải mép mây (không đường cắt ngang) */
  html.rm .stage .veil, html.nogl .stage .veil { background: linear-gradient(180deg, rgba(18, 14, 10, 0) 78%, var(--ink-1)),
    linear-gradient(90deg, rgba(8, 6, 4, .78) 0%, rgba(8, 6, 4, .32) 30%, rgba(8, 6, 4, 0) 46%, rgba(8, 6, 4, 0) 64%, rgba(8, 6, 4, .4) 80%, rgba(8, 6, 4, .7) 100%),
    linear-gradient(180deg, rgba(8, 6, 4, .5) 0%, rgba(8, 6, 4, 0) 14%); }
  html.gl.mo .reel { margin-top: -30svh; padding-top: calc(30svh + 40px); background: linear-gradient(transparent 30svh, var(--ink-1) 0); }
  html.gl.mo .cl_edge { display: none; }
}
.reel .wrap { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(300px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1360px; }
.screen { aspect-ratio: 16 / 9; padding: 0; background: #000; }
.screen .clips { position: absolute; inset: 0; overflow: hidden; border-radius: 5px; }
.screen video, .screen .kb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--quint); }
.screen .on { opacity: 1; }
.screen .kb { overflow: hidden; }
.screen .kb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 40%; }
.screen .kb.on img { animation: kb 9s linear both; }
@keyframes kb { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.14) translate(-2.5%, -1.5%); } }
.screen .pp { position: absolute; right: 12px; bottom: 10px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold-1); border-radius: 50%;
              background: rgba(6, 4, 3, .78); color: var(--gold-4); cursor: pointer; }
.screen .pp:hover { border-color: var(--gold-3); }
.screen .kb.paused img { animation-play-state: paused; }
.screen .tag { position: absolute; left: 14px; bottom: 12px; z-index: 3; margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 4px;
               background: rgba(6, 4, 3, .78); font-size: 12.5px; color: var(--text); }
.screen .tag i { font-size: 8px; color: #ff5a4a; }
.reel .side h2 { margin-bottom: 24px; }
.picks { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: pk; }
.picks button { position: relative; width: 100%; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 12px; padding: 14px 14px 16px; text-align: left; cursor: pointer;
                background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--muted); transition: background-color .2s, border-color .2s, color .2s; }
.picks button:hover { background: rgba(227, 196, 110, .05); color: var(--text); }
.picks button[aria-selected="true"] { background: rgba(227, 196, 110, .08); border-color: var(--line); color: var(--text); }
.picks .n { grid-row: span 2; font: 700 22px/1.1 var(--f-title); color: var(--gold-2); }
.picks b { font: 700 19px/1.25 var(--f-title); color: var(--gold-4); }
.picks span.d { font-size: 14px; line-height: 1.5; }
.picks button:not([aria-selected="true"]) span.d { display: none; }
.picks .bar { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: rgba(227, 196, 110, .14); border-radius: 1px; overflow: hidden; }
.picks .bar i { display: block; height: 100%; background: var(--gold-3); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 3. Tuyên ngôn sòng phẳng ---------- */
.vow { background: var(--ink-1); padding: 120px 24px 140px; isolation: isolate; }
/* phông sử thi (vow.webp, nạp lười): dính theo màn, trôi chậm khi cuộn (home_sections.js) · lớp tối + 2 dải tan đỉnh / đáy vào màu nền phần kề · chữ ≥ 4,5:1 (check.js đo) */
.vow .bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.vow .bg .stick { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.vow .bg img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; max-width: none; object-fit: cover; object-position: 50% 40%; opacity: 0; transition: opacity .8s var(--quint); will-change: transform; }
.vow .bg img.on { opacity: 1; }
.vow .bg .stick::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(14, 10, 16, .14), rgba(14, 10, 16, .5)); }
.vow::before, .vow::after { content: ""; position: absolute; left: 0; right: 0; height: 34svh; pointer-events: none; }
.vow::before { top: 0; background: linear-gradient(var(--ink-1), rgba(18, 14, 10, .82) 30%, rgba(18, 14, 10, 0)); }
.vow::after { bottom: 0; background: linear-gradient(rgba(18, 14, 10, 0), rgba(18, 14, 10, .82) 70%, var(--ink-1)); }
.vow .wrap { z-index: 1; display: grid; gap: clamp(64px, 11vh, 128px); }
.vow .line { max-width: 1100px; }
.vow .line:nth-child(2) { justify-self: end; text-align: right; }
.vow h2 { margin: 0; font: 800 clamp(40px, 6.6vw, 104px)/1.02 var(--f-title); color: var(--gold-4); letter-spacing: -.005em; text-wrap: balance; }
.vow .line:nth-child(1) h2 { color: var(--text); }
.vow h2, .vow p { text-shadow: 0 2px 14px rgba(0, 0, 0, .85); }
.vow p { margin: 18px 0 0; font-size: clamp(16px, 1.3vw, 19px); color: #e2d8c1; max-width: 36em; }
.vow .line:nth-child(2) p { margin-left: auto; }
html.mo .vow .line { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--quint), transform 1.1s var(--expo); }
html.mo .vow .line.seen { opacity: 1; transform: none; }

/* ---------- 4. Bốn màu đất ---------- */
.world { position: relative; height: 420svh; background: #0c1a2e; }
.pin_stage { position: sticky; top: 0; height: 100svh; min-height: 560px; overflow: hidden; }
.pin_stage > .still { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pin_stage canvas.gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
.pin_stage canvas.gl.on { opacity: 1; }
.pin_stage .shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--ink-1) 0%, rgba(18, 14, 10, 0) 16%, rgba(18, 14, 10, 0) 84%, var(--ink-1) 100%); }
/* lớp tối trái đỡ chữ màu đất — tan khi về toàn cảnh có ghim (bản đồ không bị tối một bên) */
.pin_stage .shade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 6, 4, .78), rgba(8, 6, 4, .25) 34%, rgba(8, 6, 4, 0) 55%); transition: opacity .6s var(--quint); }
.pin_stage.end .shade::before { opacity: 0; }
.w_head { position: absolute; left: var(--pad); top: 50%; translate: 0 -50%; max-width: 440px; transition: opacity .5s var(--quint), transform .6s var(--quint); }
.w_head h2 { margin: 0; font: 800 clamp(28px, 4vw, 64px)/1.05 var(--f-title); color: var(--gold-4); text-shadow: 0 2px 16px rgba(0, 0, 0, .9); }
.w_head p:last-child { margin: 14px 0 0; color: #e6dcc4; font-size: 16px; text-shadow: 0 1px 8px rgba(0, 0, 0, .9); }
.w_head.off { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.zones { position: absolute; left: var(--pad); top: 50%; translate: 0 -50%; width: min(440px, 40vw); }
.zone { position: absolute; left: 0; top: 0; translate: 0 -50%; width: 100%; opacity: 0; transform: translateY(26px); transition: opacity .5s var(--quint), transform .7s var(--quint); pointer-events: none; }
.zone.on { opacity: 1; transform: none; }
.zone .zc { font-size: 13px; }
.zone h3 { margin: 12px 0 0; font: 800 clamp(34px, 4.2vw, 64px)/1 var(--f-title); color: var(--zc, var(--gold-4)); text-shadow: 0 3px 0 rgba(0, 0, 0, .6), 0 10px 30px rgba(0, 0, 0, .7); }
.zone p { margin: 14px 0 0; font-size: 17px; line-height: 1.55; color: #f1e8d4; text-shadow: 0 1px 10px rgba(0, 0, 0, .95); }
.zone .map_n { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.zone .map_n b { color: var(--text); font-weight: 600; }
.meter { position: absolute; right: var(--pad); bottom: 48px; width: min(340px, 34vw); display: grid; gap: 8px; transition: opacity .5s; }
.meter .k { font-size: 13px; font-weight: 600; color: var(--gold-4); text-shadow: 0 1px 6px rgba(0, 0, 0, .9); }
.meter .bar { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .55); box-shadow: inset 0 0 0 1px rgba(227, 196, 110, .25); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
                background: linear-gradient(90deg, var(--z-green), var(--z-yellow) 38%, var(--z-red) 68%, #5a2a6a); }
.meter .ticks { display: flex; justify-content: space-between; }
.meter .ticks b { width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
.meter .ticks .g { background: var(--z-green); } .meter .ticks .y { background: var(--z-yellow); } .meter .ticks .r { background: var(--z-red); } .meter .ticks .k { background: var(--z-black); }
.meter.off { opacity: 0; }
.zc { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text);
      background: rgba(6, 4, 3, .72); border: 1px solid var(--ink-4); white-space: nowrap; }
.zc::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.zc.g { --c: var(--z-green); } .zc.y { --c: var(--z-yellow); } .zc.r { --c: var(--z-red); } .zc.k { --c: var(--z-black); }
.pins { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--quint); }
.pins.on { opacity: 1; }
.pins.on .pin { pointer-events: auto; }
.pin { position: absolute; left: 0; top: 0; translate: -50% -100%; display: grid; justify-items: center; gap: 3px; min-width: 44px; min-height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--text); }
.pin .flag { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--navy-1); border: 2px solid var(--gold-3);
             box-shadow: 0 3px 8px rgba(0, 0, 0, .6); transition: transform .15s, background-color .15s; }
.pin .flag i { rotate: 45deg; font-size: 12px; color: var(--gold-4); }
.pin.outer .flag { background: #4a1712; border-color: #ff9a86; }
.pin .name { padding: 2px 7px; border-radius: 4px; background: rgba(8, 6, 4, .86); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pin:hover .flag, .pin[aria-pressed="true"] .flag { transform: scale(1.18); background: var(--gold-2); }
.pin[aria-pressed="true"] .name { background: var(--gold-3); color: #23170a; }
.place { position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; width: 340px; padding: 24px 22px 20px; }
.place .band { margin: 0; font-size: 13px; font-weight: 600; color: var(--gold-2); letter-spacing: .04em; }
.place h3 { margin: 6px 0 0; font: 700 25px/1.2 var(--f-title); color: var(--gold-4); }
.place p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.place .mix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
/* giảm chuyển động / không WebGL: 4 khối xếp dọc + bản đồ tĩnh bấm được */
html.rm .world, html.nogl .world, .world.flat { height: auto; padding: 96px 24px; background: var(--ink-1); }
html.rm .pin_stage, html.nogl .pin_stage, .world.flat .pin_stage { position: relative; height: auto; min-height: 0; overflow: visible; max-width: var(--wrap); margin: 0 auto; display: grid; gap: 28px; }
html.rm .pin_stage .shade, html.nogl .pin_stage .shade, html.rm .meter, html.nogl .meter, .world.flat .pin_stage .shade, .world.flat .meter { display: none; }
html.rm .w_head, html.nogl .w_head, .world.flat .w_head { position: static; translate: none; max-width: 760px; }
html.rm .zones, html.nogl .zones, .world.flat .zones { position: static; translate: none; width: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; order: 3; }
html.rm .zone, html.nogl .zone, .world.flat .zone { position: static; translate: none; opacity: 1; transform: none; padding: 16px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 8px; }
html.rm .zone h3, html.nogl .zone h3, .world.flat .zone h3 { font-size: 28px; }
html.rm .zone p, html.nogl .zone p, .world.flat .zone p { font-size: 14.5px; text-shadow: none; }
html.rm .pin_stage .mapbox, html.nogl .pin_stage .mapbox, .world.flat .pin_stage .mapbox { position: relative; aspect-ratio: 3 / 2; border: 1px solid var(--gold-1); border-radius: 8px; overflow: hidden; order: 2; }
html.rm .pin_stage .mapbox .still, html.nogl .pin_stage .mapbox .still, .world.flat .pin_stage .mapbox .still { width: 100%; height: 100%; position: absolute; transform: none; }
html.rm .pins, html.nogl .pins, .world.flat .pins { opacity: 1; } html.rm .pins .pin, html.nogl .pins .pin, .world.flat .pins .pin { pointer-events: auto; }
html.rm .place, html.nogl .place, .world.flat .place { position: static; translate: none; width: auto; max-width: 560px; order: 2; }

/* ---------- 5. Tướng ---------- */
.heroes { overflow: hidden; background: radial-gradient(ellipse 70% 60% at 50% 62%, color-mix(in srgb, var(--rc, #3f7be0) 22%, transparent), transparent 70%), var(--ink-1);
          transition: background-color .6s; }
.wall { position: absolute; inset: 0; display: grid; align-content: center; gap: 24px; pointer-events: none; opacity: .17; filter: blur(1.5px) saturate(.6); }
.wall .row { display: flex; gap: 28px; width: max-content; will-change: transform; }
.wall img { height: 230px; width: auto; }
.heroes { isolation: isolate; }   /* gốc lớp chồng: cột sáng cộng sáng lên đúng nền tộc */
.races { display: flex; justify-content: center; gap: 6px; margin: 0 auto 26px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.races::-webkit-scrollbar { display: none; }
.race_tab { flex: none; width: 96px; padding: 8px 4px; display: grid; justify-items: center; gap: 6px; background: transparent; border: 1px solid transparent; border-radius: 10px;
            cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; transition: background-color .15s, border-color .15s, color .15s; }
.race_tab img { width: 54px; height: 54px; transition: transform .25s var(--quint), filter .2s; filter: saturate(.5) brightness(.75); }
.race_tab:hover { color: var(--text); background: rgba(227, 196, 110, .06); }
.race_tab:hover img { filter: none; }
.race_tab[aria-selected="true"] { color: var(--gold-4); background: rgba(227, 196, 110, .1); border-color: var(--gold-1); }
.race_tab[aria-selected="true"] img { filter: none; transform: scale(1.1); }
.arena { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 1fr); grid-template-rows: auto 1fr; gap: 10px 40px; align-items: end; outline: none; }
.race_info { grid-column: 1; text-align: center; }
.race_info h3 { margin: 0; font: 700 26px/1.2 var(--f-title); color: var(--gold-4); }
.race_info h3 small { margin-left: 8px; font: 500 14px var(--f-ui); color: var(--gold-2); }
.race_info p { margin: 6px auto 0; max-width: 560px; color: var(--muted); font-size: 14.5px; }
.lineup { grid-column: 1; position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 420px; padding-bottom: 34px; }
.lineup .lineup_err { margin: auto; color: var(--muted); text-align: center; }
.lineup::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 10px; height: 64px; border-radius: 50%;
                  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--rc, #3f7be0) 45%, transparent), transparent 70%); }
.ch { position: relative; flex: 0 1 25%; display: grid; justify-items: center; align-items: end; height: 100%; padding: 0; background: none; border: 0; cursor: pointer; color: var(--text);
      transition: transform .5s var(--quint), opacity .4s, filter .4s; }
.ch img.pic { position: relative; z-index: 1; height: 330px; width: auto; max-width: none; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.lineup .pl { position: absolute; z-index: 0; bottom: 18px; left: 50%; width: 230px; height: 420px; translate: -50% 0; opacity: 0; transform-origin: 50% 100%; transform: scaleY(0);
               background: url(../b_px/home/stage/pillar_a.webp?v=c3f14635) center bottom / 100% 100% no-repeat; mix-blend-mode: screen; mix-blend-mode: plus-lighter; pointer-events: none; }
.ch .nm { position: relative; z-index: 2; margin-top: -6px; padding: 2px 10px; border-radius: 4px; background: rgba(8, 6, 4, .8); font: 700 15px/1.3 var(--f-title); color: var(--gold-4); }
.ch[aria-pressed="false"] { opacity: .62; filter: saturate(.7); }
.ch:hover { opacity: 1; filter: none; }
.ch[aria-pressed="true"] { transform: translateY(-8px) scale(1.08); z-index: 2; }
.lineup .pl.on { animation: pl .9s var(--expo) both; }   /* cột riêng (ngoài nút tướng đang nâng — transform cô lập lớp chồng) — home_sections.js đặt dưới tướng được chọn */
@keyframes pl { 0% { opacity: 0; transform: scaleY(0); } 25% { opacity: 1; } 100% { opacity: .9; transform: scaleY(1); } }
.ch:focus-visible { outline-offset: -4px; }
.detail { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 24px 24px 20px; }
.detail .who2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.detail h3 { margin: 0; font: 800 32px/1.1 var(--f-title); color: var(--gold-4); }
.detail .ttl { margin: 2px 0 0; color: var(--muted); font-size: 14.5px; }
.detail .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; background: rgba(6, 4, 3, .6); border: 1px solid var(--ink-4); color: var(--text); }
.tag img { width: 18px; height: 18px; }
.tag.role_tank { border-color: rgba(100, 150, 230, .5); color: #b9d0ff; } .tag.role_sup { border-color: rgba(127, 214, 90, .45); color: #c4f0ae; } .tag.role_dps { border-color: rgba(255, 122, 106, .45); color: #ffc0b6; }
.skills { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.skills li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1px 12px; padding: 9px 0; border-top: 1px solid var(--line); align-items: start; }
.skills .ic { grid-row: 1 / span 3; width: 40px; height: 40px; background-repeat: no-repeat; image-rendering: pixelated; }
.skills .k { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }
.skills b { font-weight: 600; color: var(--text); font-size: 14.5px; }
.skills p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.detail .err { color: var(--bad); }

/* ---------- 5b. Launcher — bản máy tính (home.js: chỉ máy có chuột + /app/download.json hợp lệ; ẩn thì không chiếm chỗ) ---------- */
.launcher { background: var(--ink-1); padding: 104px 24px; }
.launcher .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1240px; }
.launcher .shot { aspect-ratio: 880 / 600; padding: 0; background: var(--ink-0); }
.launcher .shot img { width: 100%; height: 100%; border-radius: 5px; object-fit: cover; }
.launcher .side h2 { margin-bottom: 24px; }
.lc_pts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lc_pts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.lc_pts i { margin-top: 3px; font-size: 18px; text-align: center; color: var(--gold-3); }
.lc_pts b { display: block; color: var(--text); font-weight: 600; font-size: 15.5px; }
.launcher .dl_links { margin-top: 26px; max-width: 360px; }
.launcher .dl_note { max-width: 420px; }
.lc_web { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.lc_web .link { display: inline-flex; align-items: center; min-height: 32px; }
@media (max-width: 920px) {
  .launcher .wrap { grid-template-columns: minmax(0, 1fr); }
  .launcher .shot { max-width: 640px; }
}

/* ---------- 6. Kết ---------- */
.finale { padding: 120px 24px 104px; text-align: center; overflow: hidden; background: var(--ink-0); }
.altar { position: absolute; left: 50%; top: 300px; width: min(1000px, 130vw); translate: -50% -50%; pointer-events: none; }
.altar img { width: 100%; height: auto; opacity: .9; mix-blend-mode: screen; animation: burn 6s ease-in-out infinite;
             -webkit-mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
@keyframes burn { 50% { opacity: .62; } }
.altar .motes { position: absolute; inset: -60% 10% 30%; }
.motes i { position: absolute; bottom: 0; width: 4px; height: 4px; background: #ffd27a; opacity: 0; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translate(var(--dx, 20px), -46vh); opacity: 0; } }
.finale h2, .sec h2, .zone h3 { text-wrap: balance; }
.finale h2 { margin: 0; font: 800 clamp(40px, 6vw, 88px)/1.05 var(--f-title); color: var(--gold-4); text-shadow: 0 4px 0 rgba(0, 0, 0, .55), 0 0 40px rgba(255, 190, 90, .25); }
.finale .cta { margin-top: 30px; min-width: 240px; min-height: 58px; font-size: 18px; }
.specs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 36px; margin: 150px 0 0; padding: 0; list-style: none; }
.specs li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); text-align: left; }
.specs i { font-size: 18px; color: var(--gold-3); }
.specs b { display: block; color: var(--text); font-weight: 600; }

/* ---------- chân trang ---------- */
.foot { padding: 36px 24px 44px; border-top: 1px solid var(--line); background: var(--ink-0); color: var(--off); font-size: 13.5px; }
.foot .wrap { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; gap: 20px 40px; align-items: start; }
.foot .brand { display: flex; align-items: center; gap: 10px; font: 800 21px/1 var(--f-title); color: var(--gold-3); }
.foot .brand img { width: 40px; }
.foot p { margin: 0 0 6px; }
.foot nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.foot .link { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.foot .link:hover { color: var(--gold-4); text-decoration: underline; }

/* ---------- hộp đọc điều khoản ---------- */
dialog.doc { width: min(560px, calc(100% - 32px)); max-height: min(80vh, 680px); padding: 0; color: var(--text); background: var(--ink-2); overflow: visible; }
dialog.doc::backdrop { background: rgba(0, 0, 0, .7); }
dialog.doc .scroll { max-height: min(80vh, 680px); overflow: auto; padding: 28px 28px 24px; }
dialog.doc h2 { margin: 0; font: 700 26px var(--f-title); color: var(--gold-4); padding-right: 44px; }
dialog.doc ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
dialog.doc li { margin-bottom: 8px; }
dialog.doc .x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--gold-1); background: var(--ink-3); color: var(--gold-4); cursor: pointer; }

#navDl { white-space: nowrap; }                                       /* thanh trên: 1 dòng cả bản Anh (cửa sổ 1101 px) */
@media (min-width: 1101px) and (max-width: 1180px) { .nav #navDl { padding: 0 12px; gap: 0; } .nav #navDl span { display: none; } }   /* PC hẹp: chỉ biểu tượng (nhãn ở aria-label + title) — bản Anh dài làm thanh trên vỡ dòng */
/* ---------- hộp Tải bản máy tính (home.js — chỉ máy tính, chỉ khi /app/download.json có thật) ---------- */
dialog.dl { width: min(420px, calc(100% - 32px)); text-align: center; }
dialog.dl .scroll { padding: 28px 28px 24px; }
dialog.dl h2 { padding: 0; margin-top: 10px; }
.dl_logo { display: block; margin: 0 auto; width: 64px; height: auto; }
.dl_sub { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.dl_links { margin-top: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.dl_a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--gold-3); text-underline-offset: 3px; }
.dl_a:hover { color: var(--gold-4); }
.dl_a.main { min-height: 52px; font-size: 16px; text-decoration: none; color: #23170a; background: linear-gradient(180deg, #f6dd8f 0%, var(--gold-3) 45%, #c99a3e 100%);
             border: 1px solid #f8e3a0; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 6px 18px rgba(176, 138, 60, .28); }
.dl_a.main:hover { filter: brightness(1.08); color: #23170a; }
.dl_note { margin: 14px 0 0; display: flex; gap: 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: rgba(10, 7, 5, .5); color: var(--muted); font-size: 13px; line-height: 1.5; }
.dl_note i { margin-top: 3px; color: var(--gold-3); }

/* ---------- nhạc · chuyển cảnh Vào game ---------- */
.music { position: fixed; right: 18px; bottom: 18px; z-index: 45; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--gold-1); border-radius: 50%;
         background: rgba(12, 9, 6, .82); color: var(--gold-3); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.music:hover { border-color: var(--gold-2); }
.nav .end .music { position: static; display: none; box-shadow: none; flex: none; }
.music[aria-pressed="true"] { color: var(--gold-4); border-color: var(--gold-3); }
.warp { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #000; opacity: 0; pointer-events: none; overflow: hidden; }
.warp img { width: 60vmin; height: auto; max-width: none; mix-blend-mode: screen; }
.warp.go { animation: warpBg .9s linear both; }
.warp.go img { animation: warpIn .9s cubic-bezier(.7, 0, .84, 0) both; }
@keyframes warpBg { 0% { opacity: 0; background: transparent; } 12% { opacity: 1; background: rgba(0, 0, 0, .2); } 62% { background: #ffdc8c; } 100% { opacity: 1; background: #000; } }
@keyframes warpIn { 0% { transform: scale(.6) rotate(0deg); opacity: .6; filter: brightness(1); } 60% { transform: scale(7) rotate(14deg); opacity: 1; filter: brightness(2.2); } 100% { transform: scale(12) rotate(20deg); opacity: 0; } }
.warp.out { animation: warpOut .5s var(--quint) both; }
@keyframes warpOut { from { opacity: 1; background: #000; } to { opacity: 0; background: #000; } }

/* ---------- trạng thái nhấn (thay vệt chạm) ---------- */
.btn:active:not(:disabled) { filter: brightness(.92); }
.summon_btn:active:not([aria-disabled="true"]) { background: rgba(70, 52, 24, .95); border-color: var(--gold-4); scale: .96; }
.ch:active img.pic { scale: .97; } .ch:active .nm { background: var(--gold-1); }
.race_tab:active { background: rgba(227, 196, 110, .16); } .race_tab:active img { scale: .92; }
.pin:active { scale: .92; } .pin:active .flag { background: var(--gold-3); }
.picks button:active { background: rgba(227, 196, 110, .14); }
.music:active, .nav .menu:active, .screen .pp:active, dialog.doc .x:active { background: rgba(227, 196, 110, .2); scale: .94; }
.nav .lang:active { background: rgba(227, 196, 110, .14); }
.nav .brand:active, .link:active { opacity: .72; }
.nav .links a:active, .nav .sheet a:active { background: rgba(227, 196, 110, .16); }
.check:active { color: var(--text); }
.mock summary:active, .mock button:active { background: #1d2a3a; }

/* ---------- ML6: gợi ý "Xem bằng tiếng Việt?" (trình duyệt tiếng Việt, trang tiếng Anh theo IP — home.js) ---------- */
.lang_hint { position: fixed; left: 50%; bottom: 20px; z-index: 55; transform: translateX(-50%); max-width: calc(100% - 24px); display: flex; align-items: center; gap: 10px;
             padding: 6px 6px 6px 16px; border: 1px solid var(--gold-1); border-radius: 999px; background: var(--plate); backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.lang_hint > i { color: var(--gold-3); }
.lang_hint .link { white-space: nowrap; font-weight: 600; }
.lang_hint .x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.lang_hint .x:hover { background: rgba(227, 196, 110, .12); color: var(--gold-4); }

/* ---------- ?mock=1: bảng soát trạng thái đăng nhập (không thuộc thiết kế — home.js) ---------- */
.mock { position: fixed; left: 12px; bottom: 12px; z-index: 60; max-width: calc(100% - 80px); font-size: 13px; color: #d6dde6; background: #0b0f14; border: 1px dashed #5a7aa6; border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.mock summary { display: flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 12px; cursor: pointer; font-weight: 600; color: #9fc2ff; list-style: none; }
.mock summary::-webkit-details-marker { display: none; }
.mock .bd { display: grid; gap: 8px; padding: 0 10px 10px; width: 300px; max-width: 100%; max-height: min(60vh, 520px); overflow: auto; }
.mock .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock button { min-height: 44px; padding: 6px 8px; font-size: 12.5px; text-align: left; background: #141c26; color: #d6dde6; border: 1px solid #2f4560; border-radius: 6px; cursor: pointer; }
.mock button:hover, .mock button.on { border-color: #9fc2ff; }

/* =====================================================================
   co giãn
   ===================================================================== */
@media (max-width: 1240px) {
  .nav .links a { padding: 8px 9px; }
  .stage .auth { flex-basis: 380px; }
  .reel .wrap { grid-template-columns: 1fr; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arena { grid-template-columns: minmax(0, 1fr); }
  .detail { grid-column: 1; grid-row: auto; }
}
@media (max-width: 1100px) {
  .pitch .eyebrow { display: none; } .logo img { width: 230px; }     /* iPad ngang: chữ không đè nhóm tướng */
  .nav .links, .nav .end .ghost:not(.cd_chip) { display: none; }
  .nav .menu { display: grid; place-items: center; }
  .nav .sheet:not([hidden]) { display: grid; gap: 2px; padding: 8px 16px 16px; background: rgba(12, 9, 6, .97); border-bottom: 1px solid var(--line); }
  .nav .sheet a { padding: 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 500; }
}
/* điện thoại / máy tính bảng dọc: sân khấu trên, logo đè trên, hộp đăng nhập đè mép dưới sân khấu */
@media (max-width: 920px) {
  :root { --pad: 16px; }
  .nav .in { height: 56px; gap: 12px; }
  .nav .brand { font-size: 20px; } .nav .brand img { width: 34px; }
  .nav .end .btn.primary:not(.go) { display: none; }
  .nav .end .music { display: grid; }
  .nav .brand span { display: none; }
  .hero, html.gl.mo .hero { height: auto; min-height: 0; }
  .stage { position: relative; height: auto; min-height: 0; overflow: visible; background: var(--ink-1); }
  .stage .scene { position: relative; height: min(76svh, 700px); min-height: 420px; overflow: hidden; }
  .stage .still, .stage canvas.gl, .stage .veil { z-index: 0; }
  .stage .veil { background: linear-gradient(180deg, rgba(8, 6, 4, .55) 0%, rgba(8, 6, 4, 0) 22%, rgba(8, 6, 4, 0) 70%, var(--ink-1) 100%); }
  .stage .in { position: static; display: grid; justify-items: center; padding: 0 16px 28px; pointer-events: auto; }
  .stage .auth { order: 1; width: 100%; max-width: 440px; margin: -40px auto 0; z-index: 2; padding: 22px 22px 18px; }
  .auth .view:has(#refKeep:not([hidden])) .sub, .auth .view:has(#obEarly:not([hidden])) .sub { display: none; }   /* dải lời mời / ghi chú Open Beta đã nói ý này — giữ nút Google trong màn đầu */
  .auth .keep { margin: -6px -4px 12px; }
  .auth h2 { font-size: 24px; }
  .auth .sub { margin: 8px 0 14px; }
  .pitch { display: contents; }
  .pitch .mark { position: absolute; left: 0; right: 0; top: 60px; z-index: 2; display: grid; justify-items: center; text-align: center; pointer-events: none; }
  .pitch .eyebrow { display: none; }
  .logo img { width: min(72vw, 340px); }
  .pitch .realm { margin-top: 0; font-size: 17px; }
  .pitch .cd, .pitch .tagline, .pitch .facts { order: 2; max-width: 440px; text-align: center; }
  .pitch .tagline { margin-top: 20px; font-size: 15px; color: #e6dcc4; }
  .pitch .facts { justify-content: center; }
  .cd .t { justify-content: center; }
  .plate { padding: 3px 8px 3px 4px; gap: 6px; }
  .plate img { width: 22px; height: 22px; }
  .plate b { font-size: 14px; }
  .plate small { display: none; }
  .stage .invite { order: 2; width: 100%; max-width: 440px; margin: 16px auto 0; }   /* lời mời dưới hộp đăng nhập: nút Google vẫn thấy ngay */
  .stage .plates, .stage .rune_btn, .stage .summon_btn { z-index: 1; }
  .sec { padding: 80px 16px; }
  .reel { padding-top: calc(340px * var(--cps, 1) + 16px); }
  .picks { grid-template-columns: 1fr; }
  .vow { padding: 80px 20px 96px; }
  .world { height: 320svh; }
  .w_head, .zones { left: 20px; right: 20px; width: auto; max-width: none; }
  .zones { top: auto; bottom: 108px; translate: none; }
  .zone { top: auto; bottom: 0; translate: none; }
  .zone h3 { font-size: 40px; }
  .zone p { font-size: 15.5px; }
  .w_head { top: 76px; translate: none; }
  html.gl.mo .world:not(.flat) .w_head { isolation: isolate; }                           /* nền tối riêng cho khối chữ: tắt cùng khối, không che bản đồ toàn cảnh cuối phần */
  html.gl.mo .world:not(.flat) .w_head::before { content: ""; position: absolute; z-index: -1; inset: -76px -20px -44px; pointer-events: none; background: linear-gradient(180deg, rgba(8, 6, 4, .92) 0%, rgba(8, 6, 4, .88) calc(100% - 44px), rgba(8, 6, 4, 0) 100%); }
  .meter { left: 20px; right: 20px; width: auto; bottom: 28px; }
  .place { left: 16px; right: 16px; top: auto; bottom: 20px; translate: none; width: auto; padding: 16px 16px 14px; }
  .place h3 { font-size: 21px; }
  .pin .name, .pin[aria-pressed="true"] .name { display: none; }        /* tên địa điểm hiện ở thẻ dưới */
  .pin_stage .shade { background: linear-gradient(180deg, var(--ink-1) 0%, rgba(18, 14, 10, .2) 18%, rgba(18, 14, 10, .15) 50%, rgba(8, 6, 4, .82) 78%, var(--ink-1) 100%); }
  .pin_stage .shade::before { display: none; }
  html.rm .zones, html.nogl .zones, .world.flat .zones { grid-template-columns: 1fr 1fr; }
  html.rm .place, html.nogl .place, .world.flat .place { position: static; }
  .races { justify-content: flex-start; margin-right: -16px; padding-right: 16px; }
  .race_tab { width: 76px; font-size: 12px; }
  .race_tab img { width: 44px; height: 44px; }
  .lineup { height: 290px; padding-bottom: 28px; }
  .ch { flex: 1 1 0; min-width: 0; }
  .ch img.pic { height: 210px; }
  .lineup .pl { height: 280px; width: 150px; }
  .ch .nm { font-size: 13px; padding: 2px 6px; }
  .detail { padding: 20px 16px 16px; }
  .detail h3 { font-size: 26px; }
  .finale { padding: 96px 20px 80px; }
  .specs { flex-direction: column; align-items: center; gap: 14px; }
  .specs li { width: 100%; max-width: 320px; }
  .foot .wrap { grid-template-columns: 1fr; }
  .wall img { height: 160px; }
}
@media (min-width: 921px) { .stage .scene { position: absolute; inset: 0; z-index: -2; } }
/* điện thoại: mọi nút / ô chạm ≥ 44 px */
@media (max-width: 920px), (pointer: coarse) {
  .nav .lang, .nav .lang select, .nav .end .btn { min-height: 44px; }
  .nav .brand { min-width: 44px; min-height: 44px; justify-content: center; }
  .foot .link, .back, .check { min-height: 44px; }
  .resend .link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
  .summon_btn { min-height: 44px; }
}
@media (max-width: 400px) {
  .stage .auth { padding: 20px 18px 16px; }
  .logo img { width: 64vw; }
  .auth h2 { font-size: 24px; }
  .otp { gap: 6px; }
  .otp input { height: 50px; font-size: 22px; }
}
/* điện thoại dọc thấp (360 × 640): sân khấu ngắn lại để nút Google vẫn trong màn đầu cả khi có dải lời mời / Open Beta */
@media (max-width: 920px) and (max-height: 700px) and (orientation: portrait) {
  .stage .scene { height: 70svh; min-height: 400px; }
  .pitch .mark { top: 56px; }
}
/* điện thoại ngang (khung chạm thấp): 2 cột — giới thiệu gọn trái, hộp đăng nhập phải ngay dưới thanh trên (giống home.css dòng 463–469) */
@media (hover: none) and (pointer: coarse) and (max-width: 1024px) and (max-height: 500px) {
  .nav .in { height: 52px; }
  .nav .end .go:not([hidden]) { display: inline-flex; }
  .nav .sheet:not([hidden]) { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* màn thấp: 6 mục chia 3 cột (chồng dọc tràn khung 293 px) */
  .hero, html.gl.mo .hero { height: auto; min-height: 0; }
  .stage { position: relative; height: auto; min-height: 100svh; overflow: hidden; background: #0b0814; }
  .stage .scene { position: absolute; inset: 0; height: auto; min-height: 0; }
  .stage .veil { background: linear-gradient(90deg, rgba(8, 6, 4, .55) 0%, rgba(8, 6, 4, 0) 40%, rgba(8, 6, 4, .3) 60%, rgba(8, 6, 4, .82) 100%); }
  .stage .in { position: relative; display: flex; flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 60px 20px 18px; }
  .pitch { display: block; flex: 1 1 0; text-align: left; align-self: flex-start; }
  .pitch .mark { position: static; display: block; text-align: left; }
  .pitch .eyebrow { display: none; }
  .pitch .tagline { margin-top: 8px; font-size: 14px; line-height: 1.5; text-align: left; }
  .pitch .facts { justify-content: flex-start; margin-top: 10px; }
  .facts li:last-child { display: none; }
  .logo img { width: min(36vw, 300px); }
  .pitch .realm { font-size: 16px; }
  .stage .auth { flex: 0 0 clamp(330px, 44vw, 372px); max-width: none; margin: 0; padding: 14px 18px 12px; }
  .auth h2 { font-size: 21px; }
  .auth .rule { margin: 6px auto 0; }
  .auth .sub { margin: 6px 0 10px; font-size: 13.5px; line-height: 1.45; }
  .auth .btn.lg { min-height: 46px; }
  .auth form .btn { margin-top: 14px; }
  .auth .or { margin: 8px 0; }
  .auth .legal { margin-top: 10px; }
  .stage .plates, .stage .summon_btn, .stage .rune_btn { display: none; }
  html.gl.mo .reel { margin-top: 0; padding-top: calc(340px * var(--cps, 1) + 16px); background: var(--ink-1); }
  html.gl.mo .cl_edge { display: block; }
  .nav .end .music { display: grid; }
  .world { height: 300svh; }
  .w_head h2 { font-size: 28px; } .w_head { top: 64px; }
  .zones { bottom: 70px; } .zone h3 { font-size: 30px; } .zone p { font-size: 14px; margin-top: 6px; }
  .meter { bottom: 14px; }
  .lineup { height: 250px; } .ch img.pic { height: 190px; }
  /* đang đếm Open Beta (s177 · NM4 — chép từ trang trước s400): khối đếm gọn, bỏ câu giới thiệu để chip + hộp phải lên gần */
  .cd { margin-top: 10px; }
  .cd .k { display: none; }
  .cd .u { width: 72px; padding: 7px 0 5px; }
  .cd .u b { font-size: 34px; }
  .cd .u small { margin-top: 3px; font-size: 10.5px; }
  .cd .sep { padding-top: 6px; font-size: 24px; }
  .cd .at { margin-top: 8px; font-size: 13px; }
  .cd .bar { margin: 8px 0 0; }
  .cd .done { font-size: 30px; }
  .pitch .cd:not([hidden]) ~ .tagline { display: none; }
  .keepset { gap: 6px; } .keepset li { padding: 4px 9px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
html.rm *, html.rm *::before, html.rm *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
html.rm .motes { display: none; }
