/* Feldlager (ui/camp.js): camp picture, troop strip, order board, chest; coin trader; Begleiter window (ui/pets.js) */
.camp-head { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 14px; margin-bottom: 3px; }
.camp-head .row { gap: 3px; }
.camp-coins { display: inline-flex; align-items: center; gap: 2px; cursor: help; flex: none; }
.camp-coins img { width: 16px; height: 16px; }
.camp-sec { margin-top: 4px; padding-top: 3px; border-top: 1px solid #2a2119; }
.camp-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.camp-sec-t { color: var(--gold); font-size: 7px; margin-bottom: 1px; }
.camp-help { margin: 1px 0 2px; line-height: 7px; }
.camp-line { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 13px; margin-top: 2px; font-size: 7px; }
.camp-line.end { justify-content: flex-end; }
.camp-line .row { gap: 3px; min-width: 0; }
.camp-line > .row:first-child { flex: 1; }
.camp-bar { flex: 1; min-width: 50px; height: 9px; }
.camp-bar > i { background: linear-gradient(#a8e88c 0 1px, #5cae44 1px 5px, #3c7a32 5px); }
.camp-bar.exp > i { background: linear-gradient(#ffe8a0 0 1px, #f2c45a 1px, #b8862e); }
.camp-bar .bt { line-height: 9px; text-shadow: var(--ol); }
.cic { position: relative; display: inline-block; flex: none; width: 16px; height: 16px; background: #0f0c0a; box-shadow: inset 0 0 0 1px var(--bronze-d); }
.cic img { position: absolute; left: 0; top: 0; width: 16px; height: 100%; }
.cic .cnt { position: absolute; right: 0; bottom: 0; font-size: 6px; line-height: 6px; color: #fff; }
.camp-locked { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 10px; text-align: center; }
.camp-locked .lock { width: 12px; height: 12px; background: var(--ic-lock) center / 12px 12px no-repeat; }
.col.tight { gap: 0; }

/* ---- the camp window ---- */
#camp .c2-head { display: flex; align-items: center; gap: 5px; height: 14px; margin-bottom: 3px; }
#camp .c2-head .lv { color: var(--gold); font-size: 8px; white-space: nowrap; cursor: help; flex: none; }
#camp .c2-head .camp-bar { min-width: 0; }
#camp .c2-head .btn.small { flex: none; }
/* the picture of the camp (assets/ui/camp/lager1-3.png, 330 x 150) with banners, chests and the troop strip */
#camp .c2-scene { position: relative; width: 330px; height: 150px; background: #2a2016 no-repeat 0 0 / 330px 150px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--bronze-d), 0 0 0 1px var(--edge); }
#camp .c2-pole { position: absolute; width: 1px; height: 17px; background: #2b1d10; box-shadow: 1px 0 0 #6b5236; pointer-events: none; }
#camp .c2-pole i { position: absolute; left: 2px; top: 1px; width: 8px; height: 10px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%);
  animation: c2-wave 2.4s ease-in-out infinite; transform-origin: 0 50%; }
#camp .c2-pole i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 2px; height: 2px; background: #fff3d6; }
#camp .c2-pole.empty i { display: none; }
@keyframes c2-wave { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.8); } }
#camp .c2-chest { position: absolute; width: 16px; height: 16px; cursor: pointer; animation: c2-hop 1.4s ease-in-out infinite; }
#camp .c2-chest img { width: 16px; height: 16px; }
#camp .c2-chest b { position: absolute; left: 4px; top: -11px; width: 8px; height: 9px; background: var(--gold); color: #3a2410; font-size: 8px; line-height: 9px;
  text-align: center; font-weight: 500; box-shadow: 0 0 0 1px var(--edge); }
@keyframes c2-hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
#camp .c2-strip { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; display: grid; background: rgba(12, 9, 7, .84); box-shadow: 0 -1px 0 var(--bronze-d); }
/* a troop: its flag, the name above, the state below (four troops leave little room for long names) */
#camp .c2-seg { display: grid; grid-template-columns: 6px minmax(0, 1fr); grid-template-rows: 8px 10px; column-gap: 3px; align-content: center; align-items: center;
  padding: 0 4px; font-size: 7px; white-space: nowrap; min-width: 0; overflow: hidden; }
#camp .c2-seg + .c2-seg { box-shadow: -1px 0 0 var(--bronze-d); }
#camp .c2-seg .c2-fl { grid-row: 1 / 3; }
#camp .c2-seg .nm { min-width: 0; line-height: 8px; overflow: hidden; text-overflow: ellipsis; }
#camp .c2-seg .r2 { display: flex; align-items: center; gap: 3px; min-width: 0; height: 10px; }
#camp .c2-seg .st { color: var(--dim); flex: none; line-height: 8px; }
#camp .c2-seg .st.green { color: var(--green); }
#camp .c2-seg .camp-bar.mini { flex: 1; min-width: 10px; height: 4px; }
#camp .c2-seg .btn.small { height: 10px; min-width: 0; padding: 0 4px; font-size: 7px; }
#camp .c2-seg.ready { background: rgba(242, 196, 90, .08); }
#camp .c2-seg.off { opacity: .55; }
#camp .c2-lock { position: absolute; left: 60px; right: 60px; top: 42px; padding: 5px 6px; text-align: center; font-size: 7px; background: rgba(12, 9, 7, .88);
  box-shadow: inset 0 0 0 1px var(--bronze-d); }
.c2-fl { flex: none; width: 6px; height: 8px; background: var(--c); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
/* the order board */
#camp .c2-bh { display: flex; justify-content: space-between; align-items: center; gap: 4px; min-height: 12px; margin: 4px 0 2px; }
#camp .c2-bh .t { color: var(--gold); font-size: 8px; }
#camp .c2-bh .row { gap: 4px; min-width: 0; }
#camp .c2-bh .dim { font-size: 7px; white-space: nowrap; }
#camp .c2-board { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; max-height: 214px; overflow-y: auto; }
#camp .c2-empty { grid-column: 1 / -1; padding: 6px 4px; text-align: center; }
#camp .c2-card { position: relative; padding: 3px 4px 3px; min-width: 0; background: #1d1712; box-shadow: inset 0 0 0 1px var(--bronze-d); cursor: pointer; }
#camp .c2-card.r1 { background: #1b1816; box-shadow: inset 0 0 0 1px #6f8496; }
#camp .c2-card.r2 { background: #221a10; box-shadow: inset 0 0 0 1px var(--gold-d); }
#camp .c2-card:hover { box-shadow: inset 0 0 0 1px var(--bronze-l); }
#camp .c2-card.chosen { background: #2a2018; box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 1px var(--edge); }
#camp .c2-card.off { opacity: .7; }
#camp .c2-card .top { display: flex; align-items: center; gap: 3px; min-width: 0; }
#camp .c2-card .ty { width: 10px; height: 10px; flex: none; }
#camp .c2-card .tt { flex: 1; min-width: 0; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#camp .c2-card.chosen .tt { color: var(--gold); }
#camp .c2-card .tag { flex: none; font-size: 6px; color: var(--dim); }
#camp .c2-card.r1 .tag { color: #b9cad8; }
#camp .c2-card.r2 .tag { color: var(--gold); }
#camp .c2-card .meta { margin-top: 1px; font-size: 7px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#camp .c2-card .rew { display: flex; align-items: center; gap: 2px; margin-top: 2px; min-height: 18px; flex-wrap: wrap; }
#camp .c2-card .rew .yang { font-size: 7px; color: var(--gold); margin-left: 1px; white-space: nowrap; }
#camp .c2-card .foot { display: flex; align-items: center; gap: 3px; margin-top: 2px; min-height: 12px; font-size: 7px; }
#camp .c2-card .who { display: inline-flex; align-items: center; gap: 2px; min-width: 0; color: var(--dim); white-space: nowrap; overflow: hidden; }
#camp .c2-card .who.fit { color: var(--green); }
#camp .c2-card .go { display: flex; align-items: center; justify-content: space-between; gap: 3px; margin-top: 2px; }
#camp .c2-card .luck { flex: none; color: var(--gold); font-size: 7px; }
#camp .c2-card .btn.small { flex: none; height: 11px; padding: 0 4px; font-size: 7px; }
#camp .c2-foot { display: flex; justify-content: space-between; align-items: center; gap: 4px; margin-top: 4px; }
#camp .c2-foot .keyhelp { font-size: 7px; min-width: 0; }
/* the chest of a troop that came home: the pieces pop out one after the other */
#camp-chest .win-body { padding: 4px 5px 5px; }
#camp-chest .cc-sub { font-size: 7px; color: var(--dim); text-align: center; margin-bottom: 2px; }
#camp-chest .cc-got { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; margin: 3px 0; }
#camp-chest .slot { animation: cc-pop .35s ease-out both; }
@keyframes cc-pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
#camp-chest .cc-line { display: flex; justify-content: space-between; font-size: 7px; margin-top: 1px; }
#camp-chest .cc-luck { display: flex; align-items: center; gap: 4px; padding: 2px 4px; margin: 3px 0; font-size: 7px;
  background: rgba(242, 196, 90, .07); box-shadow: inset 0 0 0 1px var(--gold-d); }
#camp-chest .cc-luck .slot { box-shadow: inset 0 0 0 1px var(--gold), inset 1px 1px 0 1px var(--edge); }
#camp-chest .cc-luck b { display: block; color: var(--gold); font-weight: 500; }
#camp-chest .cc-ruhm { display: flex; align-items: center; gap: 4px; font-size: 7px; margin: 3px 0; }
#camp-chest .cc-lager { margin: 3px 0; padding: 2px 4px; font-size: 7px; background: rgba(242, 196, 90, .07); box-shadow: inset 0 0 0 1px var(--gold-d); }
#camp-chest .eq-btns { margin-top: 4px; }

/* coin trader (ui/camp.js CoinTrader): the stage with the picked good on the left, even rows on the right */
#coin-shop .camp-head img { width: 16px; height: 16px; }
#coin-shop .coin-tabs { flex-wrap: wrap; row-gap: 2px; }
#coin-shop .coin-tabs .tab { padding: 0 2px; }
#coin-shop .coin-cols { display: flex; gap: 6px; margin-top: 3px; }
html.touch #ui #coin-shop .coin-stage-box { display: flex; flex-direction: column; }
html.touch #ui #coin-shop .coin-stage-box > button { order: -1; margin-bottom: 3px; min-height: calc(44px / (var(--px) * var(--wz))); }
html.touch #ui #coin-shop .coin-stage { height: 66px; }
html.touch #ui #coin-shop .coin-stage canvas { width: 100%; height: 100%; object-fit: contain; }
#coin-shop .coin-stage-box { flex: none; width: 96px; text-align: center; }
#coin-shop .coin-stage { position: relative; width: 96px; height: 124px; overflow: hidden;
  background: radial-gradient(ellipse 64% 54% at 50% 66%, rgba(242, 196, 90, .2), rgba(242, 196, 90, .04) 70%, transparent 100%), linear-gradient(#211a13, #0d0a08);
  box-shadow: inset 0 0 0 1px #4a3a2a, inset 0 0 0 2px var(--edge); }
#coin-shop .coin-stage::before { content: ''; position: absolute; left: 18px; right: 18px; bottom: 3px; height: 13px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 196, 90, .45), rgba(242, 196, 90, .12) 62%, transparent); animation: pet-glow 2.6s ease-in-out infinite; }
#coin-shop .coin-stage canvas { position: absolute; left: 0; top: 0; width: 96px; height: 124px; z-index: 1; image-rendering: pixelated; cursor: grab; }
#coin-shop .coin-stage.flat { display: flex; align-items: center; justify-content: center; }
#coin-shop .coin-big { position: relative; z-index: 1; width: 48px; height: 72px; object-fit: contain; filter: drop-shadow(0 2px 2px #000c); }
#coin-shop .coin-sname { margin-top: 3px; font-size: 7px; line-height: 8px; color: var(--gold); overflow-wrap: anywhere; }
#coin-shop .coin-shint { margin-top: 1px; font-size: 6px; line-height: 7px; }
#coin-shop .coin-main { flex: 1; min-width: 0; }
#coin-shop .coin-left { margin: 0 0 2px; text-align: right; font-size: 7px; }
#coin-shop .coin-list { max-height: 196px; overflow-y: auto; padding-right: 2px; }
#coin-shop .coin-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; align-items: center; gap: 4px; min-height: 26px; padding: 1px 2px;
  border-bottom: 1px solid rgba(196, 164, 107, .14); cursor: pointer; }
#coin-shop .coin-row:hover { background: rgba(242, 196, 90, .06); }
#coin-shop .coin-row.picked { background: linear-gradient(90deg, #50463a, #2b2722); box-shadow: inset 2px 0 0 #c2a36a; }
#coin-shop .coin-pic { position: relative; width: 22px; height: 22px; background: #100e0c url('../assets/ui/imperial/slot.webp') center / cover;
  box-shadow: inset 0 0 0 1px #4d4d38, inset 1px 1px 0 1px #050403; }
#coin-shop .coin-pic img { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; object-fit: contain; pointer-events: none; }
#coin-shop .coin-pic .cnt { position: absolute; right: 1px; bottom: 0; font-size: 6px; line-height: 6px; color: #fff; pointer-events: none; }
#coin-shop .coin-txt { display: flex; flex-direction: column; min-width: 0; font-size: 7px; line-height: 8px; }
#coin-shop .coin-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#coin-shop .coin-kind { font-size: 6px; line-height: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#coin-shop .coin-price { display: inline-flex; align-items: center; gap: 1px; font-size: 7px; }
#coin-shop .coin-ic { width: 8px; height: 8px; }
#coin-shop .coin-row .btn.small { min-width: 0; padding: 0 3px; }
#coin-shop .coin-cols + .keyhelp { margin-top: 5px; }
/* counter on the menu button (camp: chests and free troops) */
.mbtn-i .mb-badge { position: absolute; left: 0; top: 0; min-width: 8px; height: 8px; padding: 0 2px; font-size: 6px; line-height: 8px; text-align: center;
  color: #fff; background: var(--red); box-shadow: 0 0 0 1px var(--edge); pointer-events: none; }
/* ride button next to AUTO (horse of the Begleiter window) */
#ride-btn { width: 18px; height: 18px; flex: none; display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: linear-gradient(#2e251c, #1c1611); box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #4a3b2b; }
#ride-btn i { width: 16px; height: 16px; background: var(--ic-horse) center / 16px 16px no-repeat; opacity: .6; }
#ride-btn:hover i { opacity: .9; }
#ride-btn.on { background: linear-gradient(#2c4a22, #1a2e14); box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #5fb04a; }
#ride-btn.on i { opacity: 1; }
/* Begleiter window (ui/pets.js): horse and the pets of the kills with their Sammelbuch */
/* the colours of the rarities (game/petdex.js RARITY_CLS), also in the pet switcher */
.pr0 { color: #d8cdb8; } .pr1 { color: #6fb2ff; } .pr2 { color: #c58bff; } .pr3 { color: #ffb43a; }
#pets .r0 { --rc: 216, 205, 184; } #pets .r1 { --rc: 111, 178, 255; } #pets .r2 { --rc: 197, 139, 255; } #pets .r3 { --rc: 255, 180, 58; }
#pets .pet-title { flex: 1; min-width: 0; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pets .pet-stars { flex: none; color: var(--gold); font-size: 6px; letter-spacing: -.5px; text-shadow: var(--ol); }
#pets .pet-stars.big { font-size: 7px; }
#pets .pet-stars .off { color: #4a3e30; }
#pets .pet-colors { margin: 0; }
#pets .pet-colors .btn.small { min-width: 34px; padding: 0 3px; }
#pets .pet-body { max-height: 250px; overflow-y: auto; padding-right: 2px; }
#pets .pet-body.pets { max-height: none; overflow: visible; padding-right: 0; }
/* Horse training: open rows, equal controls, room for translated task labels. */
#ui #pets[data-tab="horse"] > .win-body { display: flex; flex-direction: column; overflow: hidden; }
#ui #pets[data-tab="horse"] .tabs { flex: none; }
#ui #pets[data-tab="horse"] .pet-body { min-height: 0; max-height: none; overflow: hidden; }
#pets .horse-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 8px; height: min(290px, calc(100vh / var(--px) - 65px)); }
/* one size on both tabs (Nutzer 08.11.2026: Pferd and Haustiere were 338x112 and 356x286): the horse columns fill the body,
   the grid of the pets takes the height the Sammelbuch leaves */
html:not(.touch) #ui #pets { height: 336px; }
#ui #pets > .win-body { flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; }
#ui #pets > .win-body > .tabs { flex: none; }
#ui #pets > .win-body > .pet-body { flex: 1 1 auto; min-height: 0; max-height: none; }
html:not(.touch) #ui #pets .horse-layout { height: 100%; }
html:not(.touch) #ui #pets .pet-wrap { height: 100%; }
html:not(.touch) #ui #pets .pet-cols { flex: 1 1 auto; min-height: 0; height: auto; }
#pets .horse-main, #pets .horse-training { min-width: 0; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-bottom: 10px; }
#pets .horse-training { border-left: 1px solid #b49b6238; padding-left: 8px; }
#pets .horse-layout .camp-sec { margin-bottom: 6px; }
#pets .horse-layout .camp-sec-t { height: auto; white-space: normal; line-height: 1.2; margin-bottom: 4px; }
#pets .horse-layout .camp-help { white-space: normal; line-height: 1.25; margin: 4px 0; }
#pets .horse-layout .eq-btns { margin: 4px 0; width: 100%; }
#pets .horse-task { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; padding: 3px 0; border-bottom: 1px solid #b49b621c; font-size: 7px; }
#pets .horse-task > span { min-width: 0; overflow-wrap: anywhere; }
#pets .horse-task > b { flex: none; font-weight: normal; white-space: nowrap; }
#pets .horse-feed { display: flex; align-items: center; gap: 4px; }
#pets .horse-feed > span { min-width: 0; overflow-wrap: anywhere; }
#pets .horse-layout .btn { white-space: normal; height: auto; min-height: 14px; line-height: 1.15; padding: 3px 4px; }
#pets .horse-colors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* back to the stable boy (ui/horse.js note): the orange hint above its button */
#ui #pets .horse-go { margin: 4px 0 2px; line-height: 1.25; }
/* tab "Reittier" (ui/mountgear.js): Geschirr, Rüstung and the colours of the horse, in the two columns of the horse tab */
#ui #pets[data-tab="gear"] .pet-body { min-height: 0; max-height: none; overflow: hidden; }
#pets .mg-piece { display: flex; align-items: center; gap: 5px; min-height: 18px; margin: 2px 0 3px; }
#pets .mg-slot { flex: none; position: relative; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(#1f1813, #15110d); box-shadow: inset 0 0 0 1px #3a2e22; }
#pets .mg-slot > img { width: 16px; height: 16px; image-rendering: pixelated; }
#pets .mg-slot .cic { background: none; box-shadow: none; }
#pets .mg-piece.empty .mg-slot > img { opacity: .28; filter: grayscale(1); }
#pets .mg-text { min-width: 0; font-size: 7px; line-height: 1.25; }
#pets .mg-text > div { overflow-wrap: anywhere; white-space: normal; }
#pets .mg-shoes { margin-top: 5px; font-size: 7px; }
#pets .mg-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 2px 0 4px; }
#pets .mg-sw { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; min-width: 0; padding: 3px 2px;
  font: inherit; font-size: 6px; line-height: 1.15; color: #d8cdb8; cursor: pointer; border: 0;
  background: linear-gradient(#2e251c, #1c1611); box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px #4a3b2b; }
#pets .mg-sw > i { flex: none; width: 18px; height: 9px; box-shadow: 0 0 0 1px #000a, inset 0 1px 0 #fff3; }
#pets .mg-sw > i.own { background: linear-gradient(90deg, #f1ece0 0 33%, #8a5a34 33% 66%, #2a2622 66%); }
#pets .mg-sw > span { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
#pets .mg-sw:hover:not(.locked) { color: #fff; }
#pets .mg-sw.on { color: var(--gold); box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--gold); }
#pets .mg-sw.locked { cursor: default; opacity: .45; }
#pets .mg-sw.locked > i { filter: grayscale(.75); }
html.touch #ui #pets[data-tab="gear"] .btn, html.touch #ui #pets[data-tab="gear"] .tab,
html.touch #ui #pets .mg-sw { min-height: calc(44px / (var(--px) * var(--wz))); }
html.touch #ui #pets[data-tab="gear"] .btn { white-space: normal; height: auto; padding: 4px; }
#pets .pet-wrap { display: flex; flex-direction: column; gap: 4px; }
/* Sammelbuch: points to the next step, the next reward, how many are unlocked */
#pets .pet-dex { padding: 2px 4px 3px; background: linear-gradient(#1f1813, #15110d); box-shadow: inset 0 0 0 1px #3a2e22; }
#pets .pet-dex-l { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 11px; font-size: 7px; }
#pets .pet-dex-l > span { flex: none; white-space: nowrap; }
#pets .pet-dex-l > .pet-dex-next { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#pets .pet-dex .camp-bar { min-width: 0; }
#pets .pet-cols { display: flex; gap: 6px; height: 206px; }
/* the picked pet: its model alive on a pedestal in the light of its rarity (engine/modelshot.js ModelPreview) */
#pets .pet-detail { flex: none; width: 128px; overflow-x: hidden; overflow-y: auto; }
#pets .pet-stage { position: relative; width: 128px; height: 92px; overflow: hidden;
  background: radial-gradient(ellipse 62% 58% at 50% 64%, rgba(var(--rc), .26), rgba(var(--rc), .05) 70%, transparent 100%), linear-gradient(#211a13, #0d0a08);
  box-shadow: inset 0 0 0 1px #4a3a2a, inset 0 0 0 2px var(--edge); }
#pets .pet-stage::before { content: ''; position: absolute; left: 26px; right: 26px; bottom: 3px; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--rc), .5), rgba(var(--rc), .16) 62%, transparent);
  box-shadow: 0 0 0 1px rgba(var(--rc), .22); animation: pet-glow 2.6s ease-in-out infinite; }
#pets .pet-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(transparent 70%, rgba(13, 10, 8, .55)); }
@keyframes pet-glow { 50% { opacity: .55; } }
#pets .pet-stage canvas { position: absolute; left: 0; top: 0; width: 128px; height: 92px; z-index: 1; image-rendering: pixelated; }
#pets .pet-stage.locked canvas { filter: saturate(.2) brightness(.75); }
#pets .pet-sb { position: absolute; z-index: 3; font-size: 7px; line-height: 8px; text-shadow: var(--ol); pointer-events: none; }
#pets .pet-sb.tl { left: 4px; top: 3px; }
#pets .pet-sb.tr { right: 4px; top: 3px; color: #e8dcc0; }
#pets .pet-sb.bl { left: 4px; bottom: 3px; }
#pets .pet-lock { position: absolute; z-index: 3; right: 3px; bottom: 2px; width: 12px; height: 12px; background: var(--ic-lock) center / 12px 12px no-repeat; }
#pets .pet-dname { display: flex; align-items: center; gap: 3px; height: 11px; margin-top: 3px; }
#pets .pet-bonuses { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; }
#pets .pet-bonus { display: flex; justify-content: space-between; align-items: flex-start; gap: 3px; min-height: 10px; padding: 1px 3px; font-size: 7px;
  line-height: 8px; background: #17120e; box-shadow: inset 0 0 0 1px #2a2119; }
#pets .pet-bonus > span:first-child { min-width: 0; overflow-wrap: anywhere; }
#pets .pet-bonus > span:last-child { flex: none; }
/* a pet enchant bonus on its max roll value (game/petdex.js petAttrAtMax, Dev-Ticket #253; same blue as .tt-max) */
#pets .pet-bonus .pet-max { color: #8fc6ff; }
#pets .pet-btns { width: 100%; margin-top: 3px; }
/* search, filters, order, the gems of the rarities and the grid of the cards */
#pets .pet-browse { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#pets .pet-search { display: flex; align-items: center; gap: 3px; height: 12px; }
#pets .pet-qbox { position: relative; flex: 1; min-width: 0; height: 12px; }
#ui #pets .pet-q { width: 100%; height: 12px; font-size: 7px; padding: 1px 13px 1px 13px; }
#pets .pet-sic { position: absolute; left: 1px; top: 0; width: 12px; height: 12px; background: var(--ic-search) center / 12px 12px no-repeat; opacity: .75; pointer-events: none; }
#pets .pet-qx { position: absolute; right: 1px; top: 1px; width: 10px; height: 10px; cursor: pointer; opacity: .7; background: var(--ic-xsmall) center / 10px 10px no-repeat; }
#pets .pet-qx:hover { opacity: 1; }
#pets .pet-q:placeholder-shown + .pet-qx { display: none; }
#pets .pet-qn { flex: none; font-size: 7px; color: var(--dim); white-space: nowrap; }
#pets .pet-qn:empty { display: none; }
#pets .pet-tools { display: flex; align-items: center; gap: 2px; height: 12px; }
#pets .pet-tools .sel { flex: 1; min-width: 0; }
#pets .pet-chips { flex: none; display: flex; gap: 2px; }
#pets .pet-chip { width: 12px; height: 12px; display: grid; place-items: center; cursor: pointer; background: #1d1712; box-shadow: inset 0 0 0 1px var(--bronze-d); }
#pets .pet-chip i { width: 4px; height: 4px; transform: rotate(45deg); background: rgb(var(--rc)); box-shadow: 0 0 0 1px var(--edge), 0 0 3px rgba(var(--rc), .6); }
#pets .pet-chip:hover { box-shadow: inset 0 0 0 1px var(--bronze); }
#pets .pet-chip.on { background: #2a2018; box-shadow: inset 0 0 0 1px rgb(var(--rc)); }
#pets .pet-chip.dimmed i { opacity: .3; box-shadow: 0 0 0 1px var(--edge); }
#pets .pet-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(4, 50px); grid-auto-rows: 59px; gap: 2px;
  align-content: start; justify-content: space-between; padding-bottom: 1px; }
#pets .pet-none { grid-column: 1 / -1; font-size: 7px; text-align: center; padding: 6px 0; }
/* over 200 cards, most of them with a filter: those out of view cost nothing */
#pets .pet-card { content-visibility: auto; contain-intrinsic-size: auto 59px; position: relative; cursor: pointer; background: linear-gradient(#1c1611, #110d0a); box-shadow: inset 0 0 0 1px #33281d; }
#pets .pet-card::before { content: ''; position: absolute; left: 1px; right: 1px; top: 1px; height: 40px;
  background: radial-gradient(ellipse 70% 60% at 50% 78%, rgba(var(--rc), .24), transparent 72%); }
#pets .pet-card:hover { box-shadow: inset 0 0 0 1px var(--bronze); background: linear-gradient(#251d16, #15110d); }
#pets .pet-card.picked { box-shadow: inset 0 0 0 1px var(--gold), 0 0 0 1px var(--edge); background: linear-gradient(#30241a, #1a140f); }
#pets .pet-pic { position: absolute; left: 1px; top: 1px; width: 48px; height: 40px; background-repeat: no-repeat; image-rendering: pixelated; }
#pets .pet-card.locked .pet-pic { filter: grayscale(1) brightness(.5); }
#pets .pet-card.locked::before { opacity: .35; }
#pets .pet-card.locked:hover .pet-pic { filter: grayscale(.6) brightness(.8); }
#pets .pet-clv { position: absolute; left: 3px; top: 2px; font-size: 6px; line-height: 7px; color: #e8dcc0; text-shadow: var(--ol); }
#pets .pet-cout { position: absolute; right: 4px; top: 3px; width: 4px; height: 4px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 0 1px var(--edge), 0 0 3px rgba(242, 196, 90, .8); }
/* the name in up to two lines, in the middle of its place */
#pets .pet-cname { position: absolute; left: 2px; right: 2px; top: 38px; height: 14px; display: flex; align-items: center; justify-content: center;
  font-size: 7px; line-height: 7px; text-align: center; text-shadow: var(--ol); }
#pets .pet-cname > span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
#pets .pet-cname.sm { font-size: 6px; line-height: 6px; }
#pets .pet-card.locked .pet-cname { opacity: .6; }
#pets .pet-card .pet-stars { position: absolute; left: 0; right: 0; top: 52px; line-height: 7px; text-align: center; }
#pets .pet-cbar { position: absolute; left: 5px; right: 5px; top: 52px; height: 6px; background: #0d0a08; box-shadow: 0 0 0 1px var(--edge); overflow: hidden; }
#pets .pet-cbar > i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#ffe8a0 0 1px, #c99a3e 1px, #8a6526); }
#pets .pet-cbar > span { position: absolute; inset: 0; font-size: 6px; line-height: 6px; text-align: center; color: #fff; text-shadow: var(--ol); }
/* favourites (ui/pets.js favStar): the star on the picked pet marks it (the stars of the Kartensterne, fal), its card shows
   it; "Neu" on a card = risen since the pet tab was looked at last, until the window closes */
/* not a favourite: the same star in silver with a dark edge (the thin empty outline at 65 % was lost on the stage),
   a favourite: gold with a soft glow */
#pets .pet-fav { position: absolute; z-index: 3; right: 1px; bottom: 1px; width: 14px; height: 14px; cursor: pointer;
  background: url('../assets/ui/mapstars/star.png') center / 13px 13px no-repeat;
  filter: grayscale(1) brightness(1.35) drop-shadow(0 0 .5px #000) drop-shadow(0 0 1px rgba(0, 0, 0, .8)); }
#pets .pet-fav:hover { filter: grayscale(.3) brightness(1.35) drop-shadow(0 0 .5px #000) drop-shadow(0 0 1px rgba(0, 0, 0, .8)); }
#pets .pet-fav.on { filter: drop-shadow(0 0 .5px #000) drop-shadow(0 0 2px rgba(255, 190, 60, .6)); }
#pets .pet-cfav { position: absolute; right: 2px; top: 2px; width: 8px; height: 8px; pointer-events: none;
  background: url('../assets/ui/mapstars/star.png') center / 8px 8px no-repeat; }
#pets .pet-card.fav .pet-cout { right: 13px; }
#pets .pet-cnew { position: absolute; left: 2px; top: 10px; padding: 1px 2px; font-size: 6px; line-height: 7px; color: var(--green); text-shadow: var(--ol);
  background: rgba(13, 10, 8, .7); pointer-events: none; }
/* costume page of the equipment panel (ui/inventory.js) */
.eq-tabs { margin-bottom: 1px; }
.equip-panel .eq-slot.cs { display: none; }
.equip-panel.cost .eq-slot { display: none; }
.equip-panel.cost .eq-slot.cs { display: block; }
/* the page of the tools (ui/inventory.js TOOL_LAYOUT): the tab that opens it stands at the window's edge, so the page says
   its own name */
.equip-panel .eq-slot.tl, .equip-panel.tools .eq-slot { display: none; }
.equip-panel.tools .eq-slot.tl { display: block; }
.equip-panel .eq-cap { display: none; position: absolute; left: 0; right: 0; top: 12px; text-align: center; font-size: 8px; line-height: 10px; color: var(--gold); }
.equip-panel.tools .eq-cap { display: block; }
/* the page of the Talismantafel (ui/inventory.js TAL_LAYOUT): like the tools, opened by the tab under theirs */
.equip-panel .eq-slot.tal, .equip-panel.tal .eq-slot { display: none; }
.equip-panel.tal .eq-slot.tal { display: block; }
.equip-panel.tools .eq-cap.tal-cap { display: none; }
.equip-panel.tal .eq-cap.tal-cap { display: block; }
.equip-panel.cost::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: rgba(120, 60, 160, .12); }
/* the eye at the corner of a costume slot: show / hide the piece on the character (ui/inventory.js costumeEye); a
   hidden piece shows the closed lid and its icon fades */
#inventory .equip-panel .eq-eye { display: none; position: absolute; z-index: 2; width: 8px; height: 8px; border-radius: 50%;
  background: radial-gradient(closest-side, #0b0907 55%, #0b090700); opacity: .55; transition: opacity .12s; }
#inventory .equip-panel.cost .eq-eye.on { display: block; }
#inventory .equip-panel .eq-eye:hover, #inventory .equip-panel .eq-eye.hid { opacity: 1; }
#inventory .equip-panel .eq-eye:hover img { filter: drop-shadow(0 0 1px #f2c45a); }
#inventory .equip-panel .eq-eye img { display: block; width: 8px; height: 8px; pointer-events: none; }
#inventory .equip-panel .eq-slot.eq-hid img.ic { opacity: .38; filter: grayscale(.6); }
html.touch #inventory .equip-panel .eq-eye { opacity: .85; }
