/* Gildeninsel (ui/isle.js) */
#isle .win-body { padding: 4px 6px 6px; }
.is-tabs { margin-bottom: 4px; }
.is-body { max-height: 300px; overflow-y: auto; overflow-x: hidden; }
.is-text { font-size: 7px; line-height: 8px; margin: 2px 0 3px; overflow-wrap: anywhere; }
.is-small { font-size: 7px; line-height: 8px; }
.is-help { margin-top: 4px; }
.is-btns { margin: 4px 0 2px; }
.is-pic { display: flex; justify-content: center; margin: 2px 0 4px; }
.is-pic img { width: 96px; height: 96px; image-rendering: pixelated; box-shadow: 0 0 0 1px #3a2e22; }
.is-chips { display: flex; flex-wrap: wrap; gap: 3px 6px; margin: 1px 0 2px; }
.is-chip { display: inline-flex; align-items: center; gap: 2px; font-size: 8px; line-height: 9px; white-space: nowrap; }
.is-chip img { width: 12px; height: 12px; image-rendering: pixelated; }
.is-chip.red > span { color: var(--red, #e2463a); }
.is-bar { position: relative; height: 9px; margin: 2px 0; }
.is-list { display: flex; flex-direction: column; gap: 2px; max-height: 150px; overflow-y: auto; overflow-x: hidden; }
.is-row { display: flex; align-items: center; gap: 4px; min-height: 22px; padding: 2px 3px; background: #120e0b; box-shadow: inset 0 0 0 1px #2c231a; }
.is-row.done { box-shadow: inset 0 0 0 1px var(--bronze); }
.is-row.off { opacity: .6; }
.is-row .btn { min-width: 44px; }
.is-ic { flex: none; width: 16px; height: 16px; image-rendering: pixelated; }
.is-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 8px; line-height: 9px; overflow-wrap: anywhere; }
.is-done { flex: none; font-size: 8px; padding: 0 4px; }
.is-job { padding: 3px 4px; background: #120e0b; box-shadow: inset 0 0 0 1px var(--bronze); }
.is-jhead { display: flex; align-items: center; gap: 4px; font-size: 8px; line-height: 9px; }
.is-job .bar > i { background: linear-gradient(#ffe8a0 0 1px, #f2c45a 1px, #b8862e); }

/* tabs in two rows (7 pages) */
.is-tabs { flex-wrap: wrap; row-gap: 2px; }
.is-tabs .tab { flex: 1 1 auto; text-align: center; }
/* 72 px original fal art: smooth downsampling also in wallet, buffs and item previews. */
#ui img[src*="/ui/isle/"] { image-rendering: auto; object-fit: contain; }
/* the activity of the members (page "Insel") */
.is-acts { display: flex; flex-direction: column; gap: 1px; max-height: 96px; overflow-y: auto; overflow-x: hidden; }
.is-act { display: flex; align-items: center; gap: 4px; min-height: 10px; padding: 0 3px; font-size: 8px; line-height: 10px; background: #120e0b; }
.is-act:nth-child(odd) { background: #17120d; }
.is-actn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-acton { flex: none; width: 6px; font-size: 6px; }
.is-act.top0 .is-actn { color: #ffd84a; }
.is-act.top1 .is-actn { color: #d8e0ea; }
.is-act.top2 .is-actn { color: #e0a070; }
/* shop */
.is-shophead { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 1px 0 4px; }
.is-wallet > span { color: var(--gold); }
.is-shop { max-height: 210px; }
.is-slot { flex: none; width: 18px; height: 18px; position: relative; }
.is-slot img.ic { width: 16px; height: 16px; }
.is-slot .cnt { position: absolute; right: 0; bottom: -1px; font-size: 6px; line-height: 7px; }
/* pantheon */
.is-trophies { display: flex; flex-direction: column; gap: 2px; max-height: 230px; overflow-y: auto; overflow-x: hidden; }
.is-trophy { display: flex; align-items: center; gap: 4px; padding: 2px 3px; background: #120e0b; box-shadow: inset 0 0 0 1px #2c231a; }
.is-trophy.on { box-shadow: inset 0 0 0 1px #c89b3c; background: linear-gradient(90deg, rgba(200, 155, 60, .16), #120e0b 60%); }
.is-trophy:not(.on) .is-slot img { filter: grayscale(.85) brightness(.7); }
.is-trophy-actions { display: grid; gap: 2px; flex: none; }
.is-trophy .btn { min-width: 50px; }
/* talent tree */
.is-talhead { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 1px 0 4px; font-size: 8px; line-height: 9px; }
.is-talhead .dim { text-align: right; min-width: 0; }
.is-tp { flex: none; font-size: 9px; }
.is-tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.is-branch { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px 2px 4px; background: #120e0b; box-shadow: inset 0 0 0 1px #2c231a; min-width: 0; }
.is-brname { font-size: 8px; line-height: 9px; text-align: center; }
.is-talwrap { display: flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; }
.is-tal { position: relative; width: 26px; height: 26px; background: #0b0907; box-shadow: inset 0 0 0 1px #3a2e22; }
.is-tal img { width: 24px; height: 24px; margin: 1px; filter: grayscale(.7) brightness(.65); }
/* Painted at 72 px (tools/art/gen_guild_refresh.py), drawn smooth. */
#ui .is-tal img { image-rendering: auto; }
.is-tal.has img, .is-tal.can img { filter: none; }
.is-tal.has { box-shadow: inset 0 0 0 1px #c89b3c; }
.is-tal.max { box-shadow: inset 0 0 0 1px #ffd84a, 0 0 4px rgba(255, 200, 80, .45); }
.is-tal.can::after { animation-duration: 1.4s; }
.is-tal.locked { opacity: .45; }
.is-talr { position: absolute; right: 0; bottom: -1px; font-size: 6px; line-height: 7px; color: #fff; }
.is-taln { font-size: 7px; line-height: 8px; text-align: center; overflow-wrap: anywhere; max-width: 100%; }
.is-bonus { padding: 2px 3px; background: #120e0b; box-shadow: inset 0 0 0 1px #2c231a; font-size: 8px; }
.is-bonus .stat-row { gap: 4px; }
.is-bonus .stat-row .dim { min-width: 0; }
/* guild metin */
.is-gmhead { display: flex; align-items: center; gap: 5px; margin: 1px 0 3px; }
.is-gmic { flex: none; width: 24px; height: 24px; image-rendering: pixelated; }
.is-gmtitle { font-size: 10px; line-height: 11px; }
.is-mechs { display: flex; flex-direction: column; gap: 1px; }
.is-mech { font-size: 8px; line-height: 9px; }
.is-mech.on { color: #ff9a6a; }
/* the ranking of all guilds: one framed panel, rows like the ranking window (P) - medal / place, guild, best stage */
#isle .is-rank { display: flex; flex-direction: column; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#isle .is-rank > .is-small { padding: 3px 5px; }
#isle .is-rk { display: flex; align-items: center; gap: 4px; height: 14px; padding: 0 5px 0 3px; font-size: 8px; line-height: 9px; box-shadow: inset 0 -1px 0 #2a241d; }
#isle .is-rk:last-child { box-shadow: none; }
#isle .is-rk:hover { background: rgba(242, 196, 90, .07); }
#isle .is-rkn { flex: none; display: grid; place-items: center; width: 13px; height: 12px; font-size: 7px; line-height: 7px; color: var(--dim); }
#isle .is-rkm { display: block; width: 11px; height: 11px; image-rendering: auto; }
#isle .is-rkg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
#isle .is-rks { flex: none; display: flex; align-items: center; gap: 2px; white-space: nowrap; color: #e6dcc6; }
#isle .is-rks img { width: 10px; height: 10px; }
#isle .is-rk.gold .is-rkg { color: #ffd76a; }
#isle .is-rk.silver .is-rkg { color: #dfe4ea; }
#isle .is-rk.bronze .is-rkg { color: #e3a27a; }
#isle .is-rk.gold { background: linear-gradient(90deg, rgba(255, 205, 70, .14), transparent 70%); }
#isle .is-rk.mine { background: linear-gradient(90deg, rgba(242, 196, 90, .2), rgba(242, 196, 90, .04)); box-shadow: inset 2px 0 0 #e2bf72, inset 0 -1px 0 #2a241d; }
html.touch #ui #isle .is-rk { height: 16px; }

/* the HUD of the guild metin fight (ui/gmetin.js): where the quest tracker is, like the dungeon HUD (css/dungeon.css) */
#ui.in-gmetin #quest-tracker, html.touch #ui.in-gmetin #quest-tracker { display: none; }
#gm-hud { position: absolute; right: 4px; top: 145px; width: 124px; padding: 3px 4px 4px; display: flex; flex-direction: column; gap: 2px; }
#gm-hud.hidden { display: none; }
#gm-hud .gm-hp { height: 6px; }
.gm-regen { font-size: 8px; line-height: 9px; color: #7cf08a; }
.gm-regen::after { animation-duration: .9s; }
.gm-wipe { font-size: 10px; line-height: 11px; text-align: center; color: #ff5040; text-shadow: 0 0 4px #000; }
.gm-wipe::after { animation-duration: .5s; }
html.touch #ui #gm-hud { width: 132px; max-height: calc(100% - 136px - 74px * var(--tz)); overflow-y: auto; }
html.touch #ui #gm-hud .dg-hbtns .btn { min-height: 22px; }
html.touch #ui .is-tal { width: 30px; height: 30px; }
html.touch #ui .is-tal img { width: 24px; height: 24px; margin: 3px; }
html.touch #ui .is-row .btn, html.touch #ui .is-trophy .btn { min-height: 20px; }
html.touch #ui .is-trophy-actions .btn { min-height: max(22px, calc(44px / (var(--px) * var(--wz)))); }
html.touch #ui .is-tabs .tab { min-height: 16px; }
/* rows of the scrolling lists keep their height (a column flex box would squeeze them) */
.is-list > *, .is-trophies > *, .is-acts > *, .is-rank > * { flex-shrink: 0; }
.is-slot .cnt { right: 2px; }
.is-talr { right: 2px; }
/* phones: as wide as the other windows (300 art px do not fit next to the edges at the phone's scale) */
html.touch #ui #isle { width: 252px !important; }
html.touch #ui .is-tabs .tab { padding-left: 3px; padding-right: 3px; }
/* page "Insel": the jobs in "Bei der Arbeit" show who works there when hovered (workTip, the tooltip lives in #tooltip) */
#isle .is-wk { color: #c9b48a; text-decoration: underline dotted #6b5a3e; text-underline-offset: 1px; }
#isle .is-wk:hover { color: #f2d27a; text-decoration-color: #f2d27a; }
html.touch #isle .is-wline { line-height: 14px; }
html.touch #isle .is-wk { display: inline-block; padding: 6px 4px 2px; }
#tooltip .is-wtip { min-width: 110px; }
#tooltip .is-wrow { margin-top: 3px; }
#tooltip .is-whead { display: flex; justify-content: space-between; gap: 6px; line-height: 8px; }
#tooltip .is-wname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #f2e7c1; }
#tooltip .is-whead > .dim { flex: none; }
#tooltip .is-wbar { height: 3px; margin-top: 1px; }
#tooltip .is-wbar > i { background: linear-gradient(#ffe8a0 0 1px, #f2c45a 1px, #b8862e); }
