/* Freunde werben (ESC menu, ui/referral.js); reward lines and icons from codes.css (.cd-row, .cd-ic, .cd-result) */
#referral .win-body { padding: 5px 6px; overflow-y: auto; overflow-x: hidden; }
/* one height on every tab (Nutzer 08.11.2026): longer ones scroll in the body */
html:not(.touch) #ui #referral { height: 256px; }
#ui #referral > .win-body { flex: 1 1 auto; }
#referral .rf-wait { padding: 8px 0; text-align: center; font-size: 8px; }
#referral .rf-intro { font-size: 7px; line-height: 8px; margin-bottom: 4px; }
#referral .rf-note { margin-bottom: 4px; padding: 2px 4px; font-size: 7px; line-height: 8px; color: var(--gold); background: #1c150f; box-shadow: inset 0 0 0 1px #4a3a24; }
#referral .rf-note.red { color: #ff7a6a; }
/* the code: big in the middle, selectable by hand too */
#referral .rf-code { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px; background: #120e0b; box-shadow: inset 0 0 0 1px var(--bronze); }
#referral .rf-label { font-size: 7px; line-height: 8px; }
#referral .rf-val { font-size: 14px; line-height: 14px; letter-spacing: 1px; user-select: all; -webkit-user-select: all; text-shadow: 1px 1px 0 var(--ink); }
#referral .rf-btns { width: 100%; margin-top: 2px; }
/* how many count, bar to the next step */
#referral .rf-prog { margin-top: 5px; }
#referral .rf-ptext { display: flex; justify-content: space-between; gap: 4px; font-size: 7px; line-height: 8px; }
#referral .rf-ptext > span { min-width: 0; }
#referral .rf-ptext > .dim { text-align: right; }
#referral .rf-bar { height: 4px; margin-top: 2px; background: #0f0c0a; box-shadow: inset 0 0 0 1px #3a2e22; }
#referral .rf-bar > i { display: block; height: 100%; background: linear-gradient(#ffe8a0 0 1px, #f2c45a 1px, #b8862e); }
#referral .rf-sec { margin: 6px 0 2px; }
#referral .rf-gsec { margin-top: 0; }
#referral .rf-gift { margin-bottom: 5px; }
#referral .rf-tabs { margin: 6px 0 4px; }
#referral .rf-got { margin: 0 0 5px; }
/* the steps: number of players, the reward as icons, its state */
#referral .rf-tiers { display: flex; flex-direction: column; gap: 2px; }
#referral .rf-tier { display: flex; align-items: center; gap: 4px; min-height: 22px; padding: 2px 3px; background: #15100d; box-shadow: inset 0 0 0 1px #33281d; }
#referral .rf-tier.ready { background: #2a2018; box-shadow: inset 0 0 0 1px #ffd24a; }
#referral .rf-tier.got .cd-ic img { opacity: .45; }
#referral .rf-n { flex: none; width: 26px; display: flex; flex-direction: column; align-items: center; font-size: 6px; line-height: 7px; color: var(--dim); }
#referral .rf-n b { font-weight: normal; font-size: 11px; line-height: 11px; color: var(--gold); }
#referral .rf-ics { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
#referral .rf-more { font-size: 7px; }
#referral .rf-state { flex: none; font-size: 7px; line-height: 8px; text-align: right; white-space: nowrap; }
#referral .rf-take { flex: none; }
/* the welcome gift */
#referral .rf-from { font-size: 7px; line-height: 8px; margin-bottom: 2px; }
#referral .rf-grow { display: flex; align-items: center; gap: 4px; padding: 2px 3px; font-size: 8px; line-height: 9px; background: #15100d; box-shadow: inset 0 0 0 1px #33281d; }
#referral .rf-glines { flex: 1; min-width: 0; }
/* the invited players */
#referral .rf-row { display: flex; align-items: center; gap: 4px; min-height: 11px; padding: 1px 0; font-size: 7px; line-height: 8px; border-top: 1px solid #241c15; }
#referral .rf-row:first-child { border-top: 0; }
#referral .rf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#referral .rf-lv { flex: none; }
#referral .rf-why { flex: none; text-align: right; white-space: nowrap; }
#referral .rf-none { font-size: 7px; line-height: 8px; padding: 2px 0; }
/* tab "Creator" (server/creator.js): the creator the account supports, his gift stages */
#referral .rf-crt .eq-btns { margin-top: 4px; }
#referral .rf-crt .eq-btns > a.btn { display: flex; align-items: center; justify-content: center; text-decoration: none; }
#referral .rf-cname { color: #ff7ae6; }
#referral .rf-csub { margin: 4px 0 0; }
#referral .rf-cic { position: relative; }
#referral .rf-cic > i { position: absolute; left: auto; right: 0; bottom: 0; height: auto; background: none; font-style: normal; font-size: 6px; line-height: 6px; color: #fff; text-shadow: var(--ol); }
