/* STOP AND SEARCH — belongings (noir.inventory.js). Two surfaces, one language: the search sheet at the bottom centre
   (the till counter's place and shape) and the belongings window with the real character. Dark glass, bone text, amber
   for what you can do, teal for the server's yes, red for its no. Rows, not boxes. */
.iv-overlay[hidden], .iv-sheet[hidden], .iv-overlay [hidden] { display: none !important; }
.iv-overlay, .iv-sheet { color: #e7e2d5; font-family: "Barlow Semi Condensed", "Arial Narrow", sans-serif; letter-spacing: .02em; user-select: none; outline: 0; }
.iv-overlay button, .iv-sheet button { color: inherit; background: transparent; border: 0; font: inherit; cursor: pointer; letter-spacing: inherit; }
.iv-overlay button:focus-visible, .iv-sheet button:focus-visible { outline: 2px solid #ffb347; outline-offset: 3px; }
.iv-overlay .kc, .iv-sheet .kc { height: 16px; min-width: 16px; padding: 0 4px; font-size: 10px; vertical-align: middle; }

/* ------------------------------------------------------------------ the window (I) */
.iv-overlay { position: fixed; inset: 0; z-index: 950; background: rgba(4,8,10,.62); backdrop-filter: blur(6px); display: grid; place-items: center; }
.iv-window { width: min(1080px, 96vw); height: min(700px, 94vh); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
  background: linear-gradient(170deg, rgba(20,27,29,.97), rgba(8,12,14,.98) 60%); box-shadow: 0 30px 100px rgba(0,0,0,.7), inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.06); animation: iv-in .22s ease-out; }
.iv-head { display: flex; align-items: center; gap: 28px; padding: 22px 28px 16px; }
.iv-title { min-width: 0; }
.iv-eyebrow { display: block; font-weight: 600; font-size: 9.5px; letter-spacing: .34em; color: #39d9cc; }
.iv-head h1 { margin: 4px 0 0; font: 700 34px/1 "Barlow Condensed", "Arial Narrow", sans-serif; letter-spacing: .04em; color: #f5ede0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iv-money { margin-left: auto; font: 700 28px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; color: #ffb347; }
.iv-close { font-size: 26px !important; line-height: 1; padding: 0 4px !important; color: #a8b0a9; }
.iv-close:hover { color: #f5ede0; }
.iv-body { display: grid; grid-template-columns: 42% 58%; min-height: 0; flex: 1; }

/* the carry bar: everywhere the same, so a glance tells how much room is left */
.iv-cap { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 9.5px; letter-spacing: .26em; color: rgba(232,239,233,.6); }
.iv-cap:empty { display: none; }
.iv-cap i { width: 120px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.iv-cap b { display: block; height: 100%; border-radius: 2px; background: #ffb347; box-shadow: 0 0 8px rgba(255,179,71,.6); transition: width .25s ease; }
.iv-cap em { font: 700 16px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .06em; color: #f5ede0; font-variant-numeric: tabular-nums; }
.iv-cap em.full { color: #ff6a5a; }

/* the character: the city's renderer at a larger scale, turned with A D; under it, what is worn, as a plain list */
.iv-person { position: relative; min-height: 0; display: flex; flex-direction: column; padding: 0 18px 14px 26px; }
.iv-person > canvas { width: 100%; flex: 1; min-height: 0; object-fit: contain; }
.iv-preview-tag { position: absolute; top: 10px; left: 0; right: 0; text-align: center; font-weight: 600; font-size: 9.5px; letter-spacing: .3em; color: #ffb347; }
.iv-turn { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: -8px; }
.iv-turn span { font-weight: 600; font-size: 9px; letter-spacing: .3em; color: rgba(232,239,233,.45); }
.iv-turn button { font-size: 22px; color: #c9c3b4; padding: 0 6px !important; }
.iv-turn button:hover { color: #ffb347; }
.iv-worn h3, .iv-list h3 { margin: 10px 0 2px 12px; font-weight: 600; font-size: 9.5px; letter-spacing: .34em; color: rgba(232,239,233,.5); }
.iv-worn .iv-row { padding: 3px 12px; }
.iv-worn .iv-row canvas { width: 30px; height: 24px; }
.iv-worn .iv-row b { font-size: 14px; }
.iv-worn .iv-row b small { display: none; }
.iv-slotname { width: 78px; flex: none; font-weight: 600; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(232,239,233,.5); }
.iv-row.empty b { color: rgba(232,239,233,.35); font-weight: 500; }

/* the lists: carrying · the shop · the body */
.iv-content { min-height: 0; display: flex; flex-direction: column; padding: 0 24px 0 14px; border-left: 1px solid rgba(255,255,255,.06); }
.iv-panes { display: flex; gap: 6px; flex: none; padding: 2px 0 8px; }
.iv-pane { padding: 7px 13px !important; border-radius: 14px; font-weight: 600; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(232,239,233,.6) !important; }
.iv-pane small { font-size: 10px; color: #ffb347; margin-left: 2px; }
.iv-pane:hover { color: #f5ede0 !important; }
.iv-pane.on { background: rgba(255,179,71,.14); color: #ffb347 !important; }
.iv-list { flex: 1; min-height: 60px; overflow-y: auto; padding: 2px 0; scrollbar-color: #53635d transparent; scrollbar-width: thin; }
.iv-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 12px; cursor: pointer; transition: background .12s; }
.iv-row:hover { background: rgba(255,255,255,.04); }
.iv-row.sel { background: rgba(255,179,71,.13); }
.iv-row.busy { opacity: .7; }
.iv-row canvas { width: 42px; height: 32px; flex: none; }
.iv-ico { display: grid; place-items: center; width: 42px; height: 32px; flex: none; font: 700 22px/1 "Barlow Condensed", sans-serif; color: #ffb347; }
.iv-row b { flex: 1; min-width: 0; font: 700 17px/1.05 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: #f5ede0; }
.iv-row b small { display: block; margin-top: 3px; font: 600 9.5px/1.2 "Barlow Semi Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: rgba(232,239,233,.55); }
.iv-row.sel b small { color: rgba(232,239,233,.75); }
.iv-val { font: 700 16px/1 "Barlow Condensed", sans-serif; letter-spacing: .04em; color: #ffb347; white-space: nowrap; }
.iv-flash { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); padding: 3px 9px; border-radius: 9px; background: rgba(6,9,11,.92); font: 700 11px/1 "Barlow Condensed", sans-serif; font-style: normal; letter-spacing: .14em; color: #39d9cc; animation: iv-flash .2s ease-out; }
.iv-flash.bad { color: #ff6a5a; }
.iv-row:has(.iv-flash) .iv-val { visibility: hidden; }
.iv-empty { margin: 18px 12px; font-size: 14px; line-height: 1.5; color: rgba(232,239,233,.5); }

/* the chosen thing: its words and what you can do with it */
.iv-detail { flex: none; min-height: 118px; padding: 14px 12px 6px; border-top: 1px solid rgba(255,255,255,.07); }
.iv-detail-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.iv-detail h2 { margin: 0 0 5px; font: 700 23px/1.05 "Barlow Condensed", sans-serif; letter-spacing: .04em; color: #f5ede0; }
.iv-detail-title span { font-weight: 600; font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(232,239,233,.5); white-space: nowrap; }
.iv-detail p { margin: 0 0 12px; font-size: 12.5px; line-height: 1.45; color: rgba(232,239,233,.68); max-width: 520px; }
.iv-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.iv-actions button { padding: 8px 14px !important; border-radius: 12px; font-weight: 600; font-size: 12.5px; letter-spacing: .06em; color: #f5ede0; background: rgba(255,255,255,.07); }
.iv-actions button:hover { background: rgba(255,255,255,.12); }
.iv-actions .iv-primary { background: #ffb347; color: #170f07; }
.iv-actions .iv-primary:hover { background: #ffc36f; }
.iv-actions .iv-primary .kc { border-color: rgba(23,15,7,.4); color: #170f07; }
.iv-actions button:disabled { opacity: .45; cursor: wait; }
.iv-actions .kc { margin-left: 6px; }
.iv-wait { color: #ffb347; font-size: 18px; letter-spacing: .2em; }
.iv-window footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 28px 14px; }
.iv-status { min-height: 16px; font: 700 13px/16px "Barlow Condensed", sans-serif; letter-spacing: .14em; }
.iv-status .ok { color: #39d9cc; } .iv-status .bad { color: #ff6a5a; }
.iv-keys { display: flex; gap: 14px; font-weight: 600; font-size: 9px; letter-spacing: .22em; color: rgba(232,239,233,.55); white-space: nowrap; }
.iv-keys .kc { margin-right: 5px; }

/* the first look: skin, hair, a haircut, then the city */
.iv-intro { margin: 6px 12px 22px; font: 400 32px/1.1 "Barlow Condensed", sans-serif; color: #f5ede0; }
.iv-character { display: flex; gap: 14px; margin: 0 12px; }
.iv-character button { display: flex; gap: 10px; align-items: center; padding: 9px 0 !important; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.14) !important; }
.iv-character i { display: block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.iv-label { margin: 24px 12px 10px; font-weight: 600; font-size: 9.5px; letter-spacing: .3em; color: rgba(232,239,233,.5); }
.iv-cuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 12px; }
.iv-cuts button { padding: 12px !important; border-radius: 12px; text-transform: capitalize; font-size: 13px; background: rgba(255,255,255,.05); }
.iv-cuts button:hover { background: rgba(255,255,255,.1); }
.iv-cuts .on { background: rgba(255,179,71,.16); color: #ffb347; }

/* ------------------------------------------------------------------ the search sheet (E at a body or a victim) */
.iv-sheet { position: fixed; left: 50%; bottom: 150px; z-index: 940; width: 420px; max-height: min(62vh, 560px); display: flex; flex-direction: column; transform: translateX(-50%); padding: 4px 6px 6px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(14,19,21,.94), rgba(6,9,11,.95)); box-shadow: 0 18px 50px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.06); animation: iv-up .2s cubic-bezier(.2,.8,.2,1); }
.iv-shead { padding: 12px 12px 8px; }
.iv-shead em { display: block; font-style: normal; font-weight: 600; font-size: 9.5px; letter-spacing: .34em; color: #ffb347; }
.iv-shead b { display: block; margin-top: 4px; font: 700 26px/1 "Barlow Condensed", sans-serif; letter-spacing: .06em; color: #f5ede0; }
.iv-shead p { margin: 5px 0 0; font-size: 11.5px; line-height: 1.35; color: rgba(232,239,233,.62); }
.iv-shead p:empty { display: none; }
.iv-sheet .iv-list { flex: 0 1 auto; min-height: 0; }
.iv-sheet .iv-row { padding: 7px 12px 6px; }
.iv-sheet .iv-cap { padding: 8px 12px 2px; }
.iv-sheet .iv-cap i { flex: 1; }
.iv-sheet .iv-detail { min-height: 0; padding: 10px 12px 4px; border-top: 0; }
.iv-sheet .iv-detail h2 { font-size: 19px; }
.iv-sheet .iv-detail p { font-size: 11.5px; margin-bottom: 9px; }
.iv-sheet .iv-detail:empty { display: none; }
.iv-sheet .iv-status { display: block; min-height: 17px; padding: 2px 12px 0; }
.iv-sheet .iv-keys { justify-content: center; padding: 8px 10px 6px; }

@keyframes iv-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes iv-up { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes iv-flash { from { opacity: 0; transform: translate(6px, -50%); } to { opacity: 1; transform: translate(0, -50%); } }
@media (max-width: 760px) {
  .iv-window { height: 96vh; border-radius: 14px; } .iv-head { padding: 14px 16px 10px; gap: 14px; } .iv-head h1 { font-size: 24px; } .iv-money { font-size: 22px; }
  .iv-body { grid-template-columns: 38% 62%; } .iv-person { padding: 0 8px 8px 10px; } .iv-content { padding: 0 10px 0 6px; }
  .iv-worn .iv-row { padding: 3px 6px; } .iv-slotname { width: 56px; font-size: 8px; } .iv-row b { font-size: 15px; } .iv-cap i { width: 70px; }
  .iv-window footer { padding: 8px 14px 10px; } .iv-keys { display: none; } .iv-sheet { width: min(420px, 96vw); bottom: 120px; }
}
@media (prefers-reduced-motion: reduce) { .iv-window, .iv-sheet, .iv-flash { animation: none; } .iv-row, .iv-cap b { transition: none; } }
