/* vault.css — the VAULT screen (vaultui.js): a wide side sheet over the 3D vault wing. */
body.vault-on { --vsheet: min(640px, 48vw); }
body.vault-on[data-view="life"] .world-frame { right: calc(var(--vsheet) + 32px); }
body.vault-on .room-strip { display: none !important; }
body[data-view="life"] .screen[data-screen="vault"] > .win { position: fixed; z-index: 4; top: var(--top); right: 16px; bottom: calc(var(--ui-bottom, 40px) + 18px); width: var(--vsheet); overflow-y: auto; overscroll-behavior: contain; pointer-events: auto; animation: sheetIn 0.55s var(--ease); }
@media (max-width: 760px) {
  body.vault-on[data-view="life"] .world-frame { top: var(--top); bottom: auto; height: 34vh; right: 0; }
  body[data-view="life"] .screen[data-screen="vault"] > .win { position: relative; inset: auto; width: auto; margin-top: 34vh; overflow: visible; animation: none; }
  body.vault-on .world-cap { position: absolute; top: calc(var(--top) + 34vh - 34px); }
  html.pc98 body.vault-on .world-cap { top: calc(var(--top) + 34vh - 58px); }
  body.vault-on .world-zoom { position: absolute; }
}

/* ---------- wings, summary ---------- */
.vt-loop { margin-bottom: 10px; }
.vt-loop h3 { margin: 0 0 4px; font: 700 17px var(--display); color: var(--ink); }
.vt-loop p, .vt-context p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.vt-scopes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.vt-scopes button { min-height: 44px; padding: 6px; border: 1px solid var(--stroke-2); background: var(--bg-2, #12101c); color: var(--ink-2); font: 600 12px var(--mono); cursor: pointer; overflow-wrap: anywhere; }
.vt-scopes button[aria-pressed="true"] { border-color: #ffc94d; background: #ffc94d; color: #1a1200; }
.vt-context { margin-bottom: 10px; padding: 8px 10px; border-left: 3px solid #ffc94d; background: rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.vt-context[data-collection-view="legacy"] { border-color: #c9ced8; }
.vt-context b { font: 700 12px var(--mono); color: var(--ink); }
.vt-origin, .vt-display-only { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.vt-origin { margin: 4px 0; }
.vt-wings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 0 0 10px; }
.vt-wings button { padding: 8px 4px; border: 1px solid var(--stroke-2); background: rgba(0, 0, 0, .3); color: var(--ink-2); font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.vt-wings button[aria-selected="true"] { color: #1a1200; background: linear-gradient(135deg, #ffe08a, #ffc94d 60%, #d99a1e); border-color: #ffc94d; }
.vt-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 1px; background: var(--stroke); border: 1px solid var(--stroke); }
.vt-sum div { padding: 8px; background: rgba(6, 5, 14, .92); }
.vt-sum b { display: block; font: 700 18px var(--mono); color: var(--ink); } .vt-sum b span { font-size: 12px; color: var(--ink-3); }
.vt-sum small { font-size: 10.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.vt-note { margin: 8px 0 10px; font-size: 12px; color: var(--ink-3); }

/* ---------- spotlight ---------- */
.vt-spot { display: grid; grid-template-columns: 200px 1fr; gap: 12px; margin: 0 0 12px; padding: 10px; border: 2px solid var(--rc, #555); background: radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, .06), rgba(0, 0, 0, .35)); }
.vt-spot-pic img { width: 100%; aspect-ratio: 1; display: block; background: #0b0a12; }
.vt-spot h3 { margin: 4px 0 4px; font: 700 16px var(--display); letter-spacing: .04em; color: var(--ink); }
.vt-spot p { margin: 0 0 8px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.vt-spot dl { margin: 0 0 6px; display: grid; grid-template-columns: repeat(4, auto); gap: 4px 12px; }
.vt-spot dt { font: 600 9.5px var(--display); letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; } .vt-spot dd { margin: 0; font: 600 13px var(--mono); color: var(--ink); }
.vt-hist { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 8px; }
@media (max-width: 520px) { .vt-spot { grid-template-columns: 1fr; } .vt-spot-pic { max-width: 240px; } }

/* ---------- filters ---------- */
.vt-rarity-legend { margin: 0 0 10px; padding: 8px 10px; border: 1px solid var(--stroke-2); background: rgba(0, 0, 0, .25); overflow-wrap: anywhere; }
.vt-rarity-legend > b { color: var(--ink); font: 600 12px var(--mono); }
.vt-rarity-legend p, .vt-spot .vt-rarity-help { margin: 4px 0 8px; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.vt-rarity-help b { color: var(--ink); }
html.pc98 .vt-rarity-legend > b, html.pc98 .vt-rarity-legend p, html.pc98 .vt-spot .vt-rarity-help { font: 15px/1.4 var(--mono); }
.vt-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.vt-filters .seg button { padding: 4px 9px; font-size: 11.5px; }
.vt-rars .r-common.on { background: #8a8796; } .vt-rars .r-rare.on { background: #3d8bff; } .vt-rars .r-epic.on { background: #a259ff; } .vt-rars .r-legendary.on { background: #ffc94d; color: #1a1200; } .vt-rars .r-mythic.on { background: #ff5fd2; }

/* ---------- the grid ---------- */
.vt-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.vt-card { --rc: #6d6a7a; position: relative; display: flex; flex-direction: column; gap: 3px; padding: 6px; border: 2px solid var(--rc); background: rgba(8, 7, 16, .9); cursor: pointer; transition: transform .15s, box-shadow .2s; }
.vt-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px var(--rc); }
.vt-card.sel { outline: 2px solid #fff; outline-offset: 1px; }
.r-common { --rc: #6d6a7a; } .r-rare { --rc: #3d8bff; } .r-epic { --rc: #a259ff; } .r-legendary { --rc: #ffc94d; } .r-mythic { --rc: #ff5fd2; }
.vt-card.r-mythic, .vt-spot.r-mythic { border-image: linear-gradient(135deg, #ff5fd2, #ffc94d, #14f195, #3d8bff, #ff5fd2) 1; animation: vtPrism 4s linear infinite; }
/* pixel art keeps its own palette: the hue spin would recolour it, so those cards spin a prism border overlay instead */
.vt-card.r-mythic:has(.px-box), .vt-spot.r-mythic:has(.px-box) { animation: none; position: relative; }
.vt-card.r-mythic:has(.px-box)::after, .vt-spot.r-mythic:has(.px-box)::after { content: ""; position: absolute; inset: -2px; border: 2px solid; border-image: linear-gradient(135deg, #ff5fd2, #ffc94d, #14f195, #3d8bff, #ff5fd2) 1; pointer-events: none; animation: vtPrism 4s linear infinite; }
.vt-card.r-legendary { box-shadow: inset 0 0 18px -8px #ffc94d; }
.vt-pic { position: relative; aspect-ratio: 1; background: #0b0a12; overflow: hidden; }
.vt-pic img, .vt-spot-pic img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.vt-pic img.in, .vt-spot-pic img.in { opacity: 1; }
.vt-card.missing .vt-pic img.in { filter: grayscale(.55) brightness(.75); }
.vt-card.missing:hover .vt-pic img.in { filter: none; }
.vt-rar { position: absolute; left: 4px; bottom: 4px; font: 700 9px var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #000; background: var(--rc); padding: 1px 5px; }
.vt-spot .vt-rar { position: static; display: inline-block; }
.vt-own, .vt-past { position: absolute; right: 4px; top: 4px; font: 700 9.5px var(--mono); letter-spacing: .08em; padding: 2px 6px; }
.vt-own { color: #1a1200; background: #ffc94d; } .vt-past { color: #e9eef8; background: rgba(160, 170, 190, .45); border: 1px solid #c9ced8; }
.vt-name { font: 600 12.5px/1.25 var(--font); color: var(--ink); }
.vt-sub { font-size: 10.5px; color: var(--ink-3); }
.vt-acts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 3px; }
.vt-acts .btn { padding: 4px 8px; font-size: 11px; }
.vt-acts [aria-disabled="true"] { opacity: .5; }
.vt-empty { grid-column: 1 / -1; color: var(--ink-2); font-size: 13px; padding: 14px; border: 1px dashed var(--stroke-2); }
.vt-empty h3 { margin: 0 0 6px; color: var(--ink); font: 600 17px var(--mono); }
.vt-empty .btn { min-height: 44px; margin: 4px 4px 0 0; white-space: normal; }

/* ---------- sets ---------- */
.vt-sets { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--stroke); }
.vt-sets h4 { margin: 0 0 8px; font: 700 11px var(--display); letter-spacing: .18em; color: var(--ink-2); }
.vt-set { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.vt-set i { height: 6px; background: rgba(255, 255, 255, .08); } .vt-set i b { display: block; height: 100%; background: linear-gradient(90deg, #a259ff, #ffc94d); }
.vt-set.done span { color: #ffc94d; font-weight: 700; } .vt-set.done i b { background: #ffc94d; box-shadow: 0 0 10px #ffc94d; }
.vt-set small { text-align: right; font-family: var(--mono); }

@keyframes vtPrism { to { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .vt-card.r-mythic, .vt-spot.r-mythic, .vt-card.r-mythic::after, .vt-spot.r-mythic::after { animation: none; } .vt-card { transition: none; } }

/* ---------- PC-98 ---------- */
html.pc98 .vt-wings button { font: 15px var(--mono); letter-spacing: 0; border-width: 2px; }
html.pc98 .vt-loop h3 { font: 18px var(--mono); }
html.pc98 .vt-scopes button, html.pc98 .vt-context b { font: 15px var(--mono); }
html.pc98 .vt-loop p, html.pc98 .vt-context p, html.pc98 .vt-origin, html.pc98 .vt-display-only, html.pc98 .vt-empty { font: 15px/1.4 var(--mono); }
html.pc98 .vt-sum b { font: 18px var(--mono); } html.pc98 .vt-sum small, html.pc98 .vt-spot dt { font: 8px/1.3 var(--pixel); letter-spacing: 0; }
html.pc98 .vt-card, html.pc98 .vt-spot { box-shadow: 3px 3px 0 #000; }
html.pc98 .vt-card:hover { transform: none; }
html.pc98 .vt-name { font: 15px/1.2 var(--mono); } html.pc98 .vt-sub, html.pc98 .vt-note, html.pc98 .vt-hist { font-size: 13px; }
html.pc98 .vt-rar, html.pc98 .vt-own, html.pc98 .vt-past { font: 8px/1.3 var(--pixel); letter-spacing: 0; }
html.pc98 .vt-spot h3 { font: 18px var(--mono); } html.pc98 .vt-spot p { font-size: 15px; }
html.pc98 .vt-sets h4 { font: 8px var(--pixel); letter-spacing: 0; } html.pc98 .vt-set { font-size: 14px; }
html.pc98 .vt-pic img, html.pc98 .vt-spot-pic img { image-rendering: auto; }
/* six destinations now fit the phone's bottom bar */
@media (max-width: 760px) { .group-tabs { grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
body.vault-on .world-hint { display: none !important; }

/* The gallery sheet is wider than the Life sheet. Its camera controls/caption
   belong to the remaining room area, never underneath the collection panel. */
@media (min-width: 761px) and (min-height: 521px) {
  body.vault-on .world-zoom { right: calc(var(--vsheet) + 24px); }
  body.vault-on .world-cap { max-width: min(52ch, calc(100vw - var(--vsheet) - 80px)); }
}

/* pixel-art collectibles (pixelart.js): animated sheets at whole device pixels, centred in the card */
@keyframes pxRun { from { background-position: 0 0; } to { background-position: var(--sw) 0; } }
.px-art { background-repeat: no-repeat; image-rendering: pixelated; animation: pxRun steps(var(--n)) infinite; }
@keyframes pxRunX { from { background-position-x: 0; } to { background-position-x: var(--sw); } }
@keyframes pxRunY { from { background-position-y: 0; } to { background-position-y: var(--sh); } }
.px-art.px-grid { animation-name: pxRunX, pxRunY; animation-timing-function: steps(var(--n)), steps(var(--r)); animation-iteration-count: infinite; }
@media (prefers-reduced-motion: reduce) { .px-art { animation: none; } }
.px-box { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 42%, #1c1c4a, #0b0a12 72%); }
.vt-spot-pic .px-box { position: relative; aspect-ratio: 1; }
.vt-card.missing .px-box .px-art { filter: grayscale(.55) brightness(.75); }
.vt-card.missing:hover .px-box .px-art { filter: none; }
.px-wait { color: var(--ink-3, #8888bb); font-size: 11px; text-align: center; padding: 8px; }

.vt-place { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; font-size: 12px; }
.vt-place select { font: inherit; background: var(--bg-2, #12101c); color: inherit; border: 1px solid var(--stroke-2, #333); padding: 4px 6px; max-width: 100%; }

/* ---------- on-chain editions (onchain/editionui.js) ---------- */
.vt-chain { display: flex; flex-wrap: wrap; align-items: stretch; gap: 1px; margin-top: 8px; background: var(--stroke); border: 1px solid var(--stroke); }
.vt-burn { flex: 1 1 120px; padding: 6px 8px; background: rgba(6, 5, 14, .92); }
.vt-burn small { display: block; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.vt-burn b { font: 700 16px var(--mono); color: #ff8a3d; text-shadow: 0 0 8px rgba(255, 138, 61, .35); font-variant-numeric: tabular-nums; }
.vt-wal { flex: 2 1 220px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; background: rgba(6, 5, 14, .92); }
.vt-wal img { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.vt-wal-id { font: 600 12px var(--mono); color: var(--ink); } .vt-wal-id small { margin-left: 8px; color: var(--ink-3); }
.vt-wal-none, .vt-chain-err { font-size: 11px; color: var(--ink-3); }
.vt-chain .vt-net, .vt-chain-err { flex: 1 1 100%; padding: 3px 8px; background: rgba(6, 5, 14, .92); }
.vt-net { font: 700 9.5px var(--mono); font-style: normal; letter-spacing: .1em; color: #ffc94d; }
.vt-edb { margin: 8px 0; padding: 8px; border: 1px dashed rgba(255, 138, 61, .55); background: rgba(255, 138, 61, .05); }
.vt-edb h4 { margin: 0 0 4px; font: 700 11px var(--display); letter-spacing: .16em; color: #ff8a3d; }
.vt-edb h4 .vt-net { margin-left: 6px; }
.vt-edb p { margin: 0 0 6px; font-size: 12.5px; }
.vt-ed-line b { font-family: var(--mono); color: var(--ink); }
.vt-ed-fine { font-size: 11px !important; color: var(--ink-3); }
.vt-ed-own a { color: #ff8a3d; }
.vt-ed-wait { color: #ffc94d; animation: vtBlink 1s steps(2) infinite; }
@keyframes vtBlink { 50% { opacity: .45; } }
.vt-checkout { padding: 8px; border: 1px solid #ff8a3d; background: rgba(0, 0, 0, .35); }
.vt-ed { position: absolute; right: 4px; bottom: 4px; font: 700 9px var(--mono); letter-spacing: .08em; padding: 1px 5px; color: #1a0a00; background: #ff8a3d; }

/* the watch you wear (luxury.js) */
.vt-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.vt-wrist { display: inline-block; padding: 2px 8px; font: 600 11px var(--mono); letter-spacing: .08em; color: #07101e; background: var(--yellow, #ffc94d); }
