#bkwin { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 112rem; max-width: calc(100vw - 1.6rem); height: 82rem; max-height: calc(100vh - 1.6rem); z-index: 8; }
#bkwin.hidden { display: none; }
#bkwin header .bk-pts { order: 1; margin-left: 1.2rem; font: 400 max(11px, 1.25rem) var(--sans); color: var(--ink2); white-space: nowrap; }
#bkwin header .bk-pts b { font: 600 max(13px, 1.6rem) var(--serif); color: #ffd25a; font-variant-numeric: tabular-nums; }
#bkwin header .bk-pts small { color: var(--ink3); }
.bk-tabs { flex: none; display: flex; gap: .6rem; padding: .6rem 2rem 0; }
.bk-tab, #bkwin button.bk-tab { flex: 0 1 16rem; min-width: 0; height: 5.6rem; padding: 0 2.6rem 0 2.4rem; border: 0; border-image: none; background: center / 100% 100% no-repeat transparent; color: #d8c8a8;
font: 600 max(11px, 1.35rem) var(--serif); text-shadow: 0 1px 2px #000; cursor: pointer; filter: brightness(.72) saturate(.8); transition: filter .15s, transform .15s; }
.bk-tab > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-tab:hover { filter: brightness(.9); }
#bkwin .bk-tab.on { filter: none; color: #ffe8b0; transform: translateY(.3rem); }
.bk-wrap { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: .4rem 1.2rem 1.2rem; container-type: size; }
.bk-book { position: relative; width: min(100cqw, 160cqh); aspect-ratio: 1024 / 640; background: center / 100% 100% no-repeat; }
.bk-page { position: absolute; top: 8.75%; height: 82.5%; width: 41.4%; display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem 1.6rem; box-sizing: border-box; min-height: 0; overflow: hidden; }
.bk-left { left: 6.25%; } .bk-right { left: 52.34%; }
.bk-grp { flex: none; display: flex; gap: .5rem; align-items: center; }
.bk-grp select { flex: 1; min-width: 0; height: 3.4rem; font: 600 max(11px, 1.3rem) var(--serif); color: #f0dcae; background: rgba(0,0,0,.4); border: 1px solid rgba(232,200,112,.35); }
.bk-arw { flex: none; width: 3.4rem; height: 3.4rem; padding: 0; font: 700 max(14px, 2rem) var(--serif); line-height: 1; }
.bk-grid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: max-content; gap: .6rem; align-content: start; }
.bk-cell { position: relative; display: flex; flex-direction: column; align-items: center; padding: .4rem .3rem .5rem; cursor: pointer; border: 1px solid rgba(255,255,255,.05); background: rgba(0,0,0,.22); min-width: 0; }
.bk-cell:hover { background: rgba(255,255,255,.05); }
.bk-cell.sel { border-color: rgba(232,200,112,.6); background: rgba(232,200,112,.1); }
.bk-cell canvas { width: 100%; max-width: 8.4rem; aspect-ratio: 1; }
.bk-cell .bk-seal { position: absolute; right: .2rem; top: .2rem; width: 2.8rem; height: 2.8rem; filter: drop-shadow(0 .1rem .2rem #000); }
.bk-cell b { max-width: 100%; font: 600 max(10px, 1.1rem) var(--sans); color: #ecdcb8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-cell.unknown b { color: #8a7a62; }
.bk-cell small { font-size: max(9px, .95rem); color: #a8987a; }
.bk-foot { flex: none; display: flex; gap: 1.4rem; align-items: center; font-size: max(10px, 1.15rem); color: #c8b898; }
.bk-foot b, .bk-fs b { color: #fff3cf; }
.bk-fs { display: inline-flex; align-items: center; gap: .3rem; }
.bk-fs img { width: 2rem; height: 2rem; }
.bk-head { flex: none; display: flex; gap: 1.2rem; align-items: center; }
.bk-big { flex: none; width: 15rem; height: 15rem; background: radial-gradient(circle at 50% 60%, rgba(255,220,160,.08), transparent 70%); }
.bk-id { min-width: 0; display: flex; flex-direction: column; gap: .3rem; font-size: max(10px, 1.15rem); color: #c8b898; }
.bk-name { font: 700 max(14px, 2rem) var(--serif); color: #ffe3a0; line-height: 1.15; }
.bk-place { color: #e0d0b0; }
.bk-res { display: flex; flex-wrap: wrap; gap: .2rem .8rem; }
.bk-res .r1 { color: #ff9a6a; } .bk-res .r2 { color: #8ad0ff; } .bk-res .r3 { color: #ffe36a; } .bk-res .r4 { color: #d49aff; }
.bk-hint { color: #8a7a62; font-style: italic; }
.bk-kills { flex: none; font-size: max(11px, 1.3rem); color: #d8c8a8; } .bk-kills b { font: 700 max(13px, 1.7rem) var(--serif); color: #fff3cf; }
.bk-bar { flex: none; position: relative; height: 1.7rem; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.1); overflow: hidden; }
.bk-bar > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #6a4c18, #e0b448); }
.bk-bar small { position: relative; display: block; text-align: center; font-size: max(9px, 1rem); line-height: 1.7rem; color: #fff; text-shadow: 0 1px 1px #000; font-variant-numeric: tabular-nums; }
.bk-seals { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.bk-sl { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1rem; padding: .5rem .3rem; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.05); }
.bk-sl img { width: 5.2rem; height: 5.2rem; filter: grayscale(1) brightness(.4); opacity: .7; }
.bk-sl.on img { filter: drop-shadow(0 .1rem .3rem #000); opacity: 1; }
.bk-sl.on { border-color: rgba(232,200,112,.35); }
.bk-sl b { font: 600 max(10px, 1.1rem) var(--serif); color: #e8d8b0; }
.bk-sl small { font-size: max(9px, .95rem); color: #a8987a; }
.bk-sl em { font-style: normal; font-size: max(9px, 1rem); color: #ffd25a; }
.bk-sum { margin-top: auto; flex: none; display: flex; flex-direction: column; gap: .3rem; padding: .7rem .9rem; background: rgba(0,0,0,.3); border: 1px solid rgba(232,200,112,.22); font-size: max(10px, 1.1rem); color: #c8b898; }
.bk-sum b { color: #ffd25a; }
.bk-nx { color: #e0d0b0; }
.bk-big-pts { flex: none; display: flex; align-items: center; gap: 1.2rem; }
.bk-big-pts img { width: 9rem; height: 9rem; filter: drop-shadow(0 .2rem .5rem #000); }
.bk-big-pts span { display: flex; flex-direction: column; line-height: 1.1; }
.bk-big-pts small { font-size: max(10px, 1.15rem); color: #c8b898; }
.bk-big-pts b { font: 700 max(20px, 3.6rem) var(--serif); color: #ffe3a0; font-variant-numeric: tabular-nums; }
.bk-tsum { flex: none; display: flex; flex-direction: column; gap: .4rem; }
.bk-trow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; white-space: nowrap; gap: 1rem; align-items: center; padding: .5rem .8rem; background: rgba(0,0,0,.25); font-size: max(10px, 1.15rem); color: #c8b898; }
.bk-trow > b { font: 600 max(11px, 1.3rem) var(--serif); color: #f0dcae; overflow: hidden; text-overflow: ellipsis; }
.bk-how { margin: 0; font-size: max(10px, 1.1rem); color: #b8a888; line-height: 1.45; }
.bk-goals { margin: 0; padding-left: 1.6rem; font-size: max(9px, 1.05rem); color: #c8b898; line-height: 1.5; overflow-y: auto; min-height: 0; }
.bk-right h3 { flex: none; margin: 0; font: 700 max(13px, 1.7rem) var(--serif); color: #ffe3a0; }
.bk-steps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.bk-steps li { display: flex; gap: 1rem; align-items: baseline; padding: .45rem .8rem; background: rgba(0,0,0,.25); font-size: max(10px, 1.15rem); color: #a8987a; border-left: .3rem solid rgba(255,255,255,.08); }
.bk-steps li b { flex: none; min-width: 4.6rem; font: 600 max(11px, 1.25rem) var(--serif); color: #c8b898; font-variant-numeric: tabular-nums; }
.bk-steps li.got { color: #f0e4c8; border-left-color: #e0b448; background: rgba(224,180,72,.1); }
.bk-steps li.got b { color: #ffd25a; }
.bk-steps li small { color: #8a7a62; }
#bk-note { position: fixed; left: 50%; top: 9%; z-index: 9030; transform: translateX(-50%); pointer-events: none; }
#bk-note.hidden { display: none; }
#bk-note .bkn-in { display: flex; align-items: center; gap: 1rem; padding: .7rem 1.6rem .7rem .8rem; background: linear-gradient(90deg, rgba(30,20,12,.94), rgba(20,14,10,.88)); border: 1px solid rgba(232,200,112,.45); box-shadow: 0 .4rem 1.4rem rgba(0,0,0,.6); }
#bk-note.in .bkn-in { animation: bkn-in .35s cubic-bezier(.2, 1.4, .4, 1) both; }
#bk-note.out .bkn-in { animation: bkn-out .38s ease-in both; }
@keyframes bkn-in { from { opacity: 0; transform: translateY(-1.2rem) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes bkn-out { to { opacity: 0; transform: translateY(-.8rem); } }
#bk-note img { width: 5.2rem; height: 5.2rem; flex: none; filter: drop-shadow(0 .1rem .3rem #000); }
#bk-note span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
#bk-note small { font: 400 max(9px, 1.05rem) var(--sans); color: #c8b898; letter-spacing: .06em; }
#bk-note b { font: 700 max(13px, 1.7rem) var(--serif); color: #fff3cf; white-space: nowrap; }
#bk-note em { display: block; font: 600 max(10px, 1.15rem) var(--sans); font-style: normal; color: #e0a060; }
#bk-note em > span { display: inline; margin-right: .3em; }
#bk-note em.s2 { color: #d8e4f4; } #bk-note em.s3 { color: #ffd25a; }
#bk-note .bkn-step { display: block; font-style: normal; font-size: max(10px, 1.1rem); color: #9ff0b0; }
#bk-note .bkn-step > span { display: inline; margin-right: .3em; }
body.touch #bkwin { left: calc(.8rem + var(--sal)); right: calc(.8rem + var(--sar)); top: calc(.8rem + var(--sat)); bottom: calc(.8rem + var(--sab)); width: auto; height: auto; max-width: none; max-height: none; transform: none; }
body.touch #bkwin { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); column-gap: .2rem; padding-left: .8rem; padding-right: .8rem; }
body.touch .bk-tabs { flex-direction: column; padding: .2rem 0; gap: .5rem; }
body.touch #bkwin button.bk-tab { flex: none; width: 11.5rem; height: 4.4rem; padding: 0 2.2rem 0 1.6rem; font-size: max(10px, 1.2rem); }
body.touch #bkwin .bk-tab.on { transform: translateX(.5rem); }
body.touch .bk-wrap { padding: 0; }
body.touch .bk-page { padding: .5rem .7rem; gap: .4rem; overflow-y: auto; overscroll-behavior: contain; }
body.touch .bk-grid { grid-template-columns: repeat(3, 1fr); overflow: visible; flex: none; }
body.touch .bk-cell canvas { max-width: 6.4rem; }
body.touch .bk-arw { width: 2.8rem; }
body.touch .bk-head { gap: .6rem; }
body.touch .bk-big { width: 8rem; height: 8rem; }
body.touch .bk-name { font-size: max(12px, 1.6rem); }
body.touch .bk-sl img { width: 3.2rem; height: 3.2rem; }
body.touch .bk-sum { margin-top: .2rem; }
body.touch .bk-big-pts img { width: 6rem; height: 6rem; }
body.touch .bk-steps { flex: none; overflow: visible; }
body.touch #bk-note { top: calc(5% + var(--sat)); }