@keyframes revealFade { from { opacity: 0; } to { opacity: .85; } }
/* v23 shop, coins, bounties, weekly, bestiary */
.coin-ico { width: 18px; height: 18px; vertical-align: -4px; }
.coin-chip {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; font-weight: 700; background: var(--royal) !important;
  color: var(--ivory) !important; border: 0 !important; border-radius: 0 !important;
}
.done-chip {
  padding: 1px 7px; font-size: 11px; font-weight: 700; border: 1px solid #a8832c; border-radius: 0 !important; font-family: var(--font-body) !important;
  background: var(--moss) !important; color: var(--ivory) !important; border-color: var(--moss) !important;
}
.new-chip {
  padding: 1px 7px; font-size: 11px; font-weight: 700; border: 1px solid #a8832c; border-radius: 0 !important; font-family: var(--font-body) !important;
  background: var(--claw) !important; color: var(--ivory) !important; border-color: var(--claw) !important;
}
.modal.shop-modal { max-width: 1060px; width: min(1060px, calc(96 * var(--hvw))); padding-top: 0; min-height: min(660px, calc(100 * var(--hvh) - 40px)); }
.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(30,27,22,.82); border: 2px solid #a8832c; border-radius: 10px; color: var(--gilt-light); 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 var(--shade-50)); }
.purse b { font: 700 28px/1 var(--font-head, serif); color: var(--gilt-light); } .purse span { font-size: 13px; color: var(--ink-muted) !important; }
.shop-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.shop-tabs .tab {
  padding: 7px 12px; font: 600 13px var(--font-body); cursor: pointer; font-family: var(--font-display) !important; font-weight: 400 !important;
  border-radius: 0 !important; background: var(--paper) !important; color: var(--ink) !important; border: 1px solid var(--paper-edge) !important;
  box-shadow: none !important;
}
.shop-tabs .tab.on { background: var(--royal) !important; color: var(--ivory) !important; border-color: var(--royal) !important; }
.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: #13192f; border: 1px solid var(--line); position: relative; }
.shop-item.owned { border-color: #4f9a62; }
.shop-item.armed { border-color: var(--gilt-light); box-shadow: 0 0 0 2px rgba(233,198,106,.35); }
.shop-item.armed .buy::after { content: " · confirm?"; }
.shop-item p { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--muted, #a3aac7); }
.shop-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; } .shop-top b { color: var(--gilt-light); }
.shop-top .tier { font-size: 11px; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.shop-note { font-size: 11.5px; color: #d8bb72; }
.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; gap: 6px; justify-content: center; }
.shop-cards .card.mini { --card-w: 106px; --card-h: 150px; font-size: 9.5px; pointer-events: auto; }
.shop-cards .card.mini .text { font-size: 9.5px; line-height: 1.2; }
.shop-hero { height: 150px; } .shop-hero .hero-live { width: 100%; height: 100%; position: relative; }
.wk-hero .hero-live { width: 100%; position: relative; height: 180px; }
.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(30,27,22,.85); font-size: 12px; color: var(--gilt-light); }
.coin-report { margin: 12px auto; max-width: 460px; padding: 12px 14px; border-radius: 12px; background: #13192f; border: 1px solid #a8832c; 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: var(--gilt-light); } .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: var(--gilt-light); 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: #13192f; border: 1px solid var(--line); }
.bounty em { font-style: normal; font-weight: 700; color: var(--gilt-light); 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 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: var(--gilt-light); }
@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: #13192f; 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: var(--gilt-light); } .beast small { font-size: 11.5px; line-height: 1.3; opacity: .85; } .beast em { font-size: 11px; font-style: normal; opacity: .7; }
.chart { display: grid; gap: 6px; margin: 8px 0; }
.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: var(--royal-mid); border-color: #a8832c; color: var(--gilt-light); }
/* v24 */
.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: var(--gilt-light); } .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(233,198,106,.18); font-size: 13px; line-height: 1.3; }
.bb-row em { font-style: normal; font-weight: 700; color: var(--gilt-light); 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(233,198,106,.25); background: #111527; color: rgba(233,198,106,.35); }
.card-unknown span { font: 700 34px var(--font-head, serif); } .card-unknown small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.teaser-art { height: 140px; display: grid; place-items: center; } .teaser-art img { max-height: 140px; }
/* ---- 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; }
@media (max-width: 900px) { .armory { grid-template-columns: 1fr; } }
/* 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; }
