/* GameF — trang tài khoản cá nhân /tai-khoan/ kiểu "Google Account": thanh mục trái + khối nội dung.
   Dùng biến màu của gamef.css (nạp trước). Điện thoại: thanh mục thành thanh tab cuộn ngang ở trên. */
.tk-nhan { font-weight: 500; margin-left: 2px; }
.tk-khung {
  width: min(1060px, 100%); display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start;
}
.giua:has(.tk-khung:not([hidden])) { justify-items: stretch; }
.giua:has(.tk-khung:not([hidden])) .tk-khung { margin: 0 auto; }

.tk-ben { position: sticky; top: 72px; display: grid; gap: 2px; }
.tk-ben a {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 0 99px 99px 0; margin-left: -16px;
  color: var(--chu); text-decoration: none; font-weight: 500; white-space: nowrap;
}
.tk-ben a span { width: 22px; text-align: center; flex: none; }
.tk-ben a:hover { background: var(--mat2); }
.tk-ben a[aria-current="page"] { background: var(--nhan-nhat); color: var(--nhan); font-weight: 700; }
.tk-ben a.muc-nguy { color: var(--do); }
.tk-ben a.muc-nguy[aria-current="page"] { background: color-mix(in srgb, var(--do) 14%, transparent); color: var(--do); }
.tk-ben .muc-phu { margin-top: 10px; border-top: 1px solid var(--vien); border-radius: 0; padding-top: 14px; color: var(--phu); }

.tk-noi { min-width: 0; }
.tk-khoi { display: grid; gap: 16px; }
.tk-khoi > h2 { margin: 0; font-size: 26px; font-weight: 600; }
.tk-khoi > h2 + .phu { margin-top: -8px; }
.tk-hop { background: var(--mat); border: 1px solid var(--vien); border-radius: 14px; padding: 20px; display: grid; gap: 12px; min-width: 0; }
.tk-hop h3 { margin: 0; font-size: 16px; }
.tk-hop textarea { resize: vertical; min-height: 72px; }

/* Trang chủ */
.tk-dau { justify-content: center; flex-direction: column; text-align: center; gap: 10px; padding-top: 8px; }
.tk-dau h1 { margin: 0; font-size: 22px; }
.tk-chao { margin: 0; text-align: center; font-size: 26px; font-weight: 600; }
.tk-chao + .phu { text-align: center; margin-top: -8px; }
.tk-the-luoi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tk-the {
  display: grid; gap: 4px; align-content: start; padding: 18px; border: 1px solid var(--vien); border-radius: 14px;
  background: var(--mat); color: var(--chu); text-decoration: none; min-width: 0;
}
.tk-the:hover { border-color: var(--nhan); box-shadow: 0 2px 10px rgba(79, 70, 229, .12); }
.tk-the-icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.tk-the b { font-size: 13px; color: var(--phu); font-weight: 600; }
.tk-the > span:not(.tk-the-icon) { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.tk-the small { color: var(--phu); font-size: 12px; overflow-wrap: anywhere; }

/* Thông tin */
.tk-dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; }
.tk-dl dt { color: var(--phu); font-size: 13px; }
.tk-dl dd { margin: 0; overflow-wrap: anywhere; }
.tk-dl code, .ds-hop a { font: 600 14px ui-monospace, Consolas, monospace; }

/* Bảo mật */
.an-mat { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.do-manh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: -4px; }
.do-manh i { height: 5px; border-radius: 3px; background: var(--mat2); transition: background .15s; }
.do-manh[data-diem="0"] i:nth-child(-n+1) { background: var(--do); }
.do-manh[data-diem="1"] i:nth-child(-n+1) { background: var(--do); }
.do-manh[data-diem="2"] i:nth-child(-n+2) { background: var(--vang); }
.do-manh[data-diem="3"] i:nth-child(-n+3) { background: var(--xanh); }
.do-manh[data-diem="4"] i { background: var(--xanh); }
.do-manh + .phu { margin-top: -6px; min-height: 1.5em; }
#mk-khop { margin-top: -6px; min-height: 1.5em; }
#mk-khop.tot, .phu.tot { color: var(--xanh); }
#mk-khop.xau, .phu.xau { color: var(--do); }
.ds-phien, .ds-game, .ds-hop, .tk-buoc { margin: 0; padding: 0; }
.ds-phien, .ds-game, .ds-hop { list-style: none; display: grid; }
.dong-phien { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--vien); }
.dong-phien:first-child { border-top: 0; }
.dong-phien .bieu-tuong { font-size: 22px; width: 40px; height: 40px; border-radius: 50%; background: var(--mat2); display: grid; place-items: center; flex: none; }
.dong-phien.hien-tai .bieu-tuong { background: var(--nhan-nhat); }
.dong-phien .noi-dung { flex: 1; min-width: 0; display: grid; }
.dong-phien .noi-dung .phu { overflow-wrap: anywhere; }
.nut.nho { padding: 5px 10px; font-size: 13px; }

/* Tiến trình */
.khoi-ma { background: var(--mat2); }
.khoi-ma .ma-dong-bo { flex-wrap: wrap; }
.tk-buoc { padding-left: 22px; display: grid; gap: 6px; }
.dong-game { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--vien); }
.dong-game:first-child { border-top: 0; }
.dong-game .phu { grid-column: 1; }
.dong-game .huy-hieu { grid-column: 2; grid-row: 1 / span 2; margin: 0; }

/* Hộp thư */
.ds-hop li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--vien); flex-wrap: wrap; }
.ds-hop li:first-child { border-top: 0; }
.ds-hop a { color: var(--nhan); text-decoration: none; overflow-wrap: anywhere; }

/* Vùng nguy hiểm */
.tk-nguy { border-color: color-mix(in srgb, var(--do) 45%, var(--vien)); }
.tk-nguy h3 { color: var(--do); }
.tk-nguy p { margin: 0; }
.nut.nguy-dac { background: var(--do); color: #fff; }
.nut.nguy-dac:disabled { opacity: .45; cursor: not-allowed; }

/* Điện thoại / máy tính bảng hẹp: thanh mục thành thanh tab cuộn ngang dính trên */
@media (max-width: 760px) {
  .giua:has(.tk-khung:not([hidden])) { padding: 0 0 40px; }
  .tk-khung { grid-template-columns: 1fr; gap: 0; }
  .tk-ben {
    top: 56px; z-index: 2; display: flex; overflow-x: auto; gap: 0; background: var(--mat); border-bottom: 1px solid var(--vien);
    padding: 0 8px; scrollbar-width: none;
  }
  .tk-ben::-webkit-scrollbar { display: none; }
  .tk-ben a { margin: 0; border-radius: 0; padding: 12px 12px 10px; border-bottom: 3px solid transparent; gap: 6px; font-size: 13px; }
  .tk-ben a[aria-current="page"] { background: none; border-bottom-color: var(--nhan); }
  .tk-ben a.muc-nguy[aria-current="page"] { background: none; border-bottom-color: var(--do); }
  .tk-ben .muc-phu { margin: 0; border-top: 0; padding-top: 12px; }
  .tk-noi { padding: 16px; }
  .tk-khoi > h2, .tk-chao { font-size: 21px; }
  .tk-hop { padding: 16px; }
  .tk-dl { grid-template-columns: 1fr; gap: 2px; }
  .tk-dl dd { margin-bottom: 8px; }
  .tk-dau { flex-direction: column; }
  .khoi-ma .ma-dong-bo code { flex-basis: 100%; font-size: 16px; }
  .thuong-hieu .tk-nhan { display: none; }
}

/* Bảo vệ 2 bước + đăng nhập bằng điện thoại (khoi-hai-buoc.js, dn-hai-buoc.js) */
.qr-hb { display: flex; justify-content: center; margin: 8px 0; }
.qr-hb svg { width: 200px; height: 200px; max-width: 70vw; max-height: 70vw; border-radius: 8px; border: 1px solid var(--vien); background: #fff; }
.khoa-hb { word-break: break-all; user-select: all; font-size: .95em; }
.hb-ma-dp { border: 1px dashed var(--vang); border-radius: 10px; padding: 12px; margin: 10px 0; }
.ds-ma-dp { columns: 2; column-gap: 24px; margin: 8px 0; padding-left: 28px; }
.ds-ma-dp code { font-size: 1.05em; letter-spacing: .04em; user-select: all; }
.so-khop { font-size: 3rem; font-weight: 800; text-align: center; letter-spacing: .08em; margin: 8px 0; color: var(--nhan); }
#khu-khach .nut-chu { margin-top: 4px; text-align: left; }
