/* Màn đăng nhập v3.0 — phần gắn vào game (nạp SAU login-v3.css và css game). */
#title-screen { padding: 0; background: #06070d; font-family: var(--font); }
#title-screen .ls-status { margin: 0; font: 600 13.5px/1.4 var(--font); color: var(--muted); }
#title-screen .ls-status:empty { display: none; }
#title-screen[data-state='in'] .ls-status { display: none; }
#title-screen[data-state='closed'] .ls-status { font: 700 16px/1.35 var(--font); color: #ffc0b8; }
#title-screen #online-retry { align-self: flex-start; }
#title-screen .terms.terms-need { border-color: var(--warn); background: #2a1220; animation: ls-shake .26s steps(4) 2; }
#title-screen .terms.terms-need + .terms-hint { display: block; }
#title-screen .segbar i[data-on] { background: linear-gradient(180deg, #b5ffcf, #2bff8f 45%, #12b860); box-shadow: 0 0 8px rgba(43, 255, 143, .55); }
#title-screen #t-save-info { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#title-screen #t-save-info b { font-weight: 700; }
#title-screen #t-continue .lb { min-width: 0; overflow: hidden; }
#title-screen #online-account-kind { white-space: pre-line; }
#title-screen .who .ava.noav { background: radial-gradient(circle at 50% 40%, #3b2e55, #1c1430); }
#title-screen .who .ava.noav canvas { visibility: hidden; }
#title-screen .who .ava.noav::after { content: ''; position: absolute; inset: 14px; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='4' y='6' width='24' height='16' rx='2' fill='%2356b8ff' stroke='%23120a1c' stroke-width='2'/%3E%3Crect x='7' y='9' width='18' height='10' fill='%23123a5a'/%3E%3Cpath d='M12 26h8M16 22v4' stroke='%23120a1c' stroke-width='2.4'/%3E%3C/svg%3E"); }
#title-screen .ls-upd { display: inline-flex; gap: 4px; }
#title-screen .ls-upd .tbtn[hidden] { display: none; }
/* chặn style .btn của game lọt vào hệ nút mới (game: cột dọc, bóng, mờ 45% khi khoá, lọc sáng khi rê) */
#title-screen .btn { flex-direction: row; box-shadow: none; filter: none; opacity: 1; font-family: var(--display); line-height: 1; }
#title-screen .btn:hover, #title-screen .btn:disabled, #title-screen .btn[aria-disabled='true'] { filter: none; opacity: 1; }
#title-screen .btn.cant::after { content: ''; }
/* lời nhắc mặc định của online.js trùng câu dẫn → ẩn; câu lỗi/khác thì giữ */
#title-screen .ls-status.dup { display: none; }
/* game có .lb toàn cục (display:flex; height:100%) và ẩn #online-account-kind ở màn cũ */
#title-screen .btn .lb { display: inline-flex; height: auto; }
#title-screen #online-account-kind { display: block; }
/* game: #title-screen :is(#online-auth,#t-continue,#t-new,#t-save-info){grid-column:1/-1} → kéo thẻ phủ cả lưới (khổ ngang) */
#title-screen #online-auth.ls-card { grid-area: card; }
#title-screen #t-continue.btn, #title-screen #t-new.btn, #title-screen #t-save-info { grid-column: auto; }

/* 14/11: lý do nút VÀO QUÁN đang khoá (chờ thiết bị khác lưu, đang tải cloud…) */
#title-screen .ls-in-status { margin: -2px 0 0; font: 600 13px/1.35 var(--font); color: #ffd98a; text-align: center; }
#title-screen .ls-in-status[hidden] { display: none; }

/* 14/11: điện thoại dọc màn thấp (Safari còn thanh địa chỉ) — thẻ + hàng Cộng đồng/Cài game phải lọt hết trong màn hình */
@media (orientation: portrait) and (max-width: 899px) and (max-height: 760px) {
  #title-screen .ls { gap: 8px; padding-top: calc(max(8px, var(--safe-t)) + 6px); padding-bottom: max(10px, var(--safe-b)); }
  #title-screen .ls-logo { width: min(78vw, 320px); }
  #title-screen .card-head { padding: 8px 12px 7px 18px; }
  #title-screen .card-body { padding: 10px 12px 12px; gap: 8px; }
  #title-screen .s-xl { --h: 50px; --fs: 18px; --lip: 5px; }
  #title-screen .s-l { --h: 46px; --fs: 16px; }
  #title-screen .st-in .row2 .btn, #title-screen .ls-dock .btn { --h: 40px; --fs: 14px; --lip: 4px; }
  #title-screen .who { grid-template-columns: 52px 1fr; gap: 10px; padding: 6px 8px; }
  #title-screen .who .ava { width: 52px; height: 52px; }
  #title-screen .who .ava canvas { width: 46px; height: 46px; }
  #title-screen .who b { font-size: 16px; }
  #title-screen .card-foot .tbtn { min-height: 32px; padding: 4px 6px; font-size: 13px; }
  #title-screen .lead small { display: none; }
  #title-screen .terms { padding: 7px 10px; font-size: 12px; line-height: 1.35; }
}
@media (orientation: portrait) and (max-width: 899px) and (max-height: 640px) {
  #title-screen .ls-logo { width: min(64vw, 260px); }
  #title-screen .ls { gap: 6px; padding-top: calc(max(6px, var(--safe-t)) + 2px); }
}
@media (orientation: portrait) and (max-width: 899px) and (max-height: 620px) {
  #title-screen .ls-logo { width: min(56vw, 230px); }
  #title-screen .s-xl { --h: 46px; --fs: 17px; }
  #title-screen .ls-in-status { font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  #title-screen .who { padding: 4px 8px; }
  #title-screen .card-body { gap: 7px; padding: 8px 12px 10px; }
}
