/* Auction house of the Auktionator (ui/auction.js): head strip, pages Kaufen / Verkaufen / Abholfach */
#auction .win-body { padding: 4px; }
#auction .ah-tabs { margin-bottom: 3px; }
.ah-page { display: flex; gap: 4px; height: 198px; min-height: 0; }
.ah-help { margin-top: 3px; min-height: 8px; line-height: 8px; padding: 0 2px; }
/* the yang coin next to prices */
.ah-yang i, .ah-rp i, .ah-ha i { flex: none; width: 8px; height: 8px; background: var(--ic-coin) center / 8px 8px no-repeat; }

/* ---------- head: a village of the original artwork, the own yang ---------- */
.ah-head { position: relative; height: 20px; margin-bottom: 3px; overflow: hidden; background: #0f0c0a no-repeat 0 -72px; background-size: 400px 258px;
  box-shadow: inset 0 0 0 1px var(--bronze), 0 0 0 1px var(--edge); }
.ah-shade { position: absolute; inset: 1px; background: linear-gradient(90deg, rgba(10, 7, 6, .35), rgba(10, 7, 6, .1) 50%, rgba(10, 7, 6, .55)); }
.ah-yang { position: absolute; right: 4px; top: 4px; height: 12px; display: flex; align-items: center; gap: 3px; padding: 0 5px; font-size: 8px; color: var(--gold);
  background: rgba(10, 7, 6, .82); box-shadow: inset 0 0 0 1px var(--bronze-d); cursor: help; }

/* ---------- Kaufen: search and categories on the left ---------- */
.ah-side { flex: none; width: 84px; display: flex; flex-direction: column; gap: 3px; min-height: 0; }
.ah-search { display: flex; gap: 2px; height: 12px; }
#ui .ah-search input { flex: 1; min-width: 0; width: 0; height: 12px; font-size: 7px; }
.ah-sic { flex: none; width: 12px; height: 12px; background: #2a2018 var(--ic-search) center / 12px 12px no-repeat; box-shadow: inset 0 0 0 1px var(--bronze); }
.ah-cats { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 1px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-cat { display: flex; align-items: center; justify-content: space-between; gap: 2px; height: 10px; padding: 0 3px 0 4px; font-size: 7px; line-height: 10px;
  color: var(--text); cursor: pointer; }
.ah-cat:hover { background: #241c15; color: #fff; }
.ah-cat.none { color: var(--dim); }
.ah-cat.picked { color: var(--gold); background: #33281b; box-shadow: inset 1px 0 0 var(--gold); }
.ah-cn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-cc { flex: none; font-size: 6px; color: var(--gold-d); }
.ah-check { display: flex; align-items: center; gap: 3px; height: 10px; font-size: 7px; line-height: 10px; color: var(--dim); cursor: pointer; white-space: nowrap; overflow: hidden; }
.ah-check input { flex: none; }
.ah-check span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Kaufen: filter, columns, offers, the bar ---------- */
.ah-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.ah-filter { display: flex; align-items: center; gap: 3px; height: 12px; margin-bottom: 3px; font-size: 7px; }
#ui .ah-lv-in { width: 20px; height: 12px; padding: 1px 2px; font-size: 7px; text-align: center; }
.ah-found { flex: 1; min-width: 0; text-align: right; font-size: 7px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-filter .ah-sort { flex: none; width: 64px; }
#auction .ah-fbtn { flex: none; margin-left: 3px; }
/* the finer search, in place of the list */
.ah-fp { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 1px; padding: 3px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-fup { display: flex; flex-direction: column; gap: 1px; }
.ah-fp .ah-fl { width: 58px; }
.ah-fp .ah-fc .sel { flex: 1; min-width: 0; }
.ah-fp .sel-list { max-width: 200px; }
.ah-fp .sel-opt { overflow: hidden; text-overflow: ellipsis; }
#ui .ah-pr-in { width: 48px; height: 12px; padding: 1px 3px; font-size: 7px; text-align: right; }
.ah-rars { flex: 1; min-width: 0; width: auto; margin: 0; }
#ui #auction .ah-rars .btn { color: var(--rc); }
/* (chosen: a frame and a tint in the colour of the rarity, the plain .btn.on hardly shows on them) */
#ui #auction .ah-rars .btn.on { background: #3a3026; background: color-mix(in srgb, var(--rc) 30%, #1c1814); box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--rc); }
#ui #auction .ah-fbtn.act { color: var(--gold); }
.ah-list > .eq-btns { margin-top: -20px; }
.ah-cols { display: flex; align-items: center; height: 10px; padding: 0 4px 0 25px; font-size: 6px; line-height: 10px; color: var(--gold-d);
  background: #1d1712; box-shadow: inset 0 0 0 1px #3a2d20; }
.ah-cols .c-it { flex: 1; min-width: 0; }
.ah-cols .c-lv { flex: none; width: 22px; text-align: center; }
.ah-cols .c-pr { flex: none; width: 64px; text-align: right; }
.ah-list { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 1px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-row { display: flex; align-items: center; gap: 3px; height: 21px; padding: 0 3px 0 2px; border-bottom: 1px solid #221a14; cursor: pointer; }
.ah-row:hover { background: #241c15; }
.ah-row.picked { background: #33281b; box-shadow: inset 1px 0 0 var(--gold); }
.ah-olist .ah-row { cursor: default; }
.ah-ic { flex: none; }
.ah-rt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ah-rn { font-size: 7px; line-height: 8px; color: #f2e7c1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-rn.special { color: var(--bon); }
.ah-rs { font-size: 6px; line-height: 7px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-row.own .ah-rs { color: #9fd6ff; }
.ah-rl { flex: none; width: 22px; text-align: center; font-size: 7px; }
.ah-rl.red { color: #ff7a6a; }
.ah-rp { flex: none; width: 64px; display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 7px; color: var(--gold); white-space: nowrap; }
.ah-empty { padding: 28px 8px; text-align: center; font-size: 7px; line-height: 9px; }
.ah-bar { flex: none; display: flex; align-items: center; gap: 4px; height: 26px; margin-top: 3px; padding: 0 3px; background: #1d1712; box-shadow: inset 0 0 0 1px var(--bronze-d); }
.ah-bar-empty { flex: 1; min-width: 0; font-size: 7px; line-height: 8px; }
.ah-bar-it { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; cursor: help; }
.ah-bar-t { min-width: 0; display: flex; flex-direction: column; }
.ah-bar-n { flex: none; display: flex; align-items: center; gap: 2px; font-size: 7px; white-space: nowrap; }
#ui .ah-n-in { width: 26px; height: 12px; padding: 1px 2px; font-size: 7px; text-align: right; }
.ah-bar-sum { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 6px; line-height: 7px; white-space: nowrap; }
.ah-total { font-size: 8px; line-height: 9px; color: var(--gold); }
.ah-total.red { color: #ff7a6a; }
#auction .ah-buy-btn { flex: none; min-width: 48px; }

/* phones: the row above the list as high as its fields; the finer search takes the whole page (no categories, no buy bar),
   two columns of rows a finger high; its dropdowns open over the whole window */
html.touch #ui #auction .ah-filter { height: var(--finger); }
/* (small phones beside the categories: 17 art px were left for the count of offers. The word Stufe stands in the column head below,
   the count on the category "Alle" and over the finer search) */
@media (max-width: 640px) {
  html.touch #ui #auction .ah-buy:not(.fp-on) .ah-filter > :is(.dim:first-child, .ah-found) { display: none; }
  html.touch #ui #auction .ah-buy:not(.fp-on) .ah-filter > .ah-sort { margin-left: auto; }
}
html.touch #ui #auction .ah-buy.fp-on { height: auto; }
html.touch #ui #auction .ah-buy.fp-on :is(.ah-side, .ah-bar) { display: none; }
html.touch #ui #auction .ah-fp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 8px; flex: none; }
html.touch #ui #auction .ah-fup { display: contents; }
html.touch #ui #auction .ah-fp > :first-child, html.touch #ui #auction .ah-fp > .ah-btns { grid-column: 1 / -1; }
html.touch #ui #auction .ah-fp > .ah-btns { margin-top: 0; }
html.touch #ui #auction .ah-fp .ah-fr { height: auto; min-height: var(--finger); }
html.touch #ui #auction .ah-fp :is(.ah-lv-in, .ah-pr-in) { flex: 1; min-width: var(--finger); width: 0; }
html.touch #ui #auction .ah-fp .ah-min-in { flex: none; width: var(--finger); }
/* (the same for the Laufzeit of the page Verkaufen: below the form the list lay in the scrolled body, half out of sight) */
html.touch #ui #auction :is(.ah-fp, .ah-form) .sel .sel-list { position: fixed; inset: calc(var(--finger) + 2px) 4px 4px; min-width: 0; max-width: none; max-height: none;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
html.touch #ui #auction :is(.ah-fp, .ah-form) .sel .sel-list.hidden { display: none; }
html.touch #ui #auction :is(.ah-fp, .ah-form) .sel-opt { white-space: normal; line-height: 1.1; }

/* ---------- Verkaufen ---------- */
.ah-new, .ah-own, .ah-collect, .ah-hist { display: flex; flex-direction: column; gap: 3px; min-height: 0; padding: 3px; background: rgba(0, 0, 0, .25); box-shadow: inset 0 0 0 1px #2e251c; }
.ah-new { flex: none; width: 162px; }
.ah-own, .ah-hist { flex: 1; min-width: 0; }
.ah-sec { flex: none; display: flex; justify-content: space-between; align-items: baseline; gap: 4px; height: 11px; padding: 0 1px; font-size: 8px; line-height: 10px;
  color: var(--gold); border-bottom: 1px solid #3a2e22; white-space: nowrap; }
.ah-sec .dim { font-size: 7px; }
.ah-pick { flex: none; display: flex; align-items: center; gap: 4px; min-height: 30px; }
.ah-drop { flex: none; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; background: #0f0c0a;
  box-shadow: inset 0 0 0 1px var(--bronze); }
.ah-drop.empty { box-shadow: inset 0 0 0 1px #4a3b2b; }
.ah-drop.empty::after { content: '+'; font-size: 10px; line-height: 10px; color: #6a5638; }
.ah-drop-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 7px; line-height: 8px; }
.ah-drop-t > .dim { white-space: normal; }
.ah-form { flex: none; display: flex; flex-direction: column; gap: 3px; }
.ah-fr { display: flex; align-items: center; gap: 4px; height: 12px; }
.ah-fr.off { opacity: .55; }
.ah-fl { flex: none; width: 46px; font-size: 7px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-fc { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; font-size: 7px; white-space: nowrap; }
#ui .ah-price-in { width: 72px; height: 12px; padding: 1px 3px; font-size: 7px; text-align: right; }
.ah-fc .ah-days { width: 72px; }
.ah-sum { flex: none; display: flex; flex-direction: column; padding: 2px 3px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-sr { display: flex; justify-content: space-between; gap: 4px; font-size: 7px; line-height: 9px; white-space: nowrap; }
.ah-note { font-size: 6px; line-height: 7px; margin-top: 1px; }
.ah-sum .ah-note { min-height: 14px; }
.ah-btns { margin-top: auto; }
.ah-olist, .ah-hlist { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
#auction .ah-back { flex: none; }
/* phones: the rows of the form as high as their fields (a finger, touch.css) - at 12 px they lay over each other and the
   Laufzeit dropdown took the tap meant for the price (user 13.11.2026). The page grows with them (the window scrolls on
   small phones), the own offers take the height of the form, not of their list; Anzahl only for a stack */
html.touch #ui #auction .ah-sell { height: auto; min-height: 198px; }
html.touch #ui #auction .ah-sell .ah-own { contain: size; }
html.touch #ui #auction .ah-form .ah-fr { height: auto; min-height: var(--finger); }
html.touch #ui #auction .ah-form .ah-fr.off { display: none; }
html.touch #ui #auction .ah-form .ah-n-in { width: max(26px, var(--finger)); }

/* ---------- Abholfach ---------- */
.ah-collect { flex: none; width: 150px; }
.ah-gold { flex: none; display: flex; align-items: center; gap: 4px; height: 18px; padding: 0 3px; font-size: 9px; background: #120e0b; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-gold i { flex: none; width: 16px; height: 16px; background: var(--ic-coin) center / 16px 16px no-repeat; }
.ah-bitems { flex: 1; min-height: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 1px; overflow-y: auto; overflow-x: hidden; padding: 1px;
  background: #0d0a08; box-shadow: inset 0 0 0 1px #2e251c; }
.ah-bitems .ah-empty { width: 100%; padding: 14px 4px; }
.ah-hr { display: flex; align-items: center; gap: 3px; min-height: 19px; padding: 1px 2px; border-bottom: 1px solid #221a14; }
.ah-hic { flex: none; width: 16px; height: 16px; }
.ah-hic img { width: 16px; height: 16px; object-fit: contain; display: block; }
.ah-ht { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ah-hx { font-size: 7px; line-height: 8px; overflow-wrap: anywhere; }
.ah-hd { font-size: 6px; line-height: 7px; }
.ah-ha { flex: none; display: flex; align-items: center; gap: 2px; font-size: 7px; white-space: nowrap; }

/* the item chosen for the page Verkaufen in the inventory / special inventory */
.inv-item.ah-mark::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px var(--gold); background: rgba(242, 196, 90, .14); }
/* Yang debt state in auction house and pre-debt locked items while Verkaufen is open */
#auction .ah-yang .red { color: #ff5b52; font-weight: 700; }
#auction .ah-help.red { color: #ff7a6a; }
.inv-item.ah-debt-lock > img { filter: grayscale(1); opacity: .4; }
.inv-item.ah-debt-lock::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  box-shadow: inset 0 0 0 1px #d94b43; background: rgba(160, 32, 24, .22); }
