/* Ink, paper tabs and useful objects: two tools from the same adventure diary. */
.pocket-tabs{display:flex;--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px;flex-shrink:0;border-bottom:2px solid #56604c;padding:4px 4px 0;margin-bottom:12px}
.pocket-tabs button{position:relative;min-height:44px;flex:1;padding:9px 8px;background:#e4e6d8;border:1.5px solid #79816b;border-bottom:0;border-radius:8px 12px 0 0;font-size:12px;font-weight:700;color:#59634e;white-space:nowrap;box-shadow:inset 0 -3px #cfd5bf}
.pocket-tabs button[aria-selected=true]{background:#faf5e5;color:#303c2e;box-shadow:none;transform:translateY(2px);border-bottom:2px solid #faf5e5}
.pocket-tabs button span{display:inline-block;margin-left:3px;font-size:10px;font-weight:600;background:#d6ddc5;color:#3f5338;border-radius:5px;padding:2px 5px;min-width:19px}
.book-tools{flex-shrink:0}
.book-ruler{display:flex;align-items:center;justify-content:space-between;--minitool-row-gap:5px;--minitool-column-gap:5px;grid-gap:5px;gap:5px;padding:0 2px 9px;font-size:10px;color:#657057}
.book-ruler>span:last-child{display:flex;align-items:center;--minitool-row-gap:4px;--minitool-column-gap:4px;grid-gap:4px;gap:4px}
.book-ruler svg{width:13px;height:13px;color:#a36553}
.book-ruler strong{font-size:12px;color:#384333;font-variant-numeric:tabular-nums}
.book-advice{display:flex;align-items:flex-start;--minitool-row-gap:5px;--minitool-column-gap:5px;grid-gap:5px;gap:5px;margin:0 2px 9px;padding:6px 8px;border:1px dashed #b6bca8;border-radius:6px 9px 6px 8px;background:#f1eddd;font-size:10px;line-height:1.5;color:#536144}
.book-advice svg{flex-shrink:0;width:12px;height:12px;margin-top:2px;color:#6f8a5a}
@media(max-height:420px){.book-advice{margin-bottom:6px;padding:3px 7px;line-height:1.4}}
.book-scroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:1px 3px 10px 0;scrollbar-width:thin}
.book-entry{border-bottom:1px dashed #b6bca8;margin:0;background:transparent}
.book-sheet .enemy-card{display:grid;grid-template-columns:46px minmax(0,1fr) 78px;--minitool-row-gap:9px;--minitool-column-gap:9px;grid-gap:9px;gap:9px;align-items:center;width:100%;min-height:87px;padding:9px 2px;border:0;border-radius:5px;background:transparent;text-align:left;flex-wrap:nowrap}
.book-sheet .enemy-card:hover,.book-sheet .enemy-card[aria-expanded=true]{background:#ebeeda}.book-sheet .enemy-card>img,.book-sheet .enemy-card>canvas{width:46px;height:55px;object-fit:contain}
.book-sheet .enemy-card .enemy-content{min-width:0;display:block}
.book-sheet .enemy-card h3{margin:0 0 8px;font-size:13px;letter-spacing:0;line-height:1.3;color:#30382c;overflow-wrap:break-word;overflow-wrap:anywhere}
.book-sheet .enemy-card h3>small{font-size:10px;color:#69725f;font-weight:500;white-space:nowrap}
.book-sheet .enemy-numbers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));--minitool-row-gap:3px;--minitool-column-gap:3px;grid-gap:3px;gap:3px;line-height:1.4;color:#3c4837}
.book-sheet .enemy-numbers>span{min-width:0;display:flex;flex-direction:column}
.book-sheet .enemy-numbers small{color:#69715e;font-size:9px}
.book-sheet .enemy-numbers b{font-size:11px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:break-word;overflow-wrap:anywhere}
.book-sheet .damage-pill{display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;width:100%;min-height:66px;--minitool-row-gap:3px;--minitool-column-gap:3px;grid-gap:3px;gap:3px;padding:6px 3px;border:1px solid #b8c5a4;border-radius:7px 4px 8px 5px;background:#e7eddc;color:#3c5e39;white-space:normal;line-height:1.15}
.book-sheet .damage-pill small{font-size:10px;font-weight:600;opacity:1;margin:0}
.book-sheet .damage-pill strong{font-size:19px;letter-spacing:-.6px;font-variant-numeric:tabular-nums;overflow-wrap:break-word;overflow-wrap:anywhere;max-width:100%}
.book-sheet .damage-caption{font-size:8px;letter-spacing:.5px}
.book-sheet .damage-pill.hurt{background:#eee8ce;border-color:#d2c49c;color:#745b28}
.book-sheet .damage-pill.costly{background:#edd7bd;border-color:#c59d74;color:#794916}
.book-sheet .damage-pill.danger{background:#eedbd3;border-color:#c39a89;color:#8a4438}
.book-sheet .damage-pill.blocked{background:#e4e2dc;border-color:#b7b5ac;color:#5a5953}
.enemy-note{padding:3px 8px 11px 57px;background:#ebeeda;border-radius:0 0 7px 7px;margin:0 0 6px}
.enemy-rewards{display:flex;flex-wrap:wrap;--minitool-row-gap:7px;--minitool-column-gap:12px;grid-gap:7px 12px;gap:7px 12px;font-size:10px;color:#4f5b42}
.enemy-rewards>span{display:flex;align-items:center;--minitool-row-gap:3px;--minitool-column-gap:3px;grid-gap:3px;gap:3px}
.enemy-rewards svg{width:12px;height:12px}
.enemy-note p{font-size:10px;line-height:1.6;margin:7px 0;color:#58634e}
.map-mark-button{display:flex;align-items:center;--minitool-row-gap:6px;--minitool-column-gap:6px;grid-gap:6px;gap:6px;min-height:44px;width:100%;font-size:11px;background:#faf6e9;border:1px solid #869378;border-radius:5px 8px 5px 7px;padding:9px;color:#344b32}
.map-mark-button svg{width:15px;height:15px}
.map-mark-button>span{margin-left:auto;font-size:18px}
.adventure-empty{text-align:center;padding:28px 12px;color:#59664f;font-size:12px;line-height:1.9}.adventure-empty img,.adventure-empty canvas{display:block;width:82px;height:82px;object-fit:contain;margin:0 auto 12px}
.adventure-empty p{margin:0}
.book-footnote{display:flex;justify-content:space-between;--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px;flex-wrap:wrap}
.book-footnote small{font-size:9px}
.bag-content{flex:1;display:flex;flex-direction:column;min-height:0}
.bag-treasures{display:flex;flex:1;flex-direction:column;min-height:0}
.bag-grid-scroll{flex:1;min-height:80px;overflow-y:auto;overscroll-behavior:contain;padding:0 4px 10px 0;scrollbar-width:thin}
.pocket-keys{display:flex;justify-content:space-between;--minitool-row-gap:5px;--minitool-column-gap:5px;grid-gap:5px;gap:5px;padding:0 0 9px}
.pocket-keys>span{display:flex;align-items:center;--minitool-row-gap:3px;--minitool-column-gap:3px;grid-gap:3px;gap:3px;color:#5d6652;font-size:9px;white-space:nowrap}
.pocket-keys img{width:21px;height:23px;object-fit:contain}
.pocket-keys b{font-size:11px;color:#3b4433;font-variant-numeric:tabular-nums}
.treasure-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px;padding:2px}
.bag-sheet .treasure-cell{position:relative;display:flex;flex-direction:column;justify-content:center;--minitool-row-gap:5px;--minitool-column-gap:5px;grid-gap:5px;gap:5px;min-width:0;min-height:85px;width:auto;padding:7px 3px 6px;border:1.5px solid #959b84;background:#f5f0df;border-radius:6px 9px 5px 7px;box-shadow:1px 2px 0 #d5d8c5}
.bag-sheet .treasure-cell>img{width:46px;height:47px;object-fit:contain;flex-shrink:0}
.bag-sheet .treasure-cell:hover{background:#eeecd5}
.bag-sheet .treasure-cell.selected{border:2px solid #43563b;padding:6.5px 2.5px 5.5px;background:#e5ebd4;box-shadow:0 0 0 2px #c5d0b5}
.treasure-name{font-size:10px;font-weight:650;color:#36442f;line-height:1.4;text-align:center;overflow-wrap:break-word;overflow-wrap:anywhere}
.treasure-count{position:absolute;top:3px;right:4px;background:#f8f4e6;color:#3c4b33;border:1px solid #bdc4ad;border-radius:3px;font-size:9px;padding:0 3px}
.treasure-tool-dot{position:absolute;width:5px;height:5px;border-radius:50%;background:#7c915b;top:6px;left:6px}
.bag-sheet .empty-pocket{border:1px dashed #bac0a9;box-shadow:none;background:#eeeeda66;min-height:85px;color:#9ea68e;align-items:center;justify-content:center}
.empty-pocket i{font-size:23px;font-style:normal}
.equipment-label{display:flex;align-items:center;justify-content:space-between;margin:13px 2px 7px;color:#4c5d3e;font-size:11px;font-weight:600}
.equipment-label small{font-size:9px;color:#70765e;font-weight:400}
.pocket-equipment{display:grid;grid-template-columns:1fr 1fr;--minitool-row-gap:8px;--minitool-column-gap:8px;grid-gap:8px;gap:8px;padding:2px}
.equipment-slot{display:flex;align-items:center;--minitool-row-gap:8px;--minitool-column-gap:8px;grid-gap:8px;gap:8px;min-width:0;min-height:57px;padding:5px 8px;border:1px solid #9fa68d;border-radius:5px 8px 5px 7px;background:#f5f0df;text-align:left}
.equipment-slot>img{width:33px;height:41px;object-fit:contain;flex-shrink:0}
.equipment-slot>span{display:flex;flex-direction:column;--minitool-row-gap:4px;--minitool-column-gap:4px;grid-gap:4px;gap:4px;min-width:0}
.equipment-slot small{font-size:9px;color:#667155}
.equipment-slot strong{font-size:11px;overflow-wrap:break-word;overflow-wrap:anywhere}
.equipment-slot.selected{background:#e5ebd4;outline:2px solid #43563b;outline-offset:-1px}
.equipment-slot.vacant{border-style:dashed;background:transparent;color:#6f785f}
.equipment-slot.vacant>svg{width:26px;height:26px;margin:6px 3px;color:#839174}
.bag-item-detail{flex:none;height:174px;min-height:174px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;margin-top:5px;padding:13px 13px 10px;background:#eee7d2;border:1.5px solid #8f987b;border-radius:6px 13px 8px 4px;box-shadow:2px 3px 0 #d3d6c1}
.treasure-heading{display:flex;align-items:center;--minitool-row-gap:10px;--minitool-column-gap:10px;grid-gap:10px;gap:10px}
.treasure-heading>img{width:41px;height:41px;object-fit:contain;flex-shrink:0}
.treasure-heading small{display:block;font-size:9px;color:#63704f;line-height:1.4}
.treasure-heading h3{font-size:15px;font-family:"Songti SC",serif;letter-spacing:.6px;margin:3px 0 0;color:#34402d}
.treasure-description>p{margin:8px 0;font-size:11px;line-height:1.65;color:#49573e}
.treasure-use{display:flex;align-items:center;--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px;width:100%;min-height:44px;padding:8px 12px;background:#43553a;color:#faf8ec;border:1px solid #2f422b;border-radius:5px 8px 6px 5px;font-size:11px}
.treasure-use>svg{width:17px;height:17px}
.treasure-use>span{margin-left:auto;font-size:17px}
.treasure-purpose{display:block;font-size:10px;color:#566647;border-top:1px dashed #abb594;padding-top:8px;line-height:1.5}
.pocket-empty-note{font-size:12px;text-align:center;color:#59644c;line-height:1.8;margin:28px 0}
.bag-shops{flex:1;overflow-y:auto;min-height:0;overscroll-behavior:contain;padding-right:3px}
.shop-purse{display:flex;align-items:center;--minitool-row-gap:19px;--minitool-column-gap:19px;grid-gap:19px;gap:19px;margin:0 0 12px;padding:8px 6px;border-bottom:1px dashed #acb699;font-size:11px;color:#5d6b4d}
.shop-purse>span{display:flex;align-items:center;--minitool-row-gap:4px;--minitool-column-gap:4px;grid-gap:4px;gap:4px}
.shop-purse svg{width:16px;height:16px}
.shop-purse strong{font-variant-numeric:tabular-nums;font-size:13px;color:#34402f}
.pocket-merchants{display:grid;--minitool-row-gap:9px;--minitool-column-gap:9px;grid-gap:9px;gap:9px}
.merchant-card{display:flex;align-items:center;--minitool-row-gap:11px;--minitool-column-gap:11px;grid-gap:11px;gap:11px;min-height:87px;padding:10px 12px;background:#f6efdf;border:1px solid #949b80;border-radius:7px 11px 6px 8px;text-align:left}.merchant-card>img,.merchant-card>canvas{width:49px;height:59px;object-fit:contain;flex-shrink:0}
.merchant-card>span{flex:1;min-width:0}
.merchant-card strong{display:block;font-size:13px;color:#36402d}
.merchant-card small{display:block;font-size:10px;line-height:1.6;color:#617052;margin-top:5px}
.merchant-card>b{font-size:11px;color:#415833;white-space:nowrap}
.merchant-card:disabled{opacity:1;background:#eeeade;border-color:#b2b6a5}
.merchant-card:disabled>b,.merchant-card:disabled strong{color:#6e725f}
.pocket-footnote{text-align:center}
@media(max-width:359px){
  .book-sheet .enemy-card{grid-template-columns:39px minmax(0,1fr) 67px;--minitool-row-gap:6px;--minitool-column-gap:6px;grid-gap:6px;gap:6px;padding-top:8px;padding-bottom:8px;padding-block:8px;min-height:83px}.book-sheet .enemy-card>img,.book-sheet .enemy-card>canvas{width:39px;height:49px}
  .book-sheet .enemy-card h3{font-size:12px}
  .book-sheet .enemy-numbers b{font-size:10px}
  .book-sheet .damage-pill strong{font-size:17px}
  .enemy-note{padding-left:46px}
  .pocket-tabs button{font-size:11px;padding-left:5px;padding-right:5px;padding-inline:5px}
  .treasure-grid{grid-template-columns:repeat(3,minmax(0,1fr));--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px}
  .pocket-keys>span{font-size:8px}
  .pocket-keys img{width:19px;height:21px}
  .equipment-slot{--minitool-row-gap:5px;--minitool-column-gap:5px;grid-gap:5px;gap:5px;padding-left:5px;padding-right:5px;padding-inline:5px}
  .bag-item-detail{padding:10px;height:163px;min-height:163px}
  .merchant-card{--minitool-row-gap:8px;--minitool-column-gap:8px;grid-gap:8px;gap:8px;padding-left:8px;padding-right:8px;padding-inline:8px}.merchant-card>img,.merchant-card>canvas{width:41px;height:50px}
}
@media(max-height:620px){
  .pocket-tabs{margin-bottom:8px}
  .bag-item-detail{height:146px;min-height:146px;padding-top:8px;padding-bottom:8px;padding-block:8px}
  .treasure-heading>img{width:32px;height:32px}
  .treasure-heading h3{font-size:13px}
  .treasure-description>p{font-size:10px;margin-top:6px;margin-bottom:6px;margin-block:6px}
  .book-footnote small{display:none}
}
@media(min-width:540px) and (max-height:520px){
  .bag-sheet>.pocket-tabs{margin-bottom:6px;padding-top:0}
  .bag-sheet .bag-content{flex:1;height:auto;min-height:0}
  .bag-sheet .bag-treasures{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);--minitool-row-gap:12px;--minitool-column-gap:12px;grid-gap:12px;gap:12px}
  .bag-sheet .bag-grid-scroll{min-height:0;padding-bottom:4px}
  .bag-sheet .treasure-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bag-sheet .treasure-cell{min-height:78px}
  .bag-sheet .bag-item-detail{height:auto;min-height:0;margin:0;padding:8px 10px;overflow:hidden}
  .bag-sheet .treasure-description{display:flex;flex-direction:column;height:100%;min-height:0}
  .bag-sheet .treasure-heading{flex-shrink:0;--minitool-row-gap:7px;--minitool-column-gap:7px;grid-gap:7px;gap:7px}
  .bag-sheet .treasure-heading>img{width:29px;height:29px}
  .bag-sheet .treasure-heading h3{font-size:13px}
  .bag-sheet .treasure-description>p{flex:1;min-height:0;overflow:auto;margin-top:5px;margin-bottom:5px;margin-block:5px}.bag-sheet .treasure-use,.bag-sheet .treasure-purpose{flex-shrink:0}
  .bag-sheet .treasure-use{padding-left:8px;padding-right:8px;padding-inline:8px}
  .bag-sheet .pocket-empty-note{margin:0;height:100%;display:grid;place-content:center}
  .bag-sheet .pocket-footnote{font-size:10px}
  .book-sheet .book-tools{display:flex;align-items:center;--minitool-row-gap:16px;--minitool-column-gap:16px;grid-gap:16px;gap:16px;margin-bottom:6px}
  .book-sheet .pocket-tabs{flex:1;max-width:370px;padding-top:0;margin:0}
  .book-sheet .book-ruler{flex:1;flex-wrap:wrap;justify-content:flex-end;padding:0;--minitool-row-gap:5px;--minitool-column-gap:12px;grid-gap:5px 12px;gap:5px 12px}
  .book-sheet .book-scroll{flex:1;height:auto;min-height:0}
}
@media(min-width:700px) and (max-height:520px){
  .book-sheet .book-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:start;--minitool-row-gap:0;--minitool-column-gap:14px;grid-gap:0 14px;gap:0 14px}
  .book-sheet [data-book-empty]{grid-column:1 / -1}
  .bag-sheet .treasure-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(min-width:540px) and (max-height:360px){
  .bag-sheet.minitool-has-host-feedback .pocket-footnote{height:0;margin:0;padding:0;border:0;overflow:hidden}
  .bag-sheet:has(>.feedback-host .feedback-notice) .pocket-footnote{height:0;margin:0;padding:0;border:0;overflow:hidden}
  .bag-sheet.minitool-has-host-feedback .treasure-heading>img{width:24px;height:24px}
  .bag-sheet:has(>.feedback-host .feedback-notice) .treasure-heading>img{width:24px;height:24px}
  .bag-sheet.minitool-has-host-feedback .treasure-heading h3{margin-top:0}
  .bag-sheet:has(>.feedback-host .feedback-notice) .treasure-heading h3{margin-top:0}
  .bag-sheet.minitool-has-host-feedback .treasure-description>p{margin-top:2px;margin-bottom:2px;margin-block:2px}
  .bag-sheet:has(>.feedback-host .feedback-notice) .treasure-description>p{margin-top:2px;margin-bottom:2px;margin-block:2px}
}
/* Tall windows size these sheets to their content; long lists still scroll between a fixed header and footer. */
@media(min-height:521px){
  .adventure-sheet.book-sheet,.adventure-sheet.bag-sheet{height:auto;min-height:0;min-height:min(420px,calc(var(--minitool-vh,1vh) * 70));min-height:min(420px,70dvh)}
}
/* Desktop and tablet windows place records side by side instead of one long column. */
@media(min-width:760px) and (min-height:521px){
  .adventure-sheet.book-sheet,.adventure-sheet.bag-sheet{width:100%;width:min(760px,100%)}
  .book-sheet .book-scroll{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;align-items:start;--minitool-row-gap:0;--minitool-column-gap:18px;grid-gap:0 18px;gap:0 18px}
  .book-sheet [data-book-empty]{grid-column:1 / -1}
  .bag-sheet .bag-treasures{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);--minitool-row-gap:16px;--minitool-column-gap:16px;grid-gap:16px;gap:16px}
  .bag-sheet .bag-grid-scroll{min-height:0}
  .bag-sheet .bag-item-detail{height:auto;min-height:0;max-height:100%;margin:0;align-self:start}
}
