/* Người Lười Tu Tiên: concept shell; battle HUD and strip measurements retain their existing layout. */
.game-brand{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid #9c7b453f;background:#0a191be8;color:#e7c98d}
.game-brand svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.5}
.game-brand .brand-art{width:30px;height:30px;object-fit:contain;image-rendering:auto;flex:none}
.game-brand b{font:600 25px var(--f-display);line-height:1}.game-brand small{font-size:10px;color:#9aab9f;margin-left:auto}
body.strip .game-brand{display:none}
body:is(.full,.panel) .book>.tabs{display:flex;align-items:stretch;gap:0;overflow-x:auto;scrollbar-width:thin;background:#0c1d20ed}
body:is(.full,.panel) .book>.tabs>.tab{display:flex;align-items:center;justify-content:center;gap:7px;padding:12px 9px;white-space:nowrap;border:0;border-bottom:2px solid transparent;min-width:0;flex:1;color:#b6b5a5;font-size:13px}
.nav-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linejoin:round;stroke-linecap:round;flex:none}
body:is(.full,.panel) .book>.tabs>.tab[aria-selected=true]{color:#f0d698;border-bottom-color:#d4b477;background:linear-gradient(0deg,#aa80351e,transparent)}
body:is(.full,.panel) .book>.tabs>.tab[hidden]{display:none}
body:is(.full,.panel) .book>.tabs>.tab:hover{color:#f1d394}
body:is(.full,.panel) .book{border:1px solid #967a454d}
body:is(.full,.panel) .pane{background:#08181a33}
#btnPet{position:relative;color:#d7bd82}#btnPet.ready:after{content:'';position:absolute;right:3px;top:3px;width:6px;height:6px;border-radius:50%;background:#eb896d;border:1px solid #1a2527}
.pet-spin-modes{display:flex;gap:6px;grid-column:1/-1}.pet-spin-modes button{font:inherit;font-size:12px;padding:6px 12px;border:1px solid #6e6448;background:#132523;color:#bac7b7}.pet-spin-modes button[aria-pressed=true]{background:#514329;color:#f1d597;border-color:#b5975c}.pet-spin-eggs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:20px;grid-column:1/-1}.pet-spin-eggs article{display:flex;align-items:center;flex-direction:column;gap:10px;border:1px solid #655b43;padding:14px 5px;background:#0d1d20}.pet-spin-eggs .ic{width:min(84px,100%);height:auto}.pet-spin-eggs b{font-size:12px;text-align:center}.pet-spin-eggs span{color:#e7ce8f}.pet-spin-controls{grid-column:1/-1;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;padding:14px}.pet-spin-controls p{width:100%;text-align:center}@media(max-width:500px){.pet-spin-eggs{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px}}
body.panel .game-brand{padding:7px 14px}.game-brand~.tabs{position:relative}
@media(max-width:760px){body:is(.full,.panel) .book>.tabs>.tab{gap:4px;font-size:11.5px;padding:9px 6px}.nav-icon{width:20px;height:20px}.game-brand b{font-size:23px}.game-brand small{display:none}}
@media(max-width:460px){body:is(.full,.panel) .book>.tabs>.tab{flex-direction:column;gap:3px;min-width:54px;font-size:10px}.game-brand{padding:8px 12px}}

/* Header art cut from the reference; labels stay font-rendered. Balances sit below. */
body:is(.full,.panel) aside.book{container:concept-book / inline-size}
.concept-header{display:grid;grid-template-columns:minmax(0,1fr);align-items:stretch;flex:none;position:sticky;top:0;z-index:5;min-width:0;min-height:48px;background:#071719 url('../img/header/header-tile.png') repeat-x left top;background-size:auto 100%;border-bottom:1px solid #a6894e;box-shadow:0 2px 12px #0006}
.concept-header{--f-display:"Be Vietnam Pro","Segoe UI",sans-serif}
.concept-header .game-brand{min-width:0;gap:7px;padding:8px 12px;border:0;background:none}
.concept-header .game-brand svg{width:26px;height:26px;flex:none}
.concept-header .game-brand .brand-art{width:32px;height:32px}
.concept-header .game-brand b{font-size:17px;line-height:1.1;color:#e4bd7b;white-space:nowrap;letter-spacing:-.02em}
.concept-header .game-brand small{display:none}
body:is(.full,.panel) .concept-header>.tabs{position:static;display:flex;align-items:stretch;min-width:0;gap:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;border:0;background:none}
body:is(.full,.panel) .concept-header>.tabs>.tab{display:flex;flex:1 0 auto;align-items:center;justify-content:center;gap:8px;min-width:88px;min-height:48px;padding:8px 12px;white-space:nowrap;border:0;border-bottom:2px solid transparent;color:#c5c1b2;font:600 15px/1.2 var(--f-display);background:none}
.concept-header .nav-icon{width:26px;height:28px;object-fit:contain;flex:none;color:#9b9481}
.nav-cut{object-fit:contain}
.nav-art{object-fit:contain;image-rendering:auto}
body:is(.full,.panel) .concept-header>.tabs>.tab[aria-selected=true]{color:#ffe5a2;border-bottom-color:#efcb78;background:linear-gradient(0deg,#b78d3433,transparent 85%);text-shadow:0 0 10px #d8ad5c55}
.concept-header .tab[aria-selected=true] .nav-cut{filter:brightness(1.3) sepia(.25)}
body:is(.full,.panel) .concept-header>.tabs>.tab[hidden]{display:none}
body:is(.full,.panel) .concept-header>.tabs>.tab:hover{color:#ffe7b0;background-color:#c5a25d10}
.concept-tools{display:flex;align-items:center;justify-content:flex-end;flex:none;gap:10px;padding:6px 12px;min-width:0;border-bottom:1px solid #a6894e45;background:linear-gradient(90deg,#08191dc9,#071419ed),url('../img/header/header-scenery.webp') center/cover}
.concept-wallet{display:flex;align-items:center;gap:6px;min-width:0;max-width:100%;min-height:30px;padding:3px 9px;border:1px solid #62736980;border-radius:4px;background:#041214ba;color:#e1dece}
.concept-wallet>img{width:22px;height:22px;object-fit:contain;flex:none}
.concept-wallet>span:not(.concept-balance){font-size:11px;color:#b0beb6;white-space:nowrap}
.concept-balance{min-width:0;overflow-wrap:anywhere;font-size:12px;line-height:1.25;font-variant-numeric:tabular-nums;color:#f0dfac}
.concept-wallet button{display:grid;place-items:center;width:22px;height:22px;padding:0;border:0;background:none;color:#c6bc96;font-size:23px;line-height:1}
.concept-header button:focus-visible,.concept-tools button:focus-visible{outline:2px solid #e5c47b;outline-offset:-3px}
/* Tab con của nhóm đang mở (vd. Tu luyện: Đột phá · Công pháp · Kỳ duyên): cùng hàng với ví linh thạch, nằm bên trái */
.subtabs{display:flex;align-items:stretch;gap:2px;margin-right:auto;min-width:0;overflow-x:auto;scrollbar-width:none}
.subtabs[hidden]{display:none}
.subtabs:is([data-group="tuluyen"],[data-group="craft"],[data-group="pet"],[data-group="market"])>.tab{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.subtab-art{width:22px;height:22px;fill:none;stroke:#d1ae68;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none;pointer-events:none}
.subtabs>.tab:is(:hover,[aria-selected=true]) .subtab-art{stroke:#ffe5a2}
body:is(.full,.panel) .subtabs>.tab{flex:none;margin:0;padding:5px 12px;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;color:#a8b3ac;font:600 13px/1.2 "Be Vietnam Pro","Segoe UI",sans-serif;white-space:nowrap;cursor:pointer}
body:is(.full,.panel) .subtabs>.tab:hover{color:#f2e2b9}
body:is(.full,.panel) .subtabs>.tab[aria-selected=true]{color:#ffe5a2;border-bottom-color:#efcb78}
body:is(.full,.panel) .subtabs>.tab[hidden]{display:none}
body.strip .concept-header,body.strip .concept-tools{display:none}
body.rank-panel .concept-header>.tabs{display:none}
@container concept-book (max-width:1000px){
 .concept-header{grid-template-columns:minmax(0,1fr)}
 .concept-header .game-brand{padding:7px 12px}
 body:is(.full,.panel) .concept-header>.tabs{border-top:1px solid #b79a5426}
 body:is(.full,.panel) .concept-header>.tabs>.tab{min-height:42px;font-size:14px;padding:6px 10px}
}
@container concept-book (max-width:560px){
 .concept-tools{flex-wrap:wrap;justify-content:flex-start;gap:6px;padding:6px 10px}
 body:is(.full,.panel) .concept-header>.tabs>.tab{flex-direction:row;min-width:98px;gap:6px}
 .concept-header .nav-icon{width:24px;height:26px}
 .concept-wallet{flex:0 1 auto}
 .concept-wallet>span:not(.concept-balance){font-size:10px}
}

/* Bản web (full): chỉ hiện màn tu luyện ở giữa; bảng (tab) phủ kín màn hình khi mở, nội dung vừa khít chiều cao (book-fit).
   Khung tu luyện co theo chiều cao màn hình để canvas 5:4 + thanh tu vi + thanh nút vừa một màn (nhật ký là tooltip). */
.book-close{display:none}
/* Nền ngoài khung game của bản web; các cảnh chiến đấu vẫn vẽ trên canvas riêng. */
body.full{min-height:100dvh;background:#0b1720 url('../img/bg/web-outer-v1.png') center/cover no-repeat fixed}
body.full .grid{grid-template-columns:minmax(0,1fr)}
body.full .wrap{max-width:clamp(340px,calc((100dvh - 150px) * 1.25),1100px)}
body.full:not(.book-open) aside.book{display:none}
body.full.book-open{overflow:hidden}
body.full aside.book{position:fixed;z-index:40;inset:0;display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain;border:0;border-radius:0;background:linear-gradient(135deg,rgba(7,24,25,.97),rgba(5,18,22,.99))}
body.full aside.book>.pane{flex:1 0 auto}
body.full .concept-header{padding-right:48px}
body.full .book-close{display:grid;place-items:center;position:absolute;top:6px;right:6px;width:36px;height:36px;padding:0;border:1px solid #a6894e80;border-radius:50%;background:#071719d9;color:#e4bd7b}
.book-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
/* bản web: Cài đặt + Xếp hạng là icon cố định ở góc trên trái; bảng (z-index 40) phủ lên khi mở */
.web-corner{display:none}
body.full .web-corner{position:fixed;z-index:30;top:10px;left:10px;display:flex;gap:6px}
body.full .web-corner .ib{width:40px;height:40px;background:#071719d9;border:1px solid #a6894e80;border-radius:50%}
body.full .web-corner .ib:hover{border-color:#efcb78}
body.full .web-corner svg{width:20px;height:20px}
.book-close:hover{color:#ffe7b0;border-color:#efcb78}
@media (max-width:620px){
  body.full{padding:58px 10px 20px}   /* chừa chỗ cho icon góc trên trái */
  body.full .wrap{max-width:none}
}

