@keyframes revealFade { from { opacity: 0; } to { opacity: .85; } }
/* v23 shop, coins, bounties, weekly, bestiary */
.coin-ico { width: 18px; height: 18px; vertical-align: -4px; }
.title-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.title-row .btn { min-width: 0 !important; display: inline-flex; align-items: center; gap: 6px; }
.title-row .btn .ico, .weekly-btn .ico { width: 20px; height: 20px; }
.weekly-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.coin-chip { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 999px; background: #3a2a14; border: 1px solid #b07a24; color: #f3d58c; font-weight: 700; }
.new-chip, .done-chip { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #3a2a14; border: 1px solid #b07a24; color: #f3d58c; }
.done-chip { background: #1e2a1e; border-color: #4f9a62; color: #bff0cb; }
.modal.shop-modal { max-width: 1060px; width: min(1060px, calc(96 * var(--hvw))); padding-top: 0; }
.shop-banner { height: 150px; margin: 12px 0 0; background: center 30% / cover no-repeat; border-radius: 10px; border: 1px solid var(--line); position: relative; display: flex; align-items: flex-start; justify-content: center; }
.shop-banner h1 { margin: 10px 0 0; padding: 4px 16px; background: rgba(23,17,12,.82); border: 2px solid #b07a24; border-radius: 10px; color: #f3d58c; font-size: 24px; }
.shop-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; margin: 12px 0 4px; }
.purse { display: flex; align-items: center; gap: 8px; } .purse img { width: 46px; height: 46px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.purse b { font: 700 28px/1 var(--font-head, serif); color: #f3d58c; } .purse span { color: var(--muted, #b8a98c); font-size: 13px; }
.shop-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-tabs .tab { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: inherit; font: 600 13px var(--font-body); cursor: pointer; }
.shop-tabs .tab.on { background: #3a2a14; border-color: #b07a24; color: #f3d58c; }
.shop-tip { margin: 4px 0 8px; font-size: 13px; }
.shop-modal h3 { margin: 14px 0 8px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.shop-item { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: #231b14; border: 1px solid var(--line); position: relative; }
.shop-item.owned { border-color: #4f9a62; }
.shop-item.armed { border-color: #f3d58c; box-shadow: 0 0 0 2px rgba(243,213,140,.35); }
.shop-item.armed .buy::after { content: " · confirm?"; }
.shop-item p { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--muted, #cbbd9f); }
.shop-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; } .shop-top b { color: #f3d58c; }
.shop-top .tier { font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.shop-note { font-size: 11.5px; color: #e0a96a; }
.shop-act { margin-top: auto; display: flex; justify-content: flex-end; }
.shop-act .btn.small, .coin-report .btn.small { padding: 6px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.shop-act .buy.poor { opacity: .55; }
.shop-act .btn.on { border-color: #4f9a62; color: #bff0cb; }
.owned-chip { padding: 4px 10px; border-radius: 999px; background: #1e2a1e; border: 1px solid #4f9a62; color: #bff0cb; font-size: 12px; font-weight: 700; }
.shop-cards { display: flex; justify-content: center; }
.shop-cards .card.mini { --card-w: 106px; --card-h: 150px; font-size: 9.5px; pointer-events: auto; }
.shop-cards .card.mini .card-text, .shop-cards .card.mini .text { font-size: 9.5px; line-height: 1.2; }
.shop-hero { height: 150px; } .shop-hero .hero-live, .wk-hero .hero-live { width: 100%; height: 100%; position: relative; }
.shop-hero .hero-live .sprite, .wk-hero .hero-live .sprite { position: absolute; inset: 0; }
.shop-region { height: 96px; border-radius: 8px; background: center / cover no-repeat; display: flex; align-items: flex-end; border: 1px solid var(--line); }
.shop-region span { margin: 6px; padding: 2px 8px; border-radius: 6px; background: rgba(23,17,12,.85); font-size: 12px; color: #f3d58c; }
.coin-report { margin: 12px auto; max-width: 460px; padding: 12px 14px; border-radius: 12px; background: #231b14; border: 1px solid #b07a24; text-align: left; }
.cr-head { display: flex; align-items: center; gap: 10px; } .cr-head img { width: 44px; height: 44px; }
.cr-head b { display: block; font-size: 20px; color: #f3d58c; } .cr-head span { font-size: 12.5px; opacity: .8; }
.coin-report ul { list-style: none; margin: 8px 0; padding: 0; font-size: 13px; }
.coin-report li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed rgba(255,255,255,.08); } .coin-report li em { color: #f3d58c; font-style: normal; font-weight: 700; }
.bounty-list { display: grid; gap: 8px; margin: 10px 0; } .bounty { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #231b14; border: 1px solid var(--line); }
.bounty em { font-style: normal; font-weight: 700; color: #f3d58c; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.weekly-card { display: grid; grid-template-columns: 170px 1fr; gap: 14px; text-align: left; margin: 10px 0; }
.wk-hero { display: flex; flex-direction: column; align-items: center; gap: 4px; } .wk-hero .hero-live { height: 180px; } .wk-hero small { font-size: 11px; opacity: .8; text-align: center; }
.wk-info h3 { margin: 4px 0; } .wk-info ol { margin: 0 0 8px 18px; padding: 0; font-size: 13px; } .wk-info li small { opacity: .7; } .wk-info p { margin: 4px 0; font-size: 13px; }
.wk-reward { color: #f3d58c; }
@media (max-width: 560px) { .weekly-card { grid-template-columns: 1fr; } .wk-hero .hero-live { height: 140px; } .shop-banner { height: 110px; } .modal.shop-modal { width: auto; max-width: none; } }
.beast-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 8px; }
.beast { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px; background: #231b14; border: 1px solid var(--line); text-align: left; }
.beast .b-art { height: 92px; display: grid; place-items: center; } .beast .b-art img { max-height: 92px; max-width: 100%; }
.beast.unseen .b-art img { filter: brightness(0) opacity(.5); } .beast.seen .b-art img { filter: grayscale(.6); }
.beast b { font-size: 13px; color: #f3d58c; } .beast small { font-size: 11.5px; line-height: 1.3; opacity: .85; } .beast em { font-size: 11px; font-style: normal; opacity: .7; }
 .kit-row .mode-btn .ico { width: 18px; height: 18px; vertical-align: -4px; }
.chart { display: grid; gap: 6px; margin: 8px 0; } .chart-tier { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .chart-tier small { width: 70px; opacity: .75; }
.chart .chip { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: inherit; font: 600 12px var(--font-body); cursor: pointer; }
.chart .chip.on { background: #3a2a14; border-color: #b07a24; color: #f3d58c; }
/* card frame cosmetics */
body.frame-oxblood .card, .shop-item .shop-cards.frame-oxblood .card { border-color: #8a2a1f !important; box-shadow: 0 0 0 2px #5e1a14, 0 6px 14px rgba(0,0,0,.45); }
body.frame-gilded .card, .shop-item .shop-cards.frame-gilded .card { border-color: #e2b552 !important; box-shadow: 0 0 0 2px #8a6a20, 0 0 12px rgba(226,181,82,.35), 0 6px 14px rgba(0,0,0,.45); }
body.frame-slate .card, .shop-item .shop-cards.frame-slate .card { border-color: #6f8f9c !important; box-shadow: 0 0 0 2px #34505c, 0 6px 14px rgba(0,0,0,.45); }
/* v24 */
.bounty-board { background: rgba(28,22,17,.88); border: 1px solid #b07a24; border-radius: 12px; padding: 12px 14px; text-align: left; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.bounty-board.side { position: absolute; z-index: 2; right: max(28px, calc(4 * var(--hvw))); top: 96px; width: min(320px, calc(28 * var(--hvw))); }
.bounty-board.inline { display: none; margin-top: 14px; }
@media (max-aspect-ratio: 115/100) { .bounty-board.side { display: none; } .bounty-board.inline { display: block; } }
.bb-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .bb-head .ico { width: 26px; height: 26px; }
.bb-head b { font: 700 18px var(--font-head, serif); color: #f3d58c; } .bb-head small { margin-left: auto; font-size: 11.5px; opacity: .7; }
.bb-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px dashed rgba(243,213,140,.18); font-size: 13px; line-height: 1.3; }
.bb-row em { font-style: normal; font-weight: 700; color: #f3d58c; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.bb-foot { margin: 6px 0 0; font-size: 11.5px; opacity: .7; }
.bestiary-tabs { justify-content: center; margin: 4px 0 8px; }
.beast .b-art.gear img { max-height: 72px; } .beast .b-art .emo { font-size: 40px; }
.card-dex { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.card-dex .card.mini { --card-w: 106px; --card-h: 150px; font-size: 9.5px; }
.card-unknown { display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 10px; border: 2px dashed rgba(243,213,140,.25); background: #1c1611; color: rgba(243,213,140,.35); }
.card-unknown span { font: 700 34px var(--font-head, serif); } .card-unknown small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.teaser-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.teaser-card { border: 1px dashed var(--line); border-radius: 12px; padding: 8px; text-align: center; background: rgba(0,0,0,.18); }
.teaser-art { height: 140px; display: grid; place-items: center; } .teaser-art img { max-height: 140px; }
.teaser-card b { font: italic 600 14px var(--font-head, serif); color: rgba(243,213,140,.7); }
/* ---- the Armory (shop armor tab) ---- */
.armory-heroes { justify-content: center; margin: 4px 0 14px; }
.armory { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.armory-stand { position: sticky; top: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 10px 14px; border: 3px solid #17110c; border-radius: 10px;
  background: #e6d8b6 repeating-linear-gradient(-8deg, rgba(23,17,12,.06) 0 1px, transparent 1px 4px); box-shadow: 4px 4px 0 rgba(23,17,12,.55); color: #17110c; text-align: center; }
.armory-model { position: relative; width: 200px; height: 270px; }
.armory-model .sprite { position: absolute; inset: 0; }
.armory-caption { font: 700 17px var(--font-display); } .armory-stand small { color: #4a3a2a; font-size: 12px; line-height: 1.35; }
.armory-stand .btn { margin-top: 4px; }
.armory-racks { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.armory-set { border: 2px solid #3e3020; border-radius: 10px; background: rgba(23,17,12,.35); padding: 10px 12px 12px; }
.armory-set header { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 16px; align-items: center; margin-bottom: 10px; }
.as-name b { font: 700 20px var(--font-display); color: var(--gold-2); margin: 0 6px; } .as-name small { display: block; color: #a8977a; font-size: 11.5px; margin-top: 2px; }
.as-name img.ico { width: 22px; height: 22px; vertical-align: -4px; }
.as-bonus { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: #e9dcc0; }
.as-bonus i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: #b48a3c; color: #17110c; font: 800 11px var(--font-body); font-style: normal; }
.as-wear { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.armory-slots { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.as-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.as-slot { text-align: center; color: #a8977a; font: 800 10.5px var(--font-body); letter-spacing: .12em; text-transform: uppercase; }

.armory-tile b { font-size: 12.5px !important; line-height: 1.2; }
.armory-tile { cursor: pointer; user-select: none; display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 8px 6px 8px !important; min-height: 0 !important; text-align: center; }
.armory-tile:hover { filter: brightness(1.08); }
.armory-tile .at-try { display: block; width: 64px; height: 64px; border-radius: 50%; }
.armory-tile .at-try img { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.armory-tile.locked .at-try img { filter: grayscale(.55) brightness(.8) drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.armory-tile.worn { box-shadow: 0 0 0 2px #b48a3c, 0 0 14px rgba(226,181,82,.35) !important; }
.armory-tile .at-how, .armory-tile .at-drops { color: #a8977a; font-size: 10.5px; line-height: 1.3; }
.armory-set .as-boost { margin: 2px 0 8px; font-size: 12.5px; color: #e2b552; }
.armory-set .as-boost.full { color: #bff0cb; }
.armory-tile .at-act { margin-top: auto; }
.armory-tile .at-act .btn { padding: 4px 10px; }
.armory-nonset { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border: 2px dashed #6d5a44; border-radius: 10px; color: #e9dcc0; font-size: 13.5px; }
.armory-nonset b { font: 700 16px var(--font-display); color: var(--gold-2); } .armory-nonset i { color: #f3d58c; font-style: normal; font-weight: 700; }
@media (max-width: 900px) { .armory { grid-template-columns: 1fr; } .armory-stand { position: relative; } .armory-model { width: 160px; height: 210px; }
  .armory-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .armory-set header { grid-template-columns: 1fr; } .as-wear { justify-content: flex-start; } }
/* non-set labels and rare chest finds */
.set-line.nonset, .gear-set.nonset { color: #b9c7a0 !important; }
.gt-set.nonset em { color: #b9c7a0; } .gt-note { display: block; margin-top: 4px; color: #a8977a; font-size: 11px; line-height: 1.3; }
.relic-tile.rare-find { border-color: #b48a3c !important; box-shadow: 0 0 0 2px #b48a3c, 0 0 18px rgba(226,181,82,.35); }
.replaces.find { color: #f3d58c !important; font-weight: 700; }
.armory-stand .btn { background: #3e3020 !important; color: #f3e6c4 !important; border: 2px solid #17110c !important; }
/* The Shop keeps its Starter Kits size on every tab (TabLock); bigger tabs scroll inside */
.modal.tab-locked { display: flex; flex-direction: column; overflow: hidden; max-width: none; max-height: none; box-sizing: border-box; }
.modal.tab-locked > .shop-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 4px; }
.modal.tab-locked > .shop-banner, .modal.tab-locked > .shop-bar, .modal.tab-locked > .modal-actions { flex: none; }
.shop-bar .purse[data-tip] { cursor: help; }
/* Settings and the Codex: one size for every tab (TabLock); their buttons stay at the bottom */
.modal.tab-sized { display: flex; flex-direction: column; }
.modal.tab-sized > .modal-actions { margin-top: auto; padding-top: 14px; }
