* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* ban port: mobile - trang khong cuon (game chiem ca khung, .ingame fixed): khong keo tai lai trang / nay mep */
html, body { height: 100%; overscroll-behavior: none; }
body { touch-action: manipulation; -webkit-text-size-adjust: 100%;
	margin: 0;
	overflow: hidden;
	background: #000;
	color: #e8e2d6;
	font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* thieu anh giao dien (public/gameui) */
.ui-missing {
	max-width: 640px;
	margin: 48px auto;
	padding: 0 16px;
	white-space: pre-line;
}
.ui-missing code { color: #f2c14e; }

/* man tai tai nguyen co ban truoc man dang nhap (index.html #boot, app.js bootProgress) */
.boot { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
	background: radial-gradient(ellipse at center, #2a1d10 0%, #0b0805 70%, #000 100%); transition: opacity .4s; }
.boot.boot-done { opacity: 0; pointer-events: none; }
.boot-box { width: 100%; max-width: 440px; text-align: center; }
.boot-title { margin-bottom: 28px; font: 700 34px/1.2 "Times New Roman", "Noto Serif", serif; letter-spacing: 1px; color: #f2c14e;
	text-shadow: 0 2px 0 #5a3a10, 0 0 18px rgba(242, 193, 78, .35); }
.boot-bar { height: 14px; padding: 2px; border: 1px solid #8a6a32; border-radius: 8px; background: #1a120a; box-shadow: inset 0 1px 3px #000; }
.boot-fill { width: 0; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #a0701f, #f2c14e); transition: width .2s; }
.boot-info { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14px; color: #d8cbb0; }
.boot-info #boot-pct { font-variant-numeric: tabular-nums; color: #f2c14e; font-weight: 600; }
.boot-size { margin-top: 4px; min-height: 1.5em; font-size: 12px; color: #8f8470; font-variant-numeric: tabular-nums; }

/* nut hien thi (js/ig/viewctl.js): goc tren phai, hien ro, chi ngoai game (mobile chi co o chon giao dien) */
.ingame .vc { position: absolute; top: 0; right: 0; z-index: 3; display: flex; gap: 4px; padding: 3px; }
.ingame .vc-btn { height: 22px; padding: 0 8px; border: 1px solid rgba(232, 200, 140, .5); border-radius: 4px; background: rgba(30, 22, 14, .85);
	color: #f1e3c4; font: 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; }
.ingame .vc-btn:hover { background: rgba(120, 85, 40, .95); }
.ingame .vc-sel { padding: 0 4px; }
.ingame .vc-sel option { background: #1e160e; color: #f1e3c4; }
/* giao dien mobile: chi o chon giao dien (cung goc phai tren - goc trai tren man dang nhap la bang 18+) */
.ingame .vc.vc-ui { pointer-events: auto; }
.ingame .vc[hidden] { display: none; }

/* giao dien trong game giong client (js/ig): man 800 x 600 ve canvas, phong to boi so nguyen */
.ingame { position: fixed; inset: 0; background: #000; overflow: hidden; z-index: 20; touch-action: none; }
.ingame .ig-canvas { position: absolute; display: block; outline: none; }
/* ban port (hieu nang): khong gian game ve bang WebGL (?gl=1) - nam duoi canvas giao dien, khong nhan chuot / cham */
.ingame .ig-gl { position: absolute; display: block; pointer-events: none; }
.ingame .ig-ime { position: absolute; left: -100px; top: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; }
/* nguoi dung 2026-11-25: mobile - thanh nhap chat sat tren ban phim ao (js/ig/shell.js chatBarShow): chu co thuong cua may + nut Gui.
   font 16px: iOS khong tu phong to khi focus o nhap */
.ig-chatbar { position: fixed; left: 0; right: 0; top: 0; z-index: 1000; display: none; gap: 8px; align-items: center; box-sizing: border-box;
	padding: 6px max(8px, env(safe-area-inset-right)) 6px max(8px, env(safe-area-inset-left)); background: rgba(20, 14, 8, .96);
	border-top: 1px solid rgba(226, 176, 74, .8); }
.ig-chatbar input { flex: 1; min-width: 0; height: 40px; box-sizing: border-box; padding: 0 10px; border: 1px solid rgba(226, 176, 74, .6);
	border-radius: 6px; background: #000; color: #fff; font: 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; outline: none; }
.ig-chatbar button { flex: none; height: 40px; padding: 0 18px; border: 1px solid rgba(226, 176, 74, .9); border-radius: 6px;
	background: #5a3a12; color: #f6dc9a; font: 600 16px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
/* ban port: mobile - cam ung (js/ig/touch.js, touchui.js, layout.js): khong cuon / phong to / chon chu, an con tro .cur khi pointer: coarse */
.ingame { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ingame .ig-canvas { touch-action: none; }
.ingame.ig-coarse .ig-canvas { cursor: none !important; }
.ingame .tu { position: absolute; inset: 0; pointer-events: none; z-index: 2; font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ingame .tu-panel { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px;
	padding: 8px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.ingame .tu-panel > * { pointer-events: auto; }
/* ban port: mobile - iPhone (khong co Fullscreen API): goi y Them vao man hinh chinh de an thanh dia chi (touchui.js makeHomeHint) */
.ingame .tu-home { position: absolute; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4;
	display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 32px); padding: 8px 8px 8px 12px; pointer-events: auto;
	border: 1px solid rgba(226, 176, 74, .8); border-radius: 8px; background: rgba(30, 20, 10, .9); color: #f6dc9a; font-size: 13px; line-height: 1.35; }
.ingame .tu-home-x { flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: rgba(226, 176, 74, .2); color: #f6dc9a;
	font: inherit; font-size: 16px; touch-action: manipulation; }
/* ban port: khung nhap Bao loi (ig/bugreport.js - nut Bao loi / Zalo la nut game canh ban do nho); khung sat tren de ban phim ao
   khong che o nhap */
.ingame .tu-bug { position: absolute; inset: 0; display: none; align-items: flex-start; justify-content: center; padding: 12px 16px;
	background: rgba(0, 0, 0, .55); pointer-events: auto; z-index: 6; }
.ingame .tu-bug.tu-bug-on { display: flex; }
.ingame .tu-bug-panel { display: flex; flex-direction: column; gap: 8px; width: min(480px, 100%); max-height: 100%; overflow: auto; padding: 12px 14px;
	border: 1px solid rgba(226, 176, 74, .8); border-radius: 8px; background: rgba(24, 17, 10, .97); color: #f1e3c4; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); }
/* cot flex co gioi han cao (max-height) -> mac dinh trinh duyet EP CO tung o (o chon loai loi, o nhap bi cat khi dien thoai nam
   ngang ~360px) thay vi cuon: giu nguyen co, khung tu cuon */
.ingame .tu-bug-panel > * { flex-shrink: 0; }
.ingame .tu-bug-title { font-size: 16px; color: #ffd98a; }
.ingame .tu-bug-kind, .ingame .tu-bug-text { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid rgba(226, 176, 74, .5); border-radius: 6px;
	background: #120c06; color: #f6e8c8; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; user-select: text; -webkit-user-select: text; }
.ingame .tu-bug-text { resize: vertical; min-height: 84px; }
.ingame .tu-bug-count { align-self: flex-end; font-size: 12px; color: #b9a57c; }
.ingame .tu-bug-note { font-size: 12px; line-height: 1.4; color: #c8b48a; }
.ingame .tu-bug-status { min-height: 1em; font-size: 13px; line-height: 1.4; }
.ingame .tu-bug-status.tu-bug-ok { color: #8fe08a; }
.ingame .tu-bug-status.tu-bug-err { color: #ff9a8a; }
.ingame .tu-bug-row { display: flex; justify-content: flex-end; gap: 10px; }
.ingame .tu-bug-btn { min-width: 84px; padding: 9px 14px; border: 1px solid rgba(226, 176, 74, .8); border-radius: 6px; background: rgba(60, 40, 16, .9);
	color: #f6dc9a; font: 600 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ingame .tu-bug-btn.tu-bug-send { background: #b8862b; color: #1c1206; }
.ingame .tu-bug-btn:disabled { opacity: .5; }
.ingame a.tu-bug-btn { box-sizing: border-box; text-align: center; text-decoration: none; }
.ingame .tu-bug-view { margin-right: auto; }
.ingame .tu-bug-view[hidden] { display: none; }
/* man thap (dien thoai nam ngang, ban phim ao mo): thu gon de thay du khung, con thieu thi cuon */
@media (max-height: 480px) {
	.ingame .tu-bug { padding: 6px 12px; }
	.ingame .tu-bug-panel { gap: 5px; padding: 8px 12px; width: min(560px, 100%); }
	.ingame .tu-bug-title { font-size: 14px; }
	.ingame .tu-bug-kind, .ingame .tu-bug-text { padding: 5px 8px; font-size: 14px; }
	.ingame .tu-bug-text { height: 64px; min-height: 48px; }
	.ingame .tu-bug-note { font-size: 11px; line-height: 1.3; }
	.ingame .tu-bug-btn { padding: 7px 12px; }
}
.ingame .tu-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ingame .tu-grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; }
.ingame .tu-btn { min-width: 44px; height: 40px; padding: 0 8px; border: 1px solid rgba(232, 200, 140, .45); border-radius: 8px;
	background: rgba(40, 30, 20, .72); color: #f1e3c4; font: inherit; touch-action: none; -webkit-user-select: none; user-select: none; }
.ingame .tu-btn.tu-press { background: rgba(140, 100, 50, .9); }
.ingame .tu-btn.tu-on { background: rgba(190, 130, 40, .95); color: #fff; border-color: #f2c14e; }
.ingame .tu-btn.tu-lock { box-shadow: inset 0 -4px 0 #fff3c4; }
/* nguoi dung 2026-11-25: can dieu khien theo hinh nguoi dung gui (nen + num xanh - tools/port/mobile_spr/gen_mobile_frames.py) */
.ingame .tu-stick { position: relative; flex: none; border-radius: 50%; background: url(img/joystick_base.webp) center / 100% 100% no-repeat; touch-action: none; }
.ingame .tu-knob { position: absolute; left: 30%; top: 30%; width: 40%; height: 40%; border-radius: 50%; background: url(img/joystick_thumb.webp) center / 100% 100% no-repeat; pointer-events: none; }
.ingame .tu-game { display: none; }
.ingame .tu-ingame .tu-game { display: flex; }
.ingame .tu-ingame .tu-grid.tu-game { display: grid; }
/* phu len man game: chi can dieu khien hoi trong (cum o ky nang / vat pham giu mau that - truoc ca cot mo 60% nen bieu tuong bi mo) */
.ingame .tu-over .tu-stick { opacity: .75; }
/* ban port: mobile ngang - can cach mep duoi / trai >= 16 px + vung an toan (truoc 8 px: nam trong vung vuot Home cua iPhone / iPad) */
/* nguoi dung 2026-11-25: cum o ky nang sat goc phai duoi - bo le vung an toan ben phai (Android bao le = tai tho camera o CA HAI ben
   khi man ngang -> cum cach mep ~60 px du ben phai khong co tai tho); goc duoi phai khong co tai tho */
.ingame .tu-over .tu-right { padding-right: 6px; padding-bottom: 6px; }
.ingame .tu-over .tu-left { padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px)); padding-left: max(16px, calc(env(safe-area-inset-left) + 8px)); }
.ingame .tu-bottom .tu-panel { flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: center; }
.ingame .tu-bottom .tu-right { justify-content: flex-end; }	/* ban port: man doc - cum o ky nang (scale quanh goc phai duoi) sat mep phai, khong tran */
/* vung thua hai ben hep: nut co theo cot */
.ingame .tu-side .tu-panel { padding-left: 6px; padding-right: 6px; }
.ingame .tu-side .tu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 160px; }
/* cum nut ky nang mobile (ig/touchskill.js): nut lon goc phai duoi, cung nut nho trai -> tren */
.ingame .tu-skills { position: relative; flex: none; width: 240px; height: 200px; transform: scale(var(--tu-s, 1)); transform-origin: 100% 100%; --sk-s: 50px; --sk-t: 36px; --sk-p: 44px; --sk-cx: calc(100% - 50px); --sk-cy: calc(100% - 46px); }
.ingame .tu-skills.tu-game { display: block; }
.ingame .tu:not(.tu-ingame) .tu-skills { display: none; }
/* GD13: cum o ky nang / hang o 1-5 VE trong he cua so game (ig/touchskill.js KTouchSkillPad - bong bong xa phong trong suot, cua so
   khac mo de len). Nut DOM o day chi la vung nhan cham trong suot (vi tri / co / lop trang thai cho lop ve doc); bi cua so de len
   (tu-covered) thi khong nhan cham */
.ingame .tu-sk { position: absolute; width: var(--sk-s); height: var(--sk-s); padding: 0; border-radius: 50%; overflow: hidden; touch-action: none;
	border: 0; background: none; color: transparent; }
.ingame .tu-sk > canvas, .ingame .tu-sk > span { visibility: hidden; }
.ingame .tu-covered { pointer-events: none !important; }
/* cum / hang 1-3 nam NGOAI canvas (man doc / thua cho ngoai khung game - khong phai tu-over): canvas khong ve ra ngoai khung -> o
   DOM tu ve, bieu tuong o canvas DOM (touchskill.js setBtn) thu vao long khung. Nguoi dung 2026-11-25: khung dong nhu tren canvas
   (touchskill.js padPaint - o cum tron hoa sen, o 1-2-3 vuong hoa van, long khung nen toi mo) */
.ingame .tu:not(.tu-over) .tu-sk { background: url(img/khung_tron.webp) center / 100% 100% no-repeat,
	radial-gradient(circle, rgba(0, 0, 0, .45) 0 79%, transparent 80%); color: #f6dc9a; overflow: visible; }
.ingame .tu:not(.tu-over) .tu-sk.tu-sk-q { border-radius: 0; background: url(img/khung_vuong.webp) center / 100% 100% no-repeat,
	linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)) center / 80% 80% no-repeat; }
.ingame .tu:not(.tu-over) .tu-sk > canvas, .ingame .tu:not(.tu-over) .tu-sk > span { visibility: visible; }
.ingame .tu:not(.tu-over) .tu-sk > canvas { position: absolute; inset: 20%; width: 60%; height: 60%; }
.ingame .tu:not(.tu-over) .tu-sk-q > canvas { border-radius: 0; }
.ingame .tu:not(.tu-over) .tu-sk::after { content: ''; position: absolute; inset: 0; z-index: 3; border-radius: 50%; pointer-events: none; }
.ingame .tu:not(.tu-over) .tu-sk-empty::after { content: '+'; display: flex; align-items: center; justify-content: center; font-size: 22px; color: rgba(246, 220, 154, .8); }
.ingame .tu:not(.tu-over) .tu-sk.tu-cd canvas { opacity: .4; filter: grayscale(.7); }
.ingame .tu:not(.tu-over) .tu-sk.tu-nomana canvas { filter: grayscale(.6) sepia(1) hue-rotate(185deg) saturate(2.2) brightness(.6); }
.ingame .tu:not(.tu-over) .tu-sk.tu-press { box-shadow: 0 0 0 4px rgba(255, 215, 106, .75), 0 0 12px rgba(255, 215, 106, .6); }
.ingame .tu:not(.tu-over) .tu-sk-stand.tu-on { background-color: rgba(226, 176, 74, .9); }
.ingame .tu:not(.tu-over) .tu-sk.tu-cdpie::before { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: 50%; pointer-events: none;
	background: conic-gradient(transparent 0 calc((1 - var(--cd)) * 360deg), rgba(0, 0, 0, .62) 0); }
.ingame .tu:not(.tu-over) .tu-sk.tu-cdpie .tu-sk-n { z-index: 2; inset: 0; right: auto; bottom: auto; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; color: #ffe9a8; }
/* khung cum / hang o 1-5 khong nhan cham (khe giua bong bong roi xuong canvas: khong gian game / cua so game), chi bong bong nhan */
.ingame .tu-panel > .tu-skills, .ingame .tu-quick { pointer-events: none; }
.ingame .tu-skills .tu-sk, .ingame .tu-quick .tu-sk { pointer-events: auto; }
.ingame .tu-sk canvas { border-radius: 50%; }
.ingame .tu-sk-n { position: absolute; right: 18%; bottom: 10%; font-size: 11px; color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000; pointer-events: none; }
/* bang chon bieu tuong cho o (ig/touchskill.js) */
.ingame .tu-pick { position: absolute; inset: 0; z-index: 6; display: none; align-items: flex-end; justify-content: flex-end; pointer-events: auto; background: rgba(0, 0, 0, .35); }
.ingame .tu-pick.tu-pick-open { display: flex; }
.ingame .tu-pick-box { margin: 8px; padding: 10px; width: min(380px, 94%); max-height: 86%; display: flex; flex-direction: column; gap: 8px; border-radius: 12px;
	border: 1px solid rgba(226, 176, 74, .7); background: rgba(24, 17, 10, .95); box-shadow: 0 6px 24px rgba(0, 0, 0, .6); color: #f1e3c4; transform: scale(var(--tu-s, 1)); transform-origin: 100% 100%; }
.ingame .tu-pick-title { font-size: 13px; color: #f2c14e; }
.ingame .tu-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, 48px); gap: 6px; overflow: auto; max-height: 60vh; }
.ingame .tu-pick-cell { position: relative; width: 48px; height: 48px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid #e2b04a; background: rgba(0, 0, 0, .25); }
.ingame .tu-pick-cell canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
.ingame .tu-pick-row { display: flex; gap: 6px; }
.ingame .tu-pick-row .tu-menu-item { flex: 1; height: 40px; }
.ingame .tu-sk canvas { display: block; width: 100%; height: 100%; pointer-events: none; }
/* hang o phim tat 1-5 (ig/touchskill.js, vi tri: ig/touchui.js placeQuickSlots) - cung kieu o nho cua cum ky nang */
.ingame .tu-quick { position: fixed; display: none; gap: 6px; z-index: 5; --sk-s: 46px; }
.ingame .tu-ingame .tu-quick.tu-quick-on { display: flex; }
.ingame .tu-quick .tu-sk { position: relative; flex: none; }
.ingame .tu-sk-main { width: 88px; height: 88px; left: calc(var(--sk-cx) - 44px); top: calc(var(--sk-cy) - 44px); }
.ingame .tu-sk-tgt { width: var(--sk-t); height: var(--sk-t); font-size: 20px; line-height: 1; }
/* ⚓ Dung yen (ig/touchskill.js setStand): bat = nen vang dac (khac o dang nhan chi sang len) */
.ingame .tu-sk-stand { width: var(--sk-t); height: var(--sk-t); font-size: 19px; line-height: 1; }
/* GD13: nhat do tren o thu 5 (o R), co 3/4 o nho cua cum */
.ingame .tu-sk-pick, .ingame .tu-sk-talk, .ingame .tu-sk-side { width: var(--sk-p); height: var(--sk-p); }
/* nut nho ◎ / ⚓ / nhat do / doi thoai (36 px): vung nhan cham rong them 6 px moi phia (>= 44 px nhu huong dan cam ung), hinh giu nguyen */
.ingame .tu-sk-tgt, .ingame .tu-sk-stand, .ingame .tu-sk-pick, .ingame .tu-sk-talk, .ingame .tu-sk-side { overflow: visible; }
.ingame .tu-sk-tgt::before, .ingame .tu-sk-stand::before, .ingame .tu-sk-pick::before, .ingame .tu-sk-talk::before, .ingame .tu-sk-side::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
.ingame .tu-right { align-items: flex-end; padding-right: max(12px, env(safe-area-inset-right)); padding-bottom: env(safe-area-inset-bottom); }	/* cum o vong cung sat mep phai (khung rong hon cot) */
.ingame .tu-under-dlg { visibility: hidden !important; }	/* cua so lon dang mo de len (touchui.js hideUnderDialogs) */
/* GD13: can noi an khi khong cham (chi hien luc dang giu) - lop phu de len canvas */
.ingame .tu-over.tu-stick-hide .tu-stick:not(.tu-stick-active) { visibility: hidden; }
/* ban port: mobile - hoi chieu: quat toi phu phan con lai (--cd 1 -> 0, touchskill.js paintCd moi khung hinh khi dang hoi chieu) + so giay giua o */
@property --cd { syntax: '<number>'; inherits: true; initial-value: 0; }
.ingame .tu-sk { --cd: 0; }
/* nut chu (bang chon o ky nang - ig/touchskill.js) */
.ingame .tu-menu-item { height: 48px; padding: 0 6px; border-radius: 8px; border: 1px solid rgba(232, 200, 140, .45); background: rgba(60, 42, 24, .92);
	color: #f1e3c4; font: inherit; font-size: 14px; touch-action: manipulation; }
.ingame .tu-menu-item:active { background: rgba(140, 100, 50, .95); }
.ingame .tu-side .tu-btn { min-width: 0; padding: 0 6px; flex: 1 1 40px; max-width: 60px; }

/* TuTienGioi Web Client: Tu Vi, Hieu Ung & Theo Doi Nhiem Vu */
.jxt-layer { position: fixed; inset: 0; pointer-events: none; z-index: 40; font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #e8e2d6; user-select: none; }
.jxt-layer button { font: inherit; color: inherit; touch-action: manipulation; }

.jxt-f3-tabs { position: fixed; pointer-events: auto; display: flex; gap: 4px; padding: 3px 6px; border-radius: 6px; background: rgba(14, 21, 18, .94); border: 1px solid rgba(212, 168, 79, .55); box-shadow: 0 4px 14px rgba(0, 0, 0, .65); z-index: 45; }
.jxt-tab { background: rgba(28, 41, 35, .9); border: 1px solid rgba(159, 211, 190, .28); border-radius: 5px; padding: 4px 10px; font-size: 12px; color: #bfe0d2; cursor: pointer; transition: background .15s, border-color .15s; }
.jxt-tab:hover { background: rgba(45, 65, 56, .95); border-color: rgba(242, 193, 78, .65); color: #fff2c2; }
.jxt-tab.active { background: linear-gradient(180deg, rgba(164, 118, 34, .92), rgba(114, 78, 18, .95)); border-color: #f2c14e; color: #fff8df; font-weight: 600; }

.jxt-tracker { position: fixed; pointer-events: auto; z-index: 41; max-width: min(268px, 44vw); }
.jxt-tracker-pill { padding: 5px 10px; border-radius: 16px; border: 1px solid rgba(242, 193, 78, .65); background: rgba(16, 24, 20, .88); color: #f6d983; font-size: 12px; font-weight: 600; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .6); white-space: nowrap; }
.jxt-tracker-pill.jxt-pulse { border-color: #6ce89c; color: #a7ffca; box-shadow: 0 0 10px rgba(108, 232, 156, .35); }
.jxt-tracker-card { width: 256px; max-width: 100%; border-radius: 8px; border: 1px solid rgba(212, 168, 79, .55); background: rgba(13, 20, 17, .88); box-shadow: 0 6px 20px rgba(0, 0, 0, .7); overflow: hidden; backdrop-filter: blur(2px); }
.jxt-tracker-head { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 5px 8px; background: linear-gradient(180deg, rgba(39, 55, 47, .96), rgba(22, 33, 28, .96)); border-bottom: 1px solid rgba(212, 168, 79, .35); cursor: move; }
.jxt-tracker-title { font-size: 12px; font-weight: 700; color: #ffd94e; letter-spacing: .2px; }
.jxt-tracker-actions { display: flex; gap: 3px; }
.jxt-mini-btn { padding: 2px 6px; border-radius: 4px; border: 1px solid rgba(159, 211, 190, .35); background: rgba(24, 36, 31, .9); color: #cbe8db; font-size: 11px; cursor: pointer; }
.jxt-mini-btn:hover, .jxt-mini-btn.active { border-color: #f2c14e; color: #ffe799; background: rgba(92, 69, 24, .65); }

.jxt-tracker-tuvi { padding: 5px 8px; border-bottom: 1px solid rgba(159, 211, 190, .14); background: rgba(22, 34, 29, .65); cursor: pointer; }
.jxt-tracker-tuvi:hover { background: rgba(34, 51, 44, .85); }
.jxt-tuvi-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 3px; }
.jxt-tuvi-realm { font-size: 11.5px; font-weight: 600; color: #d8f5e6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.jxt-progress { width: 100%; height: 6px; border-radius: 4px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(212, 168, 79, .3); overflow: hidden; }
.jxt-progress-lg { height: 10px; margin: 4px 0 8px; }
.jxt-progress-fill { height: 100%; background: linear-gradient(90deg, #2d8b61, #7de3a6 65%, #f2c14e); transition: width .25s ease; }

.jxt-tracker-list { max-height: 230px; overflow-y: auto; padding: 4px 6px; display: flex; flex-direction: column; gap: 4px; }
.jxt-q-item { padding: 4px 6px; border-radius: 5px; background: rgba(26, 37, 32, .72); border-left: 2px solid #598a74; cursor: pointer; transition: background .12s; }
.jxt-q-item:hover { background: rgba(40, 56, 49, .92); }
.jxt-q-item.jxt-tone-ready { border-left-color: #6ce89c; background: rgba(28, 52, 40, .82); }
.jxt-q-item.jxt-tone-warn { border-left-color: #ff7755; background: rgba(58, 28, 24, .82); }
.jxt-q-item.jxt-tone-done { border-left-color: #c29c46; opacity: .88; }
.jxt-q-item.jxt-tone-muted { border-left-color: #55645d; opacity: .78; }
.jxt-q-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.jxt-q-title { font-size: 11.5px; font-weight: 600; color: #f1e6c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jxt-q-sub { font-size: 11px; color: #b7d2c6; margin-top: 1px; line-height: 1.3; }
.jxt-q-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 2px; }
.jxt-q-loc { font-size: 10.5px; color: #8ea99c; }

.jxt-badge { display: inline-block; flex-shrink: 0; padding: 1px 5px; border-radius: 4px; font-size: 10.5px; font-weight: 600; background: rgba(45, 72, 60, .85); color: #cdebdc; }
.jxt-badge-ready, .jxt-badge-bottleneck { background: rgba(34, 114, 68, .92); color: #a7ffca; border: 1px solid rgba(108, 232, 156, .55); }
.jxt-badge-warn, .jxt-badge-tribulation { background: rgba(145, 42, 32, .92); color: #ffd4cc; border: 1px solid rgba(255, 119, 85, .6); }
.jxt-badge-done { background: rgba(108, 84, 30, .85); color: #ffe799; }
.jxt-badge-muted { background: rgba(45, 52, 49, .8); color: #95a59e; }

.jxt-go-btn { padding: 1px 6px; border-radius: 4px; border: 1px solid rgba(108, 232, 156, .55); background: rgba(25, 86, 56, .9); color: #c7ffe0; font-size: 10.5px; cursor: pointer; }
.jxt-go-btn:hover { background: rgba(39, 120, 78, .96); color: #fff; }
.jxt-go-btn.cross { border-color: rgba(242, 193, 78, .65); background: rgba(102, 74, 22, .9); color: #ffe7a3; }
.jxt-go-btn.cross:hover { background: rgba(145, 102, 26, .96); color: #fff; }

.jxt-nav-banner { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 8px; background: rgba(25, 62, 74, .88); border-bottom: 1px solid rgba(104, 204, 232, .4); font-size: 11px; color: #c8f3ff; }
.jxt-nav-banner.done { background: rgba(26, 74, 46, .9); border-bottom-color: rgba(108, 232, 156, .45); color: #c5ffde; }
.jxt-nav-banner.error { background: rgba(96, 32, 28, .92); border-bottom-color: rgba(255, 119, 85, .55); color: #ffd4cc; }
.jxt-nav-text { flex: 1; min-width: 0; line-height: 1.3; }
.jxt-nav-cancel { flex-shrink: 0; }

.jxt-mapload { position: fixed; transform: translateX(-50%); pointer-events: none; z-index: 44; width: min(480px, 94vw); padding: 7px 11px; border-radius: 8px; border: 1px solid rgba(108, 212, 238, .55); background: rgba(12, 21, 24, .9); box-shadow: 0 6px 18px rgba(0, 0, 0, .65); backdrop-filter: blur(2px); }
.jxt-mapload.ready { border-color: rgba(108, 232, 156, .65); background: rgba(14, 28, 20, .9); }
.jxt-mapload-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 600; color: #c8f3ff; }
.jxt-mapload.ready .jxt-mapload-top { color: #b8ffda; }
.jxt-mapload-pct { font-variant-numeric: tabular-nums; color: #ffe594; font-weight: 700; flex-shrink: 0; }
.jxt-mapload-bar { height: 7px; margin: 4px 0 4px; }
.jxt-mapload-sub { display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; color: #b5d5de; line-height: 1.35; }
.jxt-mapload-line { white-space: normal; overflow: visible; word-break: break-word; font-variant-numeric: tabular-nums; }
.jxt-mapload-line.file { color: #ffe6a8; }

.jxt-backdrop { position: fixed; inset: 0; pointer-events: auto; background: rgba(0, 0, 0, .58); display: flex; align-items: center; justify-content: center; padding: 12px; z-index: 55; }
.jxt-modal { width: min(740px, 95vw); max-height: min(520px, 90vh); display: flex; flex-direction: column; border-radius: 10px; border: 1px solid rgba(242, 193, 78, .65); background: linear-gradient(180deg, #141d19, #0e1512); box-shadow: 0 14px 40px rgba(0, 0, 0, .85); overflow: hidden; }
.jxt-modal-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; background: linear-gradient(180deg, #25342c, #18231e); border-bottom: 1px solid rgba(212, 168, 79, .4); }
.jxt-modal-title { font-size: 14px; font-weight: 700; color: #ffd94e; margin-right: auto; }
.jxt-modal-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.jxt-close { width: 26px; height: 26px; border-radius: 5px; border: 1px solid rgba(212, 168, 79, .45); background: rgba(46, 28, 24, .9); color: #ffcfbd; cursor: pointer; font-weight: 700; }
.jxt-close:hover { background: rgba(118, 38, 30, .95); color: #fff; }

.jxt-modal-body { padding: 10px 12px; overflow-y: auto; flex: 1; }
.jxt-tuvi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jxt-card { padding: 9px 10px; border-radius: 8px; background: rgba(21, 31, 27, .9); border: 1px solid rgba(159, 211, 190, .2); display: flex; flex-direction: column; gap: 4px; }
.jxt-card-title { font-size: 11px; font-weight: 700; letter-spacing: .5px; color: #f2c14e; margin-top: 6px; padding-bottom: 2px; border-bottom: 1px solid rgba(242, 193, 78, .22); }
.jxt-card-title:first-child { margin-top: 0; }
.jxt-realm-hero { padding: 6px 8px; border-radius: 6px; background: rgba(32, 48, 41, .75); border: 1px solid rgba(242, 193, 78, .35); margin-bottom: 2px; }
.jxt-realm-name { font-size: 16px; font-weight: 700; color: #ffe792; }
.jxt-realm-sub { font-size: 11.5px; color: #b6d6c7; margin-top: 2px; }
.jxt-kv-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 1px 0; }
.jxt-k { color: #9fc0b2; }
.jxt-v { color: #f2ebd9; font-weight: 600; text-align: right; }
.jxt-highlight-note { padding: 5px 8px; border-radius: 5px; background: rgba(58, 46, 18, .48); border: 1px solid rgba(242, 193, 78, .35); color: #ffe59c; font-size: 12px; }
.jxt-npc-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 0; border-bottom: 1px dashed rgba(159, 211, 190, .12); }
.jxt-npc-info { min-width: 0; }
.jxt-npc-name { font-size: 12px; font-weight: 600; color: #d8f2e5; }
.jxt-npc-loc { font-size: 11px; color: #96b5a8; }
.jxt-guide-lines { white-space: pre-line; font-size: 11.5px; color: #c7dfd4; line-height: 1.45; }

.jxt-fx-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.jxt-fx-status { font-size: 12px; color: #a8cbc0; }
.jxt-fx-list { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; }
.jxt-fx-row { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; border-radius: 5px; background: rgba(24, 34, 30, .72); border: 1px solid rgba(159, 211, 190, .14); font-size: 12px; }
.jxt-fx-row.nonzero { border-color: rgba(108, 232, 156, .48); background: rgba(26, 48, 38, .86); }
.jxt-fx-name { color: #cce3d8; }
.jxt-fx-val { font-weight: 700; color: #8da59a; }
.jxt-fx-row.nonzero .jxt-fx-val { color: #8bffb8; }

.jxt-quest-split { display: grid; grid-template-columns: 245px 1fr; gap: 10px; min-height: 300px; }
.jxt-quest-nav { display: flex; flex-direction: column; gap: 5px; max-height: 390px; overflow-y: auto; padding-right: 2px; }
.jxt-quest-nav-item { text-align: left; padding: 6px 8px; border-radius: 6px; border: 1px solid rgba(159, 211, 190, .18); background: rgba(24, 35, 30, .82); cursor: pointer; }
.jxt-quest-nav-item:hover { border-color: rgba(242, 193, 78, .5); }
.jxt-quest-nav-item.active { border-color: #f2c14e; background: rgba(52, 46, 26, .88); }
.jxt-quest-detail { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(159, 211, 190, .2); background: rgba(20, 29, 25, .92); display: flex; flex-direction: column; gap: 8px; }
.jxt-qd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.jxt-qd-title { font-size: 15px; font-weight: 700; color: #ffd94e; }
.jxt-qd-headline { padding: 6px 8px; border-radius: 6px; background: rgba(34, 52, 44, .7); color: #e2f5ec; font-weight: 600; font-size: 13px; }
.jxt-qd-lines { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: #c7ded3; line-height: 1.45; }
.jxt-qd-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.jxt-action-btn { padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(159, 211, 190, .4); background: rgba(28, 42, 36, .95); color: #d8efe4; font-size: 12px; font-weight: 600; cursor: pointer; }
.jxt-action-btn.active { border-color: #f2c14e; color: #ffe799; }
.jxt-action-btn.primary { border-color: #6ce89c; background: rgba(28, 92, 60, .95); color: #d6ffea; }
.jxt-action-btn:disabled { opacity: .65; cursor: default; }
.jxt-empty-note { padding: 12px; text-align: center; color: #95aba0; font-size: 12px; }

body.jxt-mobile .jxt-tracker-card { width: 224px; }
body.jxt-mobile .jxt-tracker-list { max-height: 128px; }
@media (max-width: 680px) {
	.jxt-tuvi-grid, .jxt-fx-list, .jxt-quest-split { grid-template-columns: 1fr; }
	.jxt-quest-nav { max-height: 155px; }
}

/* Account Registration / Change-Password Overlay (login screen only) */
.jxa-bar { position: fixed; top: 30px; right: 6px; z-index: 48; display: flex; gap: 6px; pointer-events: auto; }
.jxa-bar-btn { height: 26px; padding: 0 10px; border: 1px solid rgba(232, 200, 140, .6); border-radius: 5px;
	background: rgba(24, 18, 12, .9); color: #f4e2bc; font: 600 12px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .55); }
.jxa-bar-btn:hover { background: rgba(92, 66, 26, .95); border-color: #f2c14e; }
.jxa-bar-btn.primary { background: linear-gradient(180deg, rgba(164, 118, 34, .95), rgba(114, 78, 18, .98)); color: #fff8df; border-color: #f2c14e; }
.jxa-backdrop { position: fixed; inset: 0; z-index: 65; display: flex; align-items: center; justify-content: center; padding: 14px;
	background: rgba(0, 0, 0, .68); pointer-events: auto; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #ece4d2; }
.jxa-modal { width: min(420px, 95vw); border-radius: 10px; border: 1px solid rgba(242, 193, 78, .65);
	background: linear-gradient(180deg, #161f1b, #0e1412); box-shadow: 0 16px 42px rgba(0, 0, 0, .85); overflow: hidden; }
.jxa-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 12px;
	background: linear-gradient(180deg, #25342c, #18231e); border-bottom: 1px solid rgba(212, 168, 79, .4); }
.jxa-title { font-size: 14px; font-weight: 700; color: #ffd94e; margin-right: auto; }
.jxa-tabs { display: flex; gap: 4px; }
.jxa-tab { padding: 4px 10px; border-radius: 5px; border: 1px solid rgba(159, 211, 190, .3); background: rgba(24, 36, 30, .9);
	color: #bfe0d2; font: 600 12px/1.2 inherit; cursor: pointer; }
.jxa-tab.active { background: linear-gradient(180deg, #a47622, #724e12); border-color: #f2c14e; color: #fff8df; }
.jxa-close { width: 26px; height: 26px; border-radius: 5px; border: 1px solid rgba(212, 168, 79, .45);
	background: rgba(54, 28, 24, .92); color: #ffd1c2; font-weight: 700; cursor: pointer; }
.jxa-body { padding: 12px 14px 14px; }
.jxa-form { display: flex; flex-direction: column; gap: 9px; }
.jxa-note { font-size: 12px; color: #b7d2c6; padding: 6px 8px; border-radius: 6px; background: rgba(26, 40, 34, .75); border: 1px solid rgba(159, 211, 190, .2); }
.jxa-label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: #e2d5b7; }
.jxa-label span { font-weight: 400; color: #95afa3; font-size: 11px; }
.jxa-input { width: 100%; padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(212, 168, 79, .45);
	background: #0b110f; color: #fff7e2; font: 14px inherit; outline: none; user-select: text; -webkit-user-select: text; }
.jxa-input:focus { border-color: #ffd94e; box-shadow: 0 0 0 2px rgba(242, 193, 78, .18); }
.jxa-status { min-height: 18px; font-size: 12.5px; line-height: 1.4; }
.jxa-status.ok { color: #8bffb8; }
.jxa-status.err { color: #ff9a8a; }
.jxa-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.jxa-btn { padding: 7px 14px; border-radius: 6px; border: 1px solid rgba(212, 168, 79, .45);
	background: rgba(34, 48, 41, .92); color: #ece4d2; font: 600 13px/1.2 inherit; cursor: pointer; }
.jxa-btn.primary { background: linear-gradient(180deg, #b88528, #8a6016); color: #160f05; border-color: #f2c14e; }
.jxa-btn:disabled { opacity: .6; cursor: default; }
