/* The endless rift beyond its floors (ui/rift.js, user 02.11.2026): groups of 2-3, the rules of the week, the season's
   list - in the window #evolution (view 'rift'), the HUD #rift-hud, the ready check #rift-ready, the summary #rift-result
   and the waiting window of a fallen group member (#death .rf-death). Panels like the Battle Pass (.fp, imperial.css). */
#evolution[data-view="rift"] .ev-body > .fp { margin-top: 4px; }
#evolution .fp .fp-txt + .ev-table, #evolution .fp .fp-txt + .fp-kv { margin-top: 3px; }
/* a rule of the week: its name, what it does */
#evolution .rf-rule { display: flex; flex-direction: column; padding: 2px 0 3px; font-size: 7px; line-height: 8px; box-shadow: inset 0 -1px 0 #2a241d; }
#evolution .rf-rule:last-child { box-shadow: none; }
#evolution .rf-rule > b { font-weight: normal; color: #f0a860; }
#evolution .rf-rule.good > b { color: var(--green); }
#evolution .rf-rule > span { color: #d8ccb2; overflow-wrap: anywhere; }
#evolution .rf-kv > div > span:last-child { color: var(--gold); }
/* the season: alone / group, this season / the last, the classes */
#evolution .rf-season .fp-b { display: flex; flex-direction: column; gap: 3px; }
#evolution .rf-seg { width: 100%; }
#evolution .rf-seg > .btn.small.on, #evolution .rf-jobs > .btn.on { color: var(--gold); box-shadow: 0 0 0 1px var(--edge), inset 0 0 0 1px var(--gold); background: #2a2018; }
#evolution .rf-jobs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
#evolution .rf-job { height: 14px; padding: 0; display: grid; place-items: center; }
#evolution .rf-job > img { width: 11px; height: 11px; object-fit: contain; image-rendering: auto; pointer-events: none; }
/* the list: place, name, level, floor, time */
#evolution .rf-list { margin-top: 4px; max-height: 136px; overflow-y: auto; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#evolution .rf-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) 20px 24px 28px; gap: 3px; align-items: center; height: 14px; padding: 0 4px;
  font-size: 7px; box-shadow: inset 0 -1px 0 #2a241d; }
#evolution .rf-row:hover { background: rgba(242, 196, 90, .07); }
#evolution .rf-row.me { 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; }
#evolution .rf-head { position: sticky; top: 0; z-index: 1; height: 11px; color: var(--dim); background: #16120f; }
#evolution .rf-head:hover { background: #16120f; }
#evolution .rf-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#evolution .rf-pl { display: grid; place-items: center; }
#evolution .rf-nm { display: flex; align-items: center; gap: 2px; }
#evolution .rf-nm > img { flex: none; width: 9px; height: 9px; object-fit: contain; }
#evolution .rf-nm > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#evolution .rf-lv, #evolution .rf-fl, #evolution .rf-tm { text-align: right; }
#evolution .rf-own { margin-top: 2px; background: linear-gradient(#1c1814, #110e0c); box-shadow: inset 0 0 0 1px #47423a; }
#evolution .rf-own > .rf-row, #evolution .rf-own > .rf-grp { box-shadow: none; }
/* a group of the list: one block in the columns of .rf-row (place, the members with their levels, floor, time) */
#evolution .rf-grp { display: grid; grid-template-columns: 18px minmax(0, 1fr) 24px 28px; gap: 3px; align-items: center; padding: 1px 4px; font-size: 7px; box-shadow: inset 0 -1px 0 #2a241d; }
#evolution .rf-grp:hover { background: rgba(242, 196, 90, .07); }
#evolution .rf-grp.me { 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; }
#evolution .rf-own > .rf-grp.me { box-shadow: inset 2px 0 0 #e2bf72; }
#evolution .rf-grp > span, #evolution .rf-mem > div > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#evolution .rf-mem { min-width: 0; display: flex; flex-direction: column; }
#evolution .rf-mem > div { display: grid; grid-template-columns: minmax(0, 1fr) 20px; gap: 3px; align-items: center; height: 11px; }
#evolution .rf-mem > .self .rf-nm > span { color: var(--gold); }
#evolution .rf-note, #evolution .rf-empty { padding: 4px; font-size: 7px; line-height: 8px; text-align: center; overflow-wrap: anywhere; }
#evolution .rf-gift { display: flex; align-items: center; justify-content: center; gap: 3px; margin-top: 3px; font-size: 7px; color: var(--gold); }
#evolution .rf-gift > img { width: 12px; height: 12px; object-fit: contain; }

/* the HUD of a run: the rules, the group */
#rift-hud .rh-rules { color: #f0a860; overflow-wrap: anywhere; }
#rift-hud .rh-mate { display: flex; align-items: center; gap: 2px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rift-hud .rh-mate.dead { color: var(--red); }
#rift-hud .rh-skull { flex: none; width: 7px; height: 7px; background: var(--ic-skull) center / 7px 7px no-repeat; }
/* the ready check of a group (like the dungeons' .dg-ready) */
#rift-ready { width: 176px; }
/* a fallen group member waits */
#death .rf-death { gap: 3px; }
#death .rf-death > .dim { margin: 2px 0; text-align: center; overflow-wrap: anywhere; }
#death .rf-skull { width: 24px; height: 24px; margin: 0 auto; background: var(--ic-skull) center / 24px 24px no-repeat; }
#death .rf-death .eq-btns { width: 100%; }
/* the summary: the rules, the group; nothing shrinks when the box scrolls on a phone (the loot row shrank to nothing) */
#rift-result > * { flex-shrink: 0; }
#rift-result .rr-rules { text-align: center; color: #f0a860; overflow-wrap: anywhere; }
#rift-result .rr-team { display: flex; flex-direction: column; background: rgba(0, 0, 0, .28); box-shadow: inset 0 0 0 1px #2e251c; padding: 1px 3px; }
#rift-result .rr-tr { display: grid; grid-template-columns: minmax(0, 1fr) 46px 40px 30px; gap: 3px; height: 10px; align-items: center; }
#rift-result .rr-tr > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rift-result .rr-tr > span + span { text-align: right; }
#rift-result .rr-tr.me { color: var(--gold); }

/* phones and tablets: a finger's targets (≥ 44 CSS px; the buttons of #evolution have it from evolve.css) */
html.touch #evolution .rf-row { height: calc(30px / (var(--px) * var(--wz))); }
html.touch #evolution .rf-head { height: 12px; }
/* (the block is the target; the names need not be one each) */
html.touch #evolution .rf-grp { min-height: calc(44px / (var(--px) * var(--wz))); }
html.touch #evolution .rf-mem > div { height: calc(18px / (var(--px) * var(--wz))); }
html.touch #evolution .rf-list { max-height: none; }
/* a group's summary on a phone: the hint about the damage per second goes (it would scroll) */
html.touch #ui #rift-result.team .rr-dps { display: none; }
html.touch #ui #rift-ready .btn { min-height: calc(44px / (var(--px) * var(--wz))); }
html.touch #ui #death .rf-death .btn { min-height: calc(44px / (var(--px) * var(--wz))); }
html.touch #ui #rift-hud .rh-mate { min-height: 9px; }
