/* ================================================================
   BẢN ĐỒ ẢI, KẾT QUẢ ẢI, ĐỘI HÌNH, TỬU LÂU CHIÊU MỘ
   ================================================================ */
#tokens { color: #f1d38a; text-shadow: 0 2px 4px #000; }

/* ---------- Bản đồ ải ---------- */
.stage-map .chapter-title { position: absolute; left: 3%; top: 58px; z-index: 2; font-size: clamp(22px, 3vw, 40px); }
.stage-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.stage-path polyline {
  fill: none; stroke: rgba(241, 211, 138, .75); stroke-width: 3; stroke-dasharray: 10 8;
  vector-effect: non-scaling-stroke; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .8));
}
.node {
  position: absolute; z-index: 3; transform: translate(-50%, -50%); padding: 0; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; cursor: pointer; color: #fff3d6;
}
.node .num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font-family: var(--font-title); font-weight: 700; font-size: 16px;
  background: radial-gradient(#9b2c22, #5e1610); border: 2px solid #e9c46a;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .45), 0 6px 14px rgba(0, 0, 0, .6);
}
.node.boss .num { width: 74px; height: 74px; font-size: 30px; background: radial-gradient(#3a1a40, #120610); border-color: #f1d38a; }
.node.cleared .num { background: radial-gradient(#7a5a20, #3e2a0c); }
.node.locked { cursor: not-allowed; }
.node.locked .num { background: radial-gradient(#4a4a4a, #222); border-color: #777; color: #aaa; filter: grayscale(1); }
.node.current .num { animation: glow 1.4s ease-in-out infinite; }
.node.selected .num { outline: 3px solid #fff3d6; outline-offset: 3px; }
.node-stars { margin-top: 4px; font-size: 14px; letter-spacing: 1px; color: #f1d38a; text-shadow: 0 1px 3px #000; }
.node-name { font-size: 13px; font-weight: 700; text-shadow: 0 1px 3px #000, 0 0 6px #000; white-space: nowrap; }
.node:hover:not(.locked) .num { filter: brightness(1.2); }
/* Nút ải căn giữa bằng transform: lúc nhấn giữ nguyên transform (kiểu "lún 1px" chung của mọi nút sẽ đè mất
   translate(-50%,-50%) làm nút nhảy khỏi con trỏ, nhả chuột ra là mất cú bấm). Chỉ cho vòng tròn lún nhẹ. */
.node:active:not(:disabled) { transform: translate(-50%, -50%); }
.node:active:not(:disabled) .num { transform: scale(.94); }
.node:focus { outline: none; }
.node:focus-visible .num { outline: 3px solid #fff3d6; outline-offset: 3px; }

.stage-panel {
  position: absolute; right: 3%; top: 64px; z-index: 4; width: min(360px, 34%); max-height: calc(100% - 200px); overflow-y: auto;
  padding: 16px 18px; border-radius: 10px; color: #fff3d6;
  background: linear-gradient(rgba(28, 19, 11, .9), rgba(12, 8, 5, .94)); border: 1px solid rgba(233, 196, 106, .7);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .55);
}
.sp-id { color: #e9c46a; font-size: 12px; letter-spacing: 2px; }
.sp-title { font-family: var(--font-title); font-size: 22px; font-weight: 700; margin: 2px 0; }
.sp-stars { color: #f1d38a; font-size: 20px; letter-spacing: 2px; }
.sp-rec { font-size: 13px; color: #cfe3b0; margin: 4px 0; }
.sp-rec.warn { color: #ff9e8a; }
.sp-tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: rgba(233, 196, 106, .2); margin: 4px 0; }
.sp-label { margin-top: 10px; font-size: 12px; color: #e9c46a; letter-spacing: 1px; text-transform: uppercase; }
.sp-enemies { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.sp-enemy { display: flex; flex-direction: column; align-items: center; min-width: 74px; max-width: 120px; font-size: 11px; text-align: center; line-height: 1.25; }
/* Ảnh rộng ngang (sói, rắn) thì thu nhỏ cho vừa ô, không tràn ra ngoài bảng */
.sp-enemy .thumb { height: 64px; max-width: 120px; object-fit: contain; object-position: bottom; transform: scaleX(-1); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .6)); }
.sp-reward, .sp-note { font-size: 13px; margin-top: 4px; }
.sp-note { color: #d6c6a4; }
.sp-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.sp-actions .btn-game { flex: 1; padding: 9px 10px; font-size: 14px; }
.place.locked { filter: grayscale(.9) brightness(.6); cursor: not-allowed; }
.place .name small { font-weight: 400; color: #f1d38a; }

/* ---------- Kết quả ải ---------- */
.result-screen { position: absolute; inset: 0; display: grid; place-items: center; }
.result-screen .scene-bg { filter: brightness(.45) blur(2px); }
.result-card {
  position: relative; width: min(520px, 92%); padding: 24px 28px; text-align: center; border-radius: 12px; color: #fff3d6;
  background: linear-gradient(rgba(28, 19, 11, .92), rgba(12, 8, 5, .96)); border: 1px solid #e9c46a;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, .4), 0 20px 50px rgba(0, 0, 0, .6); animation: fade-up .5s both;
}
.result-card h1 { margin: 0; font-size: 44px; letter-spacing: 6px; color: #f1d38a; text-shadow: 0 3px 0 #6e1d16, 0 0 24px rgba(233, 196, 106, .6); }
.result-card.lose h1 { color: #e8b0a4; text-shadow: 0 3px 0 #3a0a06; }
.result-stars span { font-size: 54px; color: #4a3a2a; display: inline-block; }
.result-stars span.on { color: #f1d38a; animation: star-pop .5s both; text-shadow: 0 0 18px rgba(241, 211, 138, .8); }
@keyframes star-pop { from { transform: scale(2.4) rotate(-40deg); opacity: 0; } }
.result-name { margin: 4px 0 10px; color: #eadfc4; }
.result-card ul { list-style: none; padding: 0; margin: 0 0 16px; text-align: left; font-size: 14px; line-height: 1.8; }
.result-card li::before { content: '◆ '; color: #e9c46a; }
.result-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

/* ---------- Đội hình ---------- */
.panel.wide { max-width: 1100px; }
.panel h2 small { font-size: 14px; color: var(--ink-soft); font-family: var(--font-ui); }
.f-layout { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.f-grid { display: grid; grid-template-columns: repeat(2, 130px); gap: 8px; }
.f-head { text-align: center; font-size: 12px; font-weight: 700; color: var(--red-dark); letter-spacing: 1px; }
.f-cell {
  position: relative; height: 140px; padding: 4px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  background: rgba(255, 250, 240, .7); border: 2px dashed var(--line); border-radius: 10px;
}
.f-cell.filled { border-style: solid; background: linear-gradient(#fffaf0, #efe2c4); }
.f-cell.picked { border-color: var(--red); box-shadow: 0 0 0 3px rgba(155, 44, 34, .25); }
.f-cell .thumb { height: 92px; }
.f-name { font-size: 12px; font-weight: 700; }
.f-lv { font-size: 11px; color: var(--ink-soft); }
.f-plus { font-size: 30px; color: var(--line); margin: auto; }
.f-detail { flex: 1; min-width: 260px; padding: 10px 14px; border-radius: 10px; background: #fffaf0; border: 1px solid var(--line); }
.fd-head { display: flex; gap: 12px; align-items: flex-end; }
.fd-head > div { flex: 1; }
.thumb.big { height: 130px; }
.fd-name { font-size: 18px; font-weight: 700; }
.fd-lv { font-size: 13px; color: var(--ink-soft); }
.skill-list li.later { color: var(--ink-soft); font-style: italic; }
.roster { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.r-card {
  position: relative; padding: 6px 4px; display: flex; flex-direction: column; align-items: center;
  background: linear-gradient(#fffaf0, #efe2c4); border: 2px solid var(--line); border-radius: 10px;
}
.r-card { border-color: var(--g, var(--line)); background: linear-gradient(#fffaf0, color-mix(in srgb, var(--g, #efe2c4) 22%, #efe2c4)); }
.r-card.picked { box-shadow: 0 0 0 3px rgba(155, 44, 34, .35); }
.r-card .thumb { height: 86px; }
.r-grade { position: absolute; top: 4px; right: 4px; }
.r-stars { color: #d4a017; font-size: 11px; letter-spacing: 1px; }
.r-name { font-size: 13px; font-weight: 700; }
.r-lv { font-size: 11px; color: var(--ink-soft); }
.r-tag { position: absolute; top: 4px; left: 4px; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: var(--red); color: #fff; }
.f-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; justify-content: flex-end; }
.f-actions .btn-game { padding: 8px 18px; font-size: 14px; }

/* ---------- Tửu lâu chiêu mộ ---------- */
.recruit-screen { position: absolute; inset: 0; color: #fff3d6; }
.recruit-screen .featured { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; display: flex; justify-content: center; align-items: flex-end; gap: 2%; }
.recruit-screen .featured .hero { height: 100%; display: flex; align-items: flex-end; }
.recruit-screen .featured .hero:nth-child(2) { height: 86%; }
.recruit-screen .featured canvas { height: 112%; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .6)); }
.recruit-box {
  position: absolute; left: 50%; top: 64px; transform: translateX(-50%); z-index: 3; width: min(760px, 94%);
  padding: 16px 20px; text-align: center; border-radius: 12px;
  background: linear-gradient(rgba(28, 19, 11, .88), rgba(12, 8, 5, .93)); border: 1px solid rgba(233, 196, 106, .7);
}
.recruit-box h1 { margin: 0; color: #f1d38a; font-size: clamp(26px, 3.6vw, 42px); text-shadow: 0 3px 0 #6e1d16; }
.recruit-box p { margin: 4px 0; color: #eadfc4; }
.recruit-box .rates { font-size: 12px; color: #d6c6a4; }
.recruit-box .have { margin: 8px 0; }
.recruit-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.recruit-actions .btn-game { padding: 9px 16px; font-size: 14px; }
.pull-results {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; background: rgba(5, 3, 2, .82);
}
.pull-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 96%; }
.pull-card {
  width: 128px; padding: 8px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: 10px;
  background: linear-gradient(#3a2a1a, #1a120a); border: 2px solid #8a7a5a; color: #fff3d6; animation: flip-in .6s both;
}
.pull-card { border-color: var(--g, #8a7a5a); box-shadow: 0 0 16px color-mix(in srgb, var(--g, #8a7a5a) 55%, transparent);
  background: linear-gradient(color-mix(in srgb, var(--g, #3a2a1a) 35%, #2a1c10), #140d07); }
.pull-card.shine { box-shadow: 0 0 30px var(--g), 0 0 8px var(--g) inset; }
.pull-card .thumb { height: 110px; }
.pc-stars { color: #f1d38a; letter-spacing: 1px; }
.pc-name { font-weight: 700; font-size: 14px; }
.pc-tag { font-size: 11px; color: #cfe3b0; }
@keyframes flip-in { from { transform: perspective(600px) rotateY(90deg); opacity: 0; } }

@media (max-width: 760px) and (orientation: portrait) {
  .stage-map .chapter-title { top: 52px; }
  .stage-panel { left: 3%; right: 3%; top: auto; bottom: 120px; width: auto; max-height: 46%; }
  .f-grid { grid-template-columns: repeat(2, 110px); }
  .f-cell { height: 120px; }
  .f-cell .thumb { height: 76px; }
  .recruit-screen .featured { height: 46%; }
}

/* ---------- Tài khoản ---------- */
.acc-list { display: flex; flex-direction: column; gap: 10px; }
.acc-card {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px;
  background: #fffaf0; border: 1px solid var(--line);
}
.acc-card.current { border: 2px solid var(--gold); background: #fff6e0; }
.acc-main { flex: 1; min-width: 240px; }
.acc-name { font-size: 18px; font-weight: 700; }
.acc-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--red); color: #fff; vertical-align: middle; }
.acc-line { font-size: 14px; margin-top: 2px; }
.acc-line.dim { color: var(--ink-soft); font-size: 12px; }
.acc-actions { display: flex; gap: 6px; }
.acc-actions .btn-game { padding: 7px 16px; font-size: 14px; }
.acc-new { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.acc-new input {
  flex: 1; min-width: 200px; padding: 9px 12px; font: inherit; border-radius: 6px;
  border: 1px solid var(--line); background: #fffaf0;
}
#nav-account { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Tài khoản online: form đăng nhập / đăng ký, chọn bản khi bị lưu chen */
.accounts-screen h3 { margin: 18px 0 8px; }
.accounts-screen .panel > button[data-act] { margin: 10px 8px 0 0; }
.acc-note code { padding: 1px 5px; border-radius: 4px; background: #fffaf0; border: 1px solid var(--line); }
.acc-online { display: flex; flex-direction: column; gap: 8px; max-width: 420px; }
.acc-online input:not([type="checkbox"]) {
  padding: 9px 12px; font: inherit; border-radius: 6px; border: 1px solid var(--line); background: #fffaf0;
}
.acc-online:not([data-mode="register"]) .reg-only { display: none; }
.acc-tabs { display: flex; gap: 6px; }
.acc-tabs button { flex: 1; }
.acc-online[data-mode="login"] .acc-tabs [data-mode="login"],
.acc-online[data-mode="register"] .acc-tabs [data-mode="register"] {
  background: var(--red); color: #fff7e8; border-color: var(--red-dark);
}
.acc-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.acc-check input { margin-top: 3px; }
.acc-error { min-height: 1.2em; color: var(--red); font-size: 14px; font-weight: 700; }
.acc-online .btn-game { align-self: flex-start; }
.acc-conflict {
  flex-basis: 100%; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.5;
  background: #fbe9d9; border: 1px solid var(--red);
}
.acc-conflict .acc-actions { margin-top: 8px; flex-wrap: wrap; }

/* Bảng xếp hạng */
.rank-wrap { overflow-x: auto; }
.rank-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rank-table th { text-align: left; font-size: 13px; color: var(--ink-soft); border-bottom: 2px solid var(--line); padding: 6px 8px; }
.rank-table td { padding: 8px; border-bottom: 1px solid var(--line); }
.rank-table tr.you td { background: #fff6e0; font-weight: 700; }
.rank-no { width: 44px; text-align: center; font-size: 18px; }
.rank-stars { white-space: nowrap; }
@media (max-width: 520px) { .rank-stage { display: none; } }
.rank-screen .panel > button { margin-top: 14px; }

/* ---------- Bảng nhân vật: thẻ Thông tin / Tiềm năng / Trang bị ---------- */
.fd-role { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 8px; background: var(--red-dark); color: #fff3d6; }
.fd-tabs { display: flex; gap: 4px; margin: 10px 0 8px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.fd-tab { position: relative; padding: 5px 12px; font-size: 14px; border-radius: 8px 8px 0 0; border-bottom: none; background: #efe2c4; }
.fd-tab.on { background: var(--red); color: #fff; border-color: var(--red); }
.fd-tab .dot, .r-dot {
  display: inline-block; min-width: 18px; padding: 0 4px; border-radius: 9px; font-size: 11px; font-style: normal; line-height: 18px;
  background: #d8432f; color: #fff; text-align: center;
}
.r-dot { position: absolute; top: 24px; right: 4px; }
.fd-hint { font-size: 12px; color: var(--ink-soft); margin: 6px 0; }
.f-detail .stats { margin: 8px 0; }
.f-detail .stats b { color: var(--ink); }
.sk-kind { display: inline-block; width: 18px; text-align: center; }
.kind-ngoai { color: #b5561e; } .kind-noi { color: #6a3fc4; } .kind-tri { color: #23885a; } .kind-ho { color: #a07a10; }
.attr-free { font-size: 15px; margin-bottom: 6px; }
.attr-free b { color: var(--red); font-size: 18px; }
.attr-list { display: grid; gap: 4px; }
.attr-row { display: grid; grid-template-columns: 82px 34px 1fr auto auto; gap: 6px; align-items: center; padding: 4px 6px; border-radius: 8px; background: #f6ecd6; }
.attr-row .at-name { font-weight: 700; }
.attr-row .at-val { text-align: center; color: var(--red-dark); }
.attr-row small { color: var(--ink-soft); font-size: 12px; }
.attr-row button { padding: 2px 9px; font-size: 13px; }
.attr-actions { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.attr-actions button { font-size: 13px; padding: 5px 10px; }
.attr-actions .toggle.on { background: #e6f1dc; border-color: #5f9b4f; }
.eq-list { display: grid; gap: 6px; }
.eq-slot { display: grid; grid-template-columns: 72px 1fr auto auto; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 8px; background: #f6ecd6; border: 1px solid transparent; }
.eq-slot.picked { border-color: var(--red); }
.eq-label { font-size: 12px; font-weight: 700; color: var(--red-dark); }
.eq-item small { display: block; font-size: 12px; color: var(--ink-soft); }
.eq-item i { color: var(--ink-soft); }
.eq-slot button { font-size: 13px; padding: 4px 10px; }
.eq-picker { display: grid; gap: 4px; margin-top: 6px; max-height: 240px; overflow-y: auto; padding: 4px; border: 1px dashed var(--line); border-radius: 8px; }
.eq-pick { text-align: left; font-size: 14px; padding: 5px 8px; }
.eq-pick small { display: block; font-size: 12px; color: var(--ink-soft); }
.eq-pick .up { color: #2f8a3a; } .eq-pick .down { color: #b3261e; }
.gname { font-weight: 700; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }

/* ---------- Hành trang, binh khí ---------- */
.g-grid { flex: 2; min-width: 280px; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.g-grid.shop { margin-bottom: 8px; }
.g-card {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; text-align: left;
  background: linear-gradient(#fffaf0, #efe2c4); border: 2px solid var(--tier, var(--line)); border-left-width: 6px; border-radius: 10px;
}
.g-card.picked { box-shadow: 0 0 0 3px rgba(155, 44, 34, .35); }
.g-card small { font-size: 12px; color: var(--ink-soft); }
.g-card button { align-self: flex-end; margin-top: 4px; padding: 3px 14px; font-size: 13px; }
.g-slot { font-size: 11px; letter-spacing: 1px; color: var(--ink-soft); text-transform: uppercase; }
.g-wear { position: absolute; top: 6px; right: 8px; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: var(--red); color: #fff; }
.g-new { position: absolute; bottom: 6px; right: 8px; font-size: 10px; padding: 1px 6px; border-radius: 8px; background: #d8432f; color: #fff; }
.g-detail { flex: 1; min-width: 260px; }
.g-stats { margin: 8px 0; font-weight: 700; }
/* Ô "Mặc cho": lưới ô bằng nhau; ảnh rộng (tư thế dang tay) co vào khung, tên dài xuống tối đa 2 dòng */
.g-wear-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.g-wear-list button {
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px;
  height: 108px; min-width: 0; padding: 4px 6px; font-size: 12px; line-height: 1.2; text-align: center;
}
.g-wear-list .thumb { height: 54px; max-width: 100%; object-fit: contain; object-position: bottom; flex: none; }
.g-wear-list button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bag-pots { display: flex; gap: 6px; flex-wrap: wrap; }
.bag-pot { padding: 3px 10px; border-radius: 10px; background: #f6ecd6; border: 1px solid var(--line); font-size: 13px; }
#topbar nav button.has-dot { position: relative; }
#topbar nav button.has-dot::after {
  content: ''; position: absolute; top: 3px; right: 3px; width: 8px; height: 8px; border-radius: 50%; background: #e2412c; box-shadow: 0 0 0 2px rgba(0, 0, 0, .4);
}
.sp-enemy .weak { display: block; font-size: 11px; font-style: normal; }
.sp-enemy .weak.noi { color: #c9a6ff; } .sp-enemy .weak.ngoai { color: #f0b27a; }
@media (max-width: 560px) {
  .attr-row { grid-template-columns: 70px 28px 1fr auto auto; }
  .attr-row small { font-size: 11px; }
  .eq-slot { grid-template-columns: 1fr auto auto; }
  .eq-label { grid-column: 1 / -1; }
}

/* ---------- Icon đồ vật (assets/items/<id>.png; chưa có ảnh thì hiện chữ Hán) ---------- */
.ico {
  position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
  width: 48px; height: 48px; border-radius: 8px; border: 2px solid var(--tier, #9a8a6a); overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #fffdf6 20%, color-mix(in srgb, var(--tier, #e6d6b2) 45%, #e6d6b2) 85%);
  box-shadow: inset 0 0 10px color-mix(in srgb, var(--tier, #9a8a6a) 45%, transparent);
}
.ico img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.ico i { display: none; font-style: normal; font-weight: 700; font-size: 22px; color: var(--tier, #6b5a3a); text-shadow: 0 1px 0 #fff; }
.ico.noimg i { display: block; }
.ico.sm { width: 28px; height: 28px; border-width: 1px; border-radius: 6px; }
.ico.sm i { font-size: 14px; }
.ico.big { width: 84px; height: 84px; border-radius: 12px; }
.ico.big i { font-size: 40px; }
.g-card { flex-direction: row; align-items: flex-start; gap: 8px; }
.g-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.g-head { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.eq-item { display: flex; gap: 8px; align-items: center; min-width: 0; }
.eq-pick { display: flex; gap: 8px; align-items: center; }
.eq-pick > span:not(.ico) { flex: 1; min-width: 0; }
.bag-pot { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 4px; }
.result-card li .ico.sm { width: 24px; height: 24px; margin-right: 2px; }
.battle .skill-menu .ico.sm { float: left; margin: 2px 8px 0 0; }
.hero-card > .ico.big { align-self: center; }

/* ---------- Cửa hàng: cảnh tiệm + chủ tiệm ---------- */
.shop-screen .scene-bg { filter: brightness(.6) blur(1px); }
.shop-head { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 4px; }
.shop-head .thumb.keeper { height: 150px; flex: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); }
.shop-head .portrait { flex: none; }
.shop-say { flex: 1; min-width: 0; }
.shop-say h2 { margin: 0 0 4px; }
.shop-say p {
  position: relative; margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; background: #f6ecd6; border: 1px solid var(--line); font-size: 14px;
}
@media (max-width: 560px) {
  .shop-head .thumb.keeper { height: 110px; }
  .ico { width: 40px; height: 40px; }
}

/* ---------- Phẩm màu: Trắng Lục Lam Tím Cam Đỏ ---------- */
.grade-tag {
  display: inline-block; padding: 0 7px; border-radius: 7px; font-size: 11px; font-weight: 700; line-height: 17px; vertical-align: middle;
  color: #fff; background: var(--g); text-shadow: 0 1px 1px rgba(0, 0, 0, .45); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15);
}
.g-card { background: linear-gradient(#fffaf0, color-mix(in srgb, var(--tier, #efe2c4) 16%, #efe2c4)); }
.g-slot .grade-tag { letter-spacing: 0; text-transform: none; }
.g-lvl { font-weight: 700; color: var(--ink-soft); }
.eq-pick .need { color: #b3261e; font-size: 12px; }
.eq-pick:disabled { opacity: .6; }
.g-wear-list button small { font-size: 10px; color: #b3261e; }
.recruit-box .rates .grade-tag { font-size: 11px; }

/* ---------- Thành (màn hình chính): Tửu Lầu, Nhà Chính, Chiến Trường ---------- */
.home-screen { position: absolute; inset: 0; color: #fff3d6; overflow: hidden; }
/* Nền: ảnh Thành, chưa có thì lớp dưới (cảnh Trung Đô) hiện ra */
.home-bg {
  position: absolute; inset: 0; background-image: var(--bg1), var(--bg2);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.home-shade { position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .45), transparent 26%, transparent 62%, rgba(0, 0, 0, .7)); }
.home-title { position: absolute; left: 3%; top: calc(var(--tb-h) + 6px); z-index: 2; font-size: clamp(26px, 3.4vw, 46px); }
.home-title small { display: block; font: 700 14px var(--font-ui); color: #f1d38a; letter-spacing: 1px; }

/* Toà nhà: neo đáy giữa tại (--x, --y), rê chuột thì nhô lên và sáng viền */
.bld {
  position: absolute; left: var(--x); top: var(--y); z-index: 3; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
}
.bld-nha_chinh { z-index: 2; }
/* Toà nhà là nút: bỏ nền / viền / dịch chuyển của kiểu nút chung (style.css) khi rê chuột, bấm, chọn */
.home-screen .bld:is(:hover, :active, :focus, :focus-visible) { background: none; border: 0; transform: translate(-50%, -100%); outline: none; }
.bld-art {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55));
}
.bld-art img { display: block; height: var(--h); max-width: var(--w); object-fit: contain; object-position: bottom; }
/* Rê chuột: chỉ hiện quầng sáng vàng phía sau toà nhà, toà nhà đứng yên (không nhô, không đổi filter) */
.bld-art::before {
  content: ''; position: absolute; z-index: -1; left: 4%; right: 4%; bottom: 2%; height: 72%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 130, .6), rgba(255, 170, 70, .22) 62%, transparent);
  opacity: 0; transition: opacity .25s;
}
.bld:hover .bld-art::before, .bld:focus-visible .bld-art::before { opacity: 1; }
/* Chưa có ảnh: biểu tượng tròn thay toà nhà */
.bld-glyph { display: none; }
.bld.noimg img, .hm-art.noimg img { display: none; }
.bld.noimg .bld-glyph, .hm-art.noimg .bld-glyph {
  display: grid; place-items: center; width: clamp(96px, 13vw, 150px); aspect-ratio: 1; border-radius: 50%; font-size: clamp(46px, 6vw, 72px);
  background: radial-gradient(#7a2a1c, #2a0e08); border: 2px solid #e9c46a; box-shadow: 0 0 0 4px rgba(0, 0, 0, .45), 0 10px 26px rgba(0, 0, 0, .6);
}
.bld.noimg { top: calc(var(--y) - 4%); }
/* Biển tên gỗ sơn mài */
.bld-sign {
  margin-top: -10px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 16px 6px; border-radius: 6px; white-space: nowrap;
  background: linear-gradient(rgba(70, 26, 14, .96), rgba(30, 12, 6, .96)); border: 1px solid #e9c46a;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .5), 0 6px 16px rgba(0, 0, 0, .6);
}
.bld-sign b { font: 700 clamp(16px, 1.7vw, 22px) var(--font-title); color: #fff3d6; letter-spacing: .5px; }
.bld-sign small { font-size: 12px; color: #f1d38a; }
.bld:hover .bld-sign { border-color: #fff3d6; }
.bld.has-dot .bld-sign::after {
  content: ''; position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%;
  background: #e2412c; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); animation: glow 1.4s ease-in-out infinite;
}

/* Bảng Nhà Chính (mở đè lên Thành) */
.home-modal { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: calc(var(--tb-h) + 10px) 16px 16px; background: rgba(0, 0, 0, .55); }
.hm-box {
  position: relative; width: min(560px, 100%); max-height: 100%; overflow: auto; padding: 20px 24px 22px; border-radius: 6px; color: var(--lac-text);
  background: radial-gradient(120% 50% at 50% 0%, rgba(160, 95, 40, .22), transparent 60%), linear-gradient(rgba(32, 22, 14, .97), rgba(13, 9, 6, .98));
  border: 1px solid var(--gold-lo); box-shadow: 0 0 0 3px rgba(12, 8, 5, .92), 0 0 0 4px rgba(233, 196, 106, .45), 0 26px 70px rgba(0, 0, 0, .75);
}
.hm-box.just-up { animation: hm-up .9s ease-out; }
@keyframes hm-up { 0% { box-shadow: 0 0 0 3px rgba(12, 8, 5, .92), 0 0 0 4px #f6dc8c, 0 0 60px rgba(255, 210, 120, .9); } }
.hm-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--lac-soft); font-size: 20px; cursor: pointer; }
.hm-x:hover { color: #fff3d6; }
.hm-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; }
.hm-art { display: flex; justify-content: center; }
.hm-art img { width: 150px; height: 130px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.hm-art.noimg .bld-glyph { width: 110px; font-size: 54px; }
.hm-head h2 { margin: 0; font: 700 26px var(--font-title); color: var(--gold-hi); }
.hm-head h2 small { font: 400 14px var(--font-ui); color: var(--lac-soft); margin-left: 6px; white-space: nowrap; }
.hm-lv { font-size: 15px; color: var(--lac-soft); }
.hm-lv b { font: 700 34px var(--font-title); color: #fff3d6; }
.hm-head p { margin: 4px 0 0; font-size: 13px; color: var(--lac-soft); }
.hm-req { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.hm-req li { padding: 6px 10px; border-radius: 6px; background: rgba(255, 236, 190, .06); border: 1px solid var(--lac-line); }
.hm-req li i { font-style: normal; font-weight: 700; margin-right: 8px; }
.hm-req li.ok i { color: #7fd17f; } .hm-req li.no i { color: #ef6a5a; }
.hm-req li.no { border-color: rgba(239, 106, 90, .45); }
.hm-req small, .hm-after, .hm-tier { color: var(--lac-soft); font-size: 13px; }
.hm-after { margin: 6px 0 10px; } .hm-tier { margin: 12px 0 0; }
.hm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-max { color: var(--gold-hi); }
.hm-wait { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.hm-wait span { display: flex; flex-direction: column; align-items: center; width: 64px; }
.hm-wait .thumb { height: 64px; }
.hm-wait small { font-size: 11px; text-align: center; line-height: 1.15; }
/* Thanh kinh nghiệm khi chạm trần Nhà Chính */
.cap-tag { margin-left: 4px; padding: 0 6px; border-radius: 8px; font-size: 11px; color: #2a1606; background: #e9c46a; }
.bar.xp.capped > i { background: linear-gradient(90deg, #c0662f, #f6b26b); }

@media (max-width: 760px) and (orientation: portrait) {
  .bld-art img { height: calc(var(--h) * .8); }
  .bld-sign { padding: 4px 10px; } .bld-sign small { font-size: 10.5px; white-space: normal; max-width: 30vw; text-align: center; }
  .hm-head { grid-template-columns: 96px minmax(0, 1fr); }
  .hm-art img { width: 96px; height: 90px; }
}
/* Màn dọc (điện thoại): Nhà Chính trên cùng, 4 toà còn lại xếp 2 cột bên dưới */
@media (max-aspect-ratio: 4/5) {
  .bld-art img { height: 15vh; max-width: 44vw; }
  .bld-nha_chinh .bld-art img { height: 17vh; max-width: 70vw; }
  .bld-nha_chinh { --x: 50% !important; --y: 39% !important; }
  .bld-tuu_lau { --x: 26% !important; --y: 64% !important; }
  .bld-chien_truong { --x: 74% !important; --y: 64% !important; }
  .bld-ruong_duoc { --x: 26% !important; --y: 90% !important; }
  .bld-mo_kho_bau { --x: 74% !important; --y: 90% !important; }
  .bld-sign small { max-width: 44vw; }
}

/* ---------- Ảnh vẽ cả màn: Thành vẽ liền một bức, bản đồ Ruộng Dược / Mỏ ----------
   Ảnh 16:9 phủ kín màn: màn rộng thì cắt bớt trên dưới, điện thoại dọc thì kéo ngang để xem hết.
   Vùng bấm / mốc đặt theo % ảnh nên luôn nằm đúng chỗ trên ảnh. */
.pmap-scroll {
  position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; container-type: size;
  scrollbar-width: none; overscroll-behavior: contain;
}
.pmap-scroll::-webkit-scrollbar { display: none; }
.pmap {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  --mw: max(100cqw, 100cqh * 16 / 9);   /* bề rộng ảnh: chữ, mốc trên ảnh to nhỏ theo nó */
  width: var(--mw); aspect-ratio: 16 / 9;
  background-image: var(--bg1), var(--bg2); background-size: 100% 100%, cover; background-position: center; background-repeat: no-repeat;
}
/* Mũi tên kéo ảnh sang hai bên (điện thoại dọc: ảnh rộng hơn màn) */
.pmap-nav {
  position: absolute; z-index: 4; top: 50%; width: 34px; height: 64px; padding: 0; border-radius: 8px; font-size: 30px; line-height: 1;
  color: #fff3d6; background: rgba(20, 13, 8, .7); border: 1px solid rgba(233, 196, 106, .55); transition: opacity .2s;
}
.pmap-nav.l { left: 4px; } .pmap-nav.r { right: 4px; }
.pmap-nav.off { opacity: 0; pointer-events: none; }
:is(.home-screen, .land-screen) .pmap-nav:is(:hover, :active, :focus) { background: rgba(60, 40, 22, .85); transform: none; }
/* Tối nhẹ mép trên, dưới ảnh cho chữ dễ đọc; nằm dưới biển tên, mốc */
.pmap-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .4), transparent 20%, transparent 78%, rgba(0, 0, 0, .35)); }
/* Ảnh bắt đầu ngay dưới thanh trên cùng, không bị thanh che mất phần trên */
.home-screen.town .pmap-scroll, .land-screen .pmap-scroll { top: var(--tb-h); }
.home-screen.town .home-title { top: calc(var(--tb-h) + 6px); }
/* Toà nhà trên bức Thành: vùng bấm trong suốt, rê chuột thì sáng lên tại chỗ (không dịch chuyển), biển tên ở đáy vùng */
.pspot { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
/* Biển tên nổi trên mọi vùng bấm: vùng của toà bên cạnh có chồng lên cũng không che mất biển */
.pspot .bld-sign { z-index: 3; }
.home-screen .pspot:is(:hover, :active, :focus, :focus-visible) { background: none; border: 0; transform: none; outline: none; }
.pspot-glow {
  position: absolute; inset: 6% 4%; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(closest-side, rgba(255, 220, 140, .42), rgba(255, 190, 90, .14) 60%, transparent);
  mix-blend-mode: screen;
}
.pspot:hover .pspot-glow, .pspot:focus-visible .pspot-glow { opacity: 1; }
.pspot .bld-sign { position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 40%); margin: 0; }
.pspot .bld-sign.at { bottom: auto; transform: translate(-50%, -50%); }   /* đặt đúng giữa tấm biển vẽ sẵn trên ảnh */
/* Biển tên trên ảnh to nhỏ theo bề rộng ảnh (ảnh nhỏ thì biển nhỏ, không đè lên nhau) */
.pmap .bld-sign { padding: calc(var(--mw) * .0028) calc(var(--mw) * .011) calc(var(--mw) * .0034); }
.pmap .bld-sign b { font-size: clamp(11px, calc(var(--mw) * .015), 22px); }
.pmap .bld-sign small { font-size: clamp(9px, calc(var(--mw) * .0088), 13px); }
@container (max-width: 640px) and (max-height: 420px) { .pmap .bld-sign small { display: none; } }
.pboard { position: absolute; z-index: 3; transform: translate(-50%, -50%); margin: 0; cursor: pointer; }
.home-screen .pboard:is(:hover, :active, :focus) { transform: translate(-50%, -50%); border-color: #fff3d6; outline: none;
  background: linear-gradient(rgba(70, 26, 14, .96), rgba(30, 12, 6, .96)); }
.pboard.live { animation: wb-pulse 1.4s ease-in-out infinite; }
.pspot.has-dot .bld-sign::after {
  content: ''; position: absolute; top: -5px; right: -5px; width: 12px; height: 12px; border-radius: 50%;
  background: #e2412c; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); animation: glow 1.4s ease-in-out infinite;
}

/* ---------- Tranh đoạt: bản đồ Ruộng Dược / Mỏ Kho Báu ---------- */
.land-screen { position: absolute; inset: 0; color: #fff3d6; overflow: hidden; }
/* Mốc ô đất: vòng màu theo phẩm; của mình vàng sáng, người khác giữ đỏ, bỏ trống tối */
.plot {
  position: absolute; z-index: 2; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; color: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 1px; cursor: pointer;
}
.land-screen .plot:is(:hover, :active, :focus, :focus-visible) { background: none; border: 0; transform: translate(-50%, -50%); outline: none; }
.plot-ring {
  position: relative; display: grid; place-items: center; border-radius: 50%;
  width: clamp(34px, calc(var(--mw) * .042), 60px); height: clamp(34px, calc(var(--mw) * .042), 60px); font-size: clamp(16px, calc(var(--mw) * .02), 28px);
  background: radial-gradient(#3a2a1c, #140d07); border: 3px solid var(--c);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .5), 0 6px 14px rgba(0, 0, 0, .6);
}
.plot.taken .plot-ring { background: radial-gradient(#8a2418, #3a0c06); }
.plot.mine .plot-ring { background: radial-gradient(#b8892f, #5a3e10); animation: glow 1.6s ease-in-out infinite; }
.plot.empty .plot-ring { filter: saturate(.7); }
.plot.sel .plot-ring { outline: 3px solid #fff3d6; outline-offset: 3px; }
.plot:hover .plot-ring { box-shadow: 0 0 0 3px rgba(0, 0, 0, .5), 0 0 18px var(--c); }
.plot-shield { position: absolute; right: -8px; top: -8px; font-size: 16px; font-style: normal; }
.plot-name, .plot-own { white-space: nowrap; text-shadow: 0 1px 3px #000, 0 0 6px #000; }
.plot-name { margin-top: 3px; font: 700 clamp(10px, calc(var(--mw) * .0102), 14px) var(--font-ui); }
.plot-own { font-size: clamp(9px, calc(var(--mw) * .0088), 12px); color: #f1d38a; }
.plot.taken .plot-own { color: #ff9e8a; }
/* Một hàng điều khiển ở góc trên trái bản đồ (góc ảnh vẽ chừa trống) */
.ld-hud {
  position: absolute; z-index: 5; left: 1.5%; right: 1.5%; top: calc(var(--tb-h) + 8px);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; pointer-events: none;
}
.ld-hud > * { pointer-events: auto; }
.ld-tab, .ld-hud .btn-game { font-size: 13px; padding: 5px 12px; }
.ld-tab { border-radius: 16px; color: #fff3d6; background: rgba(20, 13, 8, .85); border: 1px solid rgba(233, 196, 106, .45); }
.ld-tab.on { background: linear-gradient(#9b2c22, #6e1d16); border-color: #e9c46a; }
.land-screen .ld-tab:hover:not(.on) { background: rgba(60, 40, 22, .9); }
.ld-tries { padding: 4px 12px; border-radius: 16px; font-size: 13px; background: rgba(20, 13, 8, .85); border: 1px solid rgba(233, 196, 106, .4); }
.ld-tries b { color: var(--gold-hi); }
.ld-hud .btn-game.on { border-color: #fff3d6; }
.ld-msg { position: absolute; z-index: 6; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, 90%); text-align: center;
  padding: 16px 20px; border-radius: 10px; background: rgba(20, 13, 8, .92); border: 1px solid var(--gold-mid); }
/* Bảng ô đang chọn (bên phải, như bảng ải) */
.ld-panel { z-index: 6; border-top: 3px solid var(--c); }
.land-screen .ld-panel { top: calc(var(--tb-h) + 54px); max-height: calc(100% - var(--tb-h) - 70px); }
.land-screen .ld-panel.left { right: auto; left: 2%; }
.ld-panel .hm-x { top: 6px; right: 8px; }
.ld-tier { display: inline-block; padding: 0 8px; border-radius: 9px; font-size: 11.5px; letter-spacing: 0; color: #1b120a; background: var(--c); }
.ld-owner { font-size: 13px; color: var(--lac-soft); margin-top: 3px; }
.ld-owner b { color: var(--lac-text); }
.ld-full { color: #f6b26b; }
.ld-team { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ld-u { display: flex; flex-direction: column; align-items: center; width: 56px; }
.ld-u .thumb { height: 48px; }
.ld-u small { font-size: 10px; text-align: center; line-height: 1.1; color: var(--lac-soft); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ld-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ld-acts .btn-game { flex: 1; font-size: 14px; padding: 7px 12px; }
/* Nhật ký */
.ld-logbox {
  position: absolute; z-index: 7; left: 2%; bottom: 3%; width: min(460px, 90%); max-height: 46%; overflow-y: auto; padding: 12px 14px;
  border-radius: 10px; background: rgba(20, 13, 8, .94); border: 1px solid var(--gold-mid); color: var(--lac-text);
}
.ld-logbox .hm-x { top: 4px; right: 6px; }
.ld-log { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 3px; font-size: 13px; }
.ld-log li { padding: 3px 8px; border-left: 3px solid var(--lac-line); }
.ld-log li.good { border-left-color: #7fd17f; } .ld-log li.bad { border-left-color: #ef6a5a; }
.ld-log small { color: var(--lac-soft); margin-right: 6px; }
@media (max-width: 760px) and (orientation: portrait) {
  .ld-hud .btn-game span, .ld-tab span { display: none; }   /* chỉ còn biểu tượng, rê / giữ thấy tên */
  .land-screen .ld-panel { top: auto; bottom: 10px; left: 3%; right: 3%; width: auto; max-height: 50%; }
  .land-screen .ld-panel.up { top: calc(var(--tb-h) + 54px); bottom: auto; }
}

/* ---------- Tháp Luyện Công ---------- */
.tower-screen { position: absolute; inset: 0; color: #fff3d6; overflow: hidden; }
.tower-screen .pmap-scroll { top: var(--tb-h); }
.tw-side {
  position: absolute; z-index: 4; left: 2%; top: calc(var(--tb-h) + 8px); bottom: 10px; width: min(300px, 40%);
  display: flex; flex-direction: column; gap: 6px;
}
.tw-title { font-size: clamp(22px, 2.6vw, 36px); }
.tw-title small { display: block; font: 700 12.5px var(--font-ui); color: #f1d38a; letter-spacing: 1px; }
.tw-progress { font-size: 13px; color: var(--lac-soft); }
.tw-progress b { color: var(--gold-hi); font-size: 18px; }
.tw-ladder {
  flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 10px;
  background: rgba(16, 10, 6, .82); border: 1px solid rgba(233, 196, 106, .45); scrollbar-width: thin;
}
.tw-floor {
  display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px;
  font-size: 13px; text-align: left; color: var(--lac-text); background: rgba(255, 236, 190, .05); border: 1px solid transparent;
}
.tower-screen .tw-floor:hover { background: rgba(233, 196, 106, .14); }
.tw-floor .tw-n { font: 700 15px var(--font-title); color: var(--gold-hi); text-align: center; }
.tw-floor .tw-t { display: flex; align-items: center; gap: 4px; }
.tw-floor .tw-t svg { width: 14px; height: 14px; }
.tw-floor .tw-g { font-size: 11px; color: var(--lac-soft); }
.tw-floor.boss { background: rgba(120, 30, 20, .25); }
.tw-floor.done { opacity: .7; }
.tw-floor.done .tw-s { color: #7fd17f; }
.tw-floor.cur { border-color: var(--gold-mid); background: rgba(155, 44, 34, .45); }
.tw-floor.lock { opacity: .55; }
.tw-floor.sel { outline: 2px solid #fff3d6; outline-offset: -2px; opacity: 1; }
.tw-btns { display: flex; gap: 6px; }
.tw-btns .btn-game { flex: 1; font-size: 13px; padding: 6px 10px; }
.tower-screen .tw-panel { z-index: 5; top: calc(var(--tb-h) + 8px); max-height: calc(100% - var(--tb-h) - 24px); }
.tw-gemchip { border-color: rgba(160, 200, 255, .5); }
.tw-won { text-align: center; }
.tw-won h2 { margin: 0 0 8px; font: 700 28px var(--font-title); color: var(--gold-hi); }
.tw-won-gems { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 8px 0; }
.tw-won-gems > div { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 120px; }
.tw-won-gems small { color: var(--lac-soft); font-size: 12px; }
.tw-won .hm-actions { justify-content: center; }
@media (max-width: 760px) and (orientation: portrait) {
  /* Điện thoại: thang tầng ở trên, bảng tầng ở dưới; chia phần màn dưới thanh trên cùng để hai khối không chồng nhau */
  .tw-side { left: 2%; right: 2%; width: auto; bottom: auto; height: calc((100% - var(--tb-h)) * .42); }
  .tw-title { display: none; }
  .tower-screen .tw-panel { top: auto; bottom: 8px; left: 2%; right: 2%; width: auto; max-height: calc((100% - var(--tb-h)) * .5); }
}

/* ---------- Ngọc khảm ---------- */
/* Viên ngọc: ảnh nếu có, chưa có ảnh thì vẽ viên ngọc giác cắt bằng CSS theo màu loại; góc ghi cấp */
.gem { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; vertical-align: middle; }
.gem img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6)); }
.gem.noimg::before {
  content: ''; width: 70%; height: 70%; transform: rotate(45deg); border-radius: 4px;
  background: radial-gradient(circle at 30% 30%, #fff 0 8%, var(--c) 30%, color-mix(in srgb, var(--c) 45%, #000) 100%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c) 70%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.gem b {
  position: absolute; right: -4px; bottom: -4px; min-width: 16px; height: 16px; padding: 0 3px; border-radius: 8px;
  font: 700 11px/16px var(--font-ui); color: #1b120a; background: #f6dc8c; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
}
.gem.big { width: 54px; height: 54px; } .gem.big b { font-size: 12px; }
.gem.huge { width: 76px; height: 76px; } .gem.huge b { font-size: 14px; min-width: 20px; height: 20px; line-height: 20px; border-radius: 10px; }
.gem-card .gem { margin: 2px 0; }
.sockets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.socket {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 92px; padding: 6px 4px; border-radius: 8px;
  background: rgba(0, 0, 0, .35); border: 1px dashed rgba(233, 196, 106, .5); color: var(--lac-text);
}
.socket.full { border-style: solid; }
.socket.on { border-color: #fff3d6; box-shadow: 0 0 10px rgba(246, 220, 140, .5); }
.socket small { font-size: 11px; color: var(--lac-soft); text-align: center; }
.socket-empty { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--gold-mid); border: 1px dashed var(--gold-mid); }
.socket-empty.sm { width: 22px; height: 22px; font-size: 12px; display: inline-grid; vertical-align: middle; }
.gem-pick { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 8px; border-radius: 8px; background: rgba(0, 0, 0, .3); }
.gem-opt { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 6px; text-align: left; color: var(--lac-text); background: rgba(255, 236, 190, .06); border: 1px solid var(--lac-line); }
.gem-opt span { display: flex; flex-direction: column; font-size: 13px; }
.gem-opt small { color: var(--lac-soft); font-size: 11.5px; }
.gp-gems { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.gp-gems .gem { width: 26px; height: 26px; }
.gp-gems small { color: var(--lac-soft); font-size: 11px; margin-left: 4px; }

/* ---------- Lượt đánh, ghép tướng, Bảo Các, Đồ giám ---------- */
.sp-stamina { margin-top: 8px; padding: 4px 10px; border-radius: 8px; font-size: 13px; background: rgba(0, 0, 0, .3); border: 1px solid rgba(233, 196, 106, .3); }
.sp-stamina b { color: var(--gold-hi); font-size: 15px; }
.sp-stamina.empty { border-color: rgba(239, 106, 90, .6); color: #ffb3a6; }
.sp-stamina.empty b { color: #ef6a5a; }
.r-stars.red { color: #ff6a50; text-shadow: 0 0 6px rgba(240, 69, 58, .6); font-weight: 700; }
.mg-ladder { display: flex; flex-wrap: wrap; gap: 3px; margin: 6px 0 4px; }
.mg-step { padding: 1px 6px; border-radius: 8px; font-size: 11px; color: var(--g); border: 1px solid color-mix(in srgb, var(--g) 50%, transparent); opacity: .45; }
.mg-step.done { opacity: .8; background: color-mix(in srgb, var(--g) 18%, transparent); }
.mg-step.cur { opacity: 1; color: #1b120a; background: var(--g); font-weight: 700; box-shadow: 0 0 8px var(--g); }
.mg-need { margin-top: 8px; font-size: 14px; }
.mg-need.ok b { color: #7fd17f; }
.mg-need small { display: block; color: var(--ink-soft, #998a70); font-size: 12px; }
.mg-bar { height: 8px; margin: 4px 0 8px; border-radius: 4px; background: rgba(0, 0, 0, .4); overflow: hidden; }
.mg-bar i { display: block; height: 100%; background: linear-gradient(90deg, #b8892f, #f6dc8c); }
.vip-balance { margin-bottom: 6px; font-size: 15px; }
.vip-balance b { color: var(--gold-hi); }
.vip-balance small { display: block; color: var(--ink-soft, #998a70); font-size: 12px; }
.vip-ico { display: grid; place-items: center; font-size: 28px; }
.vip-gem-btns { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.vip-gem-btns button { padding: 3px 8px; font-size: 12px; }
.vip-slots { margin-top: 0; }
.cx-box { width: min(980px, 100%); }
.cx-box h2 { margin: 0 0 6px; font: 700 24px var(--font-title); color: var(--gold-hi); }
.cx-box h2 small { font: 400 14px var(--font-ui); color: var(--lac-soft); margin-left: 8px; }
.cx-body { max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.cx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 6px 0 10px; }
.cx-card {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 8px; text-align: center;
  background: rgba(255, 236, 190, .05); border: 1px solid color-mix(in srgb, var(--g) 55%, transparent);
}
.cx-card .thumb { height: 74px; }
.cx-card b { font-size: 12.5px; color: var(--g); line-height: 1.15; }
.cx-card small { font-size: 11px; color: var(--lac-soft); line-height: 1.2; }
.cx-card.own { box-shadow: 0 0 10px color-mix(in srgb, var(--g) 35%, transparent); background: color-mix(in srgb, var(--g) 10%, rgba(20, 13, 8, .6)); }
.cx-card.none { opacity: .38; filter: grayscale(1); }
button.cx-card { cursor: pointer; color: inherit; font: inherit; }
.home-modal button.cx-card.own:hover { border-color: var(--g); background: color-mix(in srgb, var(--g) 20%, rgba(20, 13, 8, .6)); transform: none; }

/* ---------- Tửu Lầu: hộp chiêu mộ bên trái, bảng anh hùng bên phải (luôn hiện) ---------- */
.recruit-screen .recruit-box { left: 2%; transform: none; width: min(420px, 38%); }
.recruit-screen .featured { right: auto; width: 42%; height: 48%; }
.rc-board {
  position: absolute; z-index: 3; right: 2%; top: calc(var(--tb-h) + 10px); bottom: 12px; width: 57%;
  display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; color: var(--lac-text);
  background: linear-gradient(rgba(28, 19, 11, .9), rgba(12, 8, 5, .94)); border: 1px solid rgba(233, 196, 106, .7);
}
.rc-board-head b { font: 700 20px var(--font-title); color: var(--gold-hi); }
.rc-board-head small { color: var(--lac-soft); font-size: 12px; margin-left: 6px; }
.rc-board .fd-tabs { margin: 6px 0 4px; border-bottom: 1px solid var(--lac-line); gap: 2px; }
.rc-board .fd-tab { background: none; color: var(--lac-soft); border: 1px solid transparent; border-bottom: none; }
.rc-board .fd-tab.on { color: var(--gold-hi); border-bottom: 2px solid var(--gold-mid); background: linear-gradient(transparent, rgba(233, 196, 106, .14)); }
.rc-board .cx-body { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
.cx-card { position: relative; }
.cx-n {
  position: absolute; top: 3px; right: 4px; padding: 0 6px; border-radius: 9px; font: 700 13px/18px var(--font-ui);
  color: #1b120a; background: #f6dc8c; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6);
}
.cx-up {
  position: absolute; top: 3px; left: 4px; padding: 0 5px; border-radius: 8px; font-size: 10px; line-height: 16px;
  color: #fff; background: #d8432f; animation: glow 1.4s ease-in-out infinite;
}
.cx-card.ready { border-color: #f6dc8c; }
/* Màn hẹp (điện thoại): cuộn dọc, hộp chiêu mộ ở trên, bảng anh hùng ở dưới (không đè nhau) */
@media (max-width: 760px) and (orientation: portrait) {
  .recruit-screen { overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: calc(var(--tb-h) + 10px) 2% 12px; }
  .recruit-screen .scene-bg, .recruit-screen .map-shade, .recruit-screen .pull-results { position: fixed; }
  .recruit-screen .recruit-box, .has-topbar .recruit-screen .recruit-box { position: relative; left: auto; right: auto; top: auto; width: auto; transform: none; flex: none; }
  .recruit-screen .featured { display: none; }
  .rc-board { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; height: 78vh; flex: none; }
  .rc-board-head small { display: block; margin-left: 0; }
}


/* ---------- Lực chiến: thanh trên cùng, tiêu đề Đội hình, chi tiết tướng, ô đội hình ---------- */
.tb-res #power { color: #ffd98a; background: linear-gradient(rgba(130, 34, 20, .7), rgba(60, 14, 8, .7)); border-color: rgba(246, 190, 90, .65); }
.panel-head h2 small .pw { color: #ffd27a; font-weight: 700; font-variant-numeric: tabular-nums; }
.fd-pw { margin-top: 2px; font-size: 13px; color: var(--lac-soft); }
.fd-pw b { color: #ffd27a; font-size: 16px; font-variant-numeric: tabular-nums; }
/* Góc phải màn Thành: Boss thế giới, Bảng xếp hạng xếp dọc */
.home-corner { position: absolute; z-index: 3; right: 3%; top: calc(var(--tb-h) + 14px); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.home-screen .home-corner .wb-btn { position: static; align-items: flex-end; }
.home-screen .rank-btn { background: linear-gradient(#4a3514, #1e1408); }
@media (max-width: 760px) and (orientation: portrait) { .home-corner { top: calc(var(--tb-h) + 10px); gap: 6px; } }

/* ---------- Bảng xếp hạng: thẻ Lực chiến / Tướng / Tiến độ ---------- */
.rank-desc { font-size: 13px; margin: 2px 0 8px; color: var(--lac-soft); }
.rank-desc .pw { margin-left: 6px; color: #ffd27a; white-space: nowrap; }
.rank-pick { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; color: var(--lac-soft); font-size: 14px; }
.rank-pick select {
  min-width: 220px; padding: 6px 10px; border-radius: 8px; font: inherit; color: var(--lac-text);
  background: rgba(0, 0, 0, .45); border: 1px solid var(--lac-line);
}
.rank-table th.num, .rank-table td.num { text-align: right; white-space: nowrap; }
.rank-pw { color: #ffd27a; font-weight: 700; font-variant-numeric: tabular-nums; }
.rank-team { white-space: nowrap; }
.rank-team .thumb, .rank-hero .thumb { width: 34px; height: 34px; object-fit: cover; object-position: top; border-radius: 6px; vertical-align: middle;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(233, 196, 106, .3); margin-right: 3px; }
.rank-hero { display: flex; align-items: center; gap: 8px; }
.rank-hero > span { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.rank-gap td { text-align: center; color: var(--lac-soft); padding: 2px; border-bottom: none; }
@media (max-width: 560px) {
  .rank-team .thumb, .rank-hero .thumb { width: 26px; height: 26px; }
  .rank-pick select { min-width: 0; flex: 1; }
}

/* ---------- Đội ra trận đứng giữa quảng trường Thành (bấm để vào Đội hình) ---------- */
/* Kích cỡ theo bề rộng ảnh Thành (--mw): ảnh nhỏ thì người nhỏ theo */
.home-screen:not(.town) .town-party { --mw: min(100vw, 178vh); }
.town-party {
  position: absolute; z-index: 2; transform: translate(-50%, -100%); padding: 0; border: 0; background: none;
  display: flex; flex-direction: column; align-items: center; color: inherit; cursor: pointer;
}
.home-screen .town-party:is(:hover, :active, :focus, :focus-visible) { background: none; border: 0; outline: none; transform: translate(-50%, -100%); }
.tp-row { position: relative; width: calc(var(--mw) * .2); height: calc(var(--mw) * .118); }
/* Mỗi người đứng theo ô: --x lệch ngang so với giữa, bottom = lùi sau (chân cao hơn), xa thì nhỏ hơn */
.tp-hero {
  position: absolute; left: 50%; bottom: 0; height: calc(var(--mw) * .105); display: flex; align-items: flex-end; justify-content: center;
  transform: translateX(calc(-50% + var(--x, 0px)));
}
.tp-hero.main { z-index: 3; }
.tp-hero.il, .tp-hero.ir { z-index: 2; height: calc(var(--mw) * .092); bottom: calc(var(--mw) * .011); }
.tp-hero.ol, .tp-hero.or { z-index: 1; height: calc(var(--mw) * .082); bottom: calc(var(--mw) * .02); }
.tp-hero.il { --x: calc(var(--mw) * -.038); } .tp-hero.ir { --x: calc(var(--mw) * .038); }
.tp-hero.ol { --x: calc(var(--mw) * -.07); } .tp-hero.or { --x: calc(var(--mw) * .07); }
/* Hình nhân vật: dịu màu một chút cho hợp tông tranh vẽ */
.tp-hero canvas {
  position: relative; z-index: 1; height: 112%;
  filter: brightness(.94) saturate(.88) contrast(1.03) drop-shadow(0 1px 1px rgba(0, 0, 0, .5));
  transition: filter .2s var(--ease, ease);
}
.tp-hero.flip canvas { transform: scaleX(-1); }
.town-party:hover .tp-hero canvas { filter: brightness(1.04) saturate(.95) drop-shadow(0 0 5px rgba(255, 224, 150, .95)) drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
/* Bóng sát chân từng người (chân chạm nền), lệch phải theo hướng nắng của tranh */
.tp-hero::before {
  content: ''; position: absolute; left: 50%; bottom: calc(var(--mw) * -.0045); transform: translateX(-42%);
  width: calc(var(--mw) * .05); height: calc(var(--mw) * .012); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24, 14, 6, .62), rgba(24, 14, 6, .34) 55%, transparent);
}
.tp-hero.main::before { width: calc(var(--mw) * .062); height: calc(var(--mw) * .014); }
.tp-hero:is(.ol, .or)::before { width: calc(var(--mw) * .042); height: calc(var(--mw) * .01); }
.tp-tag { display: flex; flex-direction: column; align-items: center; margin-bottom: calc(var(--mw) * .002); white-space: nowrap; pointer-events: none; }
/* Tên: chữ vàng trắng, viền đen, sáng nhẹ */
.tp-name {
  font: 800 clamp(12px, calc(var(--mw) * .0128), 20px)/1.15 var(--font-title); color: #fff4d0; letter-spacing: .3px;
  text-shadow: 1px 1px 0 #2a0c04, -1px -1px 0 #2a0c04, 1px -1px 0 #2a0c04, -1px 1px 0 #2a0c04, 0 2px 0 #2a0c04, 0 0 10px rgba(255, 200, 110, .55);
}
/* Lực chiến: chữ to, vàng cam như lửa, viền nâu đậm, quầng sáng */
.tp-pw {
  display: flex; align-items: baseline; gap: calc(var(--mw) * .003); line-height: 1.05;
  filter: drop-shadow(1px 0 0 #3a0e02) drop-shadow(-1px 0 0 #3a0e02) drop-shadow(0 1px 0 #3a0e02) drop-shadow(0 -1px 0 #3a0e02)
    drop-shadow(0 2px 1px rgba(0, 0, 0, .7)) drop-shadow(0 0 8px rgba(255, 140, 30, .65));
}
.tp-pw .emj { font-size: clamp(12px, calc(var(--mw) * .0135), 21px); align-self: center; }
.tp-pw em, .tp-pw b {
  background: linear-gradient(180deg, #fffbe0 0%, #ffe680 35%, #ffb52e 62%, #ff7a1a 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tp-pw em { font: italic 800 clamp(10px, calc(var(--mw) * .0105), 16px) var(--font-ui); }
.tp-pw b { font: 900 clamp(16px, calc(var(--mw) * .0205), 32px) var(--font-title); letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.town-party:hover .tp-pw { filter: drop-shadow(1px 0 0 #3a0e02) drop-shadow(-1px 0 0 #3a0e02) drop-shadow(0 1px 0 #3a0e02) drop-shadow(0 -1px 0 #3a0e02)
  drop-shadow(0 2px 1px rgba(0, 0, 0, .7)) drop-shadow(0 0 14px rgba(255, 170, 60, .95)); }
@container (max-width: 640px) {
  .tp-name { font-size: 10px; }
  .tp-pw em { display: none; }
  .tp-pw b { font-size: 13px; }
  .tp-pw .emj { font-size: 10px; }
}

/* ---------- Đội hình: ô nhân vật chính viền vàng sáng, nhãn trên đầu ô ---------- */
.f-cell { position: relative; }
.panel .f-cell.mc { border: 2px solid #f6dc8c; box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 0 16px rgba(246, 210, 120, .45); }
.f-mc {
  position: absolute; z-index: 2; top: 4px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  font: 700 10.5px/1.5 var(--font-ui); color: #2a1404; background: linear-gradient(#fff0b8, #e0a83c); box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* ---------- Mảnh Thần Binh: rèn đồ Đỏ tự chọn (Hành trang › Vật phẩm), dòng báo rơi đồ Đỏ ---------- */
.forge-list { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.forge-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 8px;
  border-radius: 8px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(232, 70, 50, .25);
}
.forge-row span { display: flex; flex-direction: column; min-width: 0; }
.forge-row b { font-size: 13.5px; }
.forge-row small { font-size: 11px; color: var(--lac-soft); }
.forge-row .btn-game { padding: 5px 14px; font-size: 13px; }
.red-drop { color: #ff6a52; text-shadow: 0 0 8px rgba(255, 90, 60, .7); letter-spacing: .5px; }

/* ---------- Ô mật khẩu có nút con mắt hiện / ẩn ---------- */
.pw-wrap { position: relative; display: block; }
.acc-online:not([data-mode="register"]) .pw-wrap.reg-only { display: none; }
.pw-wrap input { width: 100%; padding-right: 42px !important; }
:is(.panel, .title-card, .acc-online) button.pw-eye {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; margin: 0;
  display: grid; place-items: center; border: 0; border-radius: 6px; background: none; box-shadow: none; color: #b9a983; cursor: pointer;
}
:is(.panel, .title-card, .acc-online) button.pw-eye:hover { color: #f6dc8c; background: rgba(233, 196, 106, .1); }
.pw-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pw-eye .ec { display: none; }
.pw-eye.on { color: #f6dc8c; }
.pw-eye:not(.on) .ec { display: inline; }   /* đang ẩn: mắt có gạch chéo; bấm thì hiện chữ */

/* ---------- Toà chưa mở khoá (Tháp, Ruộng Dược, Mỏ Kho Báu theo cấp nhân vật chính) ---------- */
.home-screen :is(.pspot, .bld).locked { cursor: not-allowed; }
.home-screen :is(.pspot, .bld).locked .bld-sign {
  background: linear-gradient(rgba(28, 24, 20, .82), rgba(12, 10, 8, .86)); border-color: rgba(160, 150, 130, .45); filter: saturate(.3);
}
.home-screen :is(.pspot, .bld).locked .bld-sign b { color: #cfc6b4; }
.home-screen :is(.pspot, .bld).locked .bld-sign small { color: #ffb070; opacity: 1; }
.home-screen .pspot.locked .pspot-glow { display: none; }
.home-screen .pspot.locked:is(:hover, :focus-visible) .bld-sign { border-color: rgba(255, 176, 112, .7); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); }
.home-screen .bld.locked .bld-art { filter: grayscale(.7) brightness(.7); }

/* ---------- Quên mật khẩu (mã gửi về email), email ở màn Tài khoản ---------- */
.acc-online[data-mode="register"] .login-only { display: none; }
:is(.panel, .title-card) button.link.acc-forgot-link { align-self: center; margin-top: -2px; font-size: 13px; }
.acc-fg-head { font: 700 17px var(--font-title); color: var(--gold-hi, #f6dc8c); text-align: center; }
.acc-fg-note, .acc-fg-sent { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--lac-soft, #d6c6a4); }
.acc-fg-sent b { color: #9fd88a; }
.acc-forgot .fg-step2 { display: flex; flex-direction: column; gap: 8px; }
.acc-forgot[data-step="1"] :is(.fg-step2, .fg-resend) { display: none; }
.acc-forgot input[name="code"] { letter-spacing: .4em; font-size: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.acc-forgot .tc-links { justify-content: space-between; margin-top: 2px; }
.acc-email { margin-top: 8px; padding-top: 8px; border-top: 1px dashed rgba(233, 196, 106, .2); }
.acc-email .warn { color: #ffb070; }
.acc-email .link { margin-left: 6px; }
.acc-email-form:not([hidden]) { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; max-width: 360px; }
.acc-email-form input:not([type="checkbox"]) { padding: 8px 11px; font: inherit; border-radius: 6px; border: 1px solid var(--lac-line, #5a4630); background: rgba(0, 0, 0, .4); color: var(--lac-text, #f3e6c8); }
.acc-email-form .btn-game { align-self: flex-start; padding: 6px 16px; font-size: 13px; }
