@font-face {
    font-family: Volter;
    src: url("@/assets/webfonts/Volter.ttf") format("truetype");
    font-weight: 400;
}

@font-face {
    font-family: Volter;
    src: url("@/assets/webfonts/Volter-b.ttf") format("truetype");
    font-weight: 700;
}

.habbo-friend-list,
.habbo-friend-list * {
    box-sizing: border-box;
}

.habbo-friend-list {
    position: relative;
    display: grid;
    grid-template-rows: 24px 17px minmax(0, 1fr) 41px 17px 33px;
    width: 230px;
    min-width: 230px;
    max-width: min(230px, calc(100vw - 16px));
    height: 350px;
    min-height: 220px;
    max-height: calc(100vh - 16px);
    overflow: hidden;
    resize: vertical;
    border: 1px solid #155a75;
    border-radius: 6px;
    background: #418db0;
    color: #000;
    font: 400 9px/1 Volter, Arial, sans-serif;
    image-rendering: var(--octane-pixel-art, pixelated);
    box-shadow: 0 3px 5px rgba(0, 0, 0, .35), inset 0 1px 0 #8adcf2;
    text-shadow: none;
}

.habbo-friend-list.search-mode {
    grid-template-rows: 24px 17px 17px minmax(0, 1fr) 33px;
}

.habbo-friend-list.has-requests:not(.search-mode):not(.requests-mode) {
    grid-template-rows: 24px 17px minmax(0, 1fr) 41px 17px 17px 33px;
}

.habbo-friend-list.requests-mode {
    grid-template-rows: 24px 17px 17px minmax(0, 1fr) 17px 33px;
}

.habbo-friend-list.search-mode.has-requests {
    grid-template-rows: 24px 17px 17px 17px minmax(0, 1fr) 33px;
}

.habbo-friend-list.collapsed-mode {
    grid-template-rows: 24px 17px 17px 33px;
    height: auto;
    min-height: 0;
    resize: none;
}

.habbo-friend-list.collapsed-mode.has-requests {
    grid-template-rows: 24px 17px 17px 17px 33px;
}

.habbo-friend-list button,
.habbo-friend-list input {
    font: inherit;
}

.habbo-friend-list button {
    margin: 0;
    color: #000;
    cursor: pointer;
}

.hfl-titlebar {
    position: relative;
    cursor: move;
    border-bottom: 1px solid #247b9c;
    background: linear-gradient(#56bad8, #3298bf);
}

.hfl-titlebar::before,
.hfl-titlebar::after,
.hfl-titlebar-grip {
    position: absolute;
    top: 7px;
    height: 8px;
    content: "";
    background: repeating-linear-gradient(0deg, rgba(230, 251, 255, .85) 0 1px, rgba(71, 157, 187, .6) 1px 2px);
}

.hfl-titlebar::before {
    left: 2px;
    width: 88px;
}

.hfl-titlebar::after {
    right: 20px;
    width: 72px;
}

.hfl-titlebar-grip {
    display: none;
}

.hfl-title {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 9px;
    white-space: nowrap;
}

.hfl-close {
    position: absolute;
    z-index: 2;
    top: 4px;
    right: 3px;
    width: 15px;
    height: 15px;
    padding: 0;
    border: 0;
    background: url("@/assets/images/friends/swf/friends-blue-close-default.png") center / 15px 15px no-repeat;
}

.hfl-close:hover {
    background-image: url("@/assets/images/friends/swf/friends-blue-close-hover.png");
}

.hfl-close:active {
    background-image: url("@/assets/images/friends/swf/friends-blue-close-pressed.png");
}

.hfl-category {
    position: relative;
    z-index: 40;
    border-top: 1px solid #82e3fa;
    border-bottom: 1px solid #16718f;
    background: #50c5ed;
}

.hfl-category-current {
    position: relative;
    width: 100%;
    height: 15px;
    padding: 1px 18px 0 5px;
    overflow: hidden;
    border: 0;
    background: transparent;
    font-weight: 700 !important;
    line-height: 13px !important;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hfl-category-current::after {
    position: absolute;
    top: 5px;
    margin-left: 4px;
    width: 9px;
    height: 5px;
    content: "";
    background: url("@/assets/images/friends/swf/arrow_down_black.png") no-repeat;
}

.search-mode .hfl-category-current::after,
.requests-mode .hfl-category-current::after,
.collapsed-mode .hfl-category-current::after {
    top: 3px;
    width: 5px;
    height: 9px;
    background-image: url("@/assets/images/friends/swf/arrow_right_black.png");
}

.hfl-content {
    min-height: 0;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}

.hfl-section {
    margin: 0 5px;
}

.hfl-section-header {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 17px;
    padding: 1px 4px 0;
    border: 0;
    background: #eee;
    font-weight: 700 !important;
    text-align: left;
}

.hfl-section-header > span:first-child::after {
    display: inline-block;
    width: 9px;
    height: 5px;
    margin-left: 3px;
    content: "";
    background: url("@/assets/images/friends/swf/arrow_down_black.png") no-repeat;
    vertical-align: 1px;
}

.hfl-section-header.collapsed > span:first-child::after {
    width: 5px;
    height: 9px;
    background-image: url("@/assets/images/friends/swf/arrow_right_black.png");
}

.hfl-select-all {
    position: absolute;
    top: 3px;
    right: 4px;
    max-width: 95px;
    overflow: hidden;
    font-weight: 400;
    line-height: 11px;
    text-decoration: underline;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hfl-select-all::after {
    display: none !important;
}

.hfl-list {
    width: 100%;
    background: #fff;
}

.hfl-friend {
    position: relative;
    display: grid;
    grid-template-columns: 20px 15px minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    height: 20px;
    min-height: 20px;
    overflow: visible;
    background: #eee;
    cursor: pointer;
}

/*
 * AIR FriendsView.refreshEntry + laf.getRowShadingColor(1): one stripe over the whole list, section headers included:
 * odd rows #ffffff, even rows #eeeeee, the selected friend #b8e2fc, and no hover colour.
 */
.hfl-section-header.hfl-row-odd,
.hfl-friend.hfl-row-odd {
    background: #fff;
}

.hfl-friend.selected,
.hfl-friend.selected.hfl-row-odd {
    background: #b8e2fc;
}

.hfl-friend-avatar,
.hfl-search-avatar,
.hfl-request-avatar {
    position: relative;
    width: 20px;
    height: 20px;
    overflow: hidden;
}

.hfl-friend-avatar {
    overflow: visible;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.hfl-friend-avatar .avatar-image,
.hfl-search-avatar .avatar-image,
.hfl-request-avatar .avatar-image {
    position: absolute !important;
    inset: 0 !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    transform: none !important;
    background-position: 51% 40% !important;
    background-size: 65px auto !important;
    image-rendering: var(--octane-pixel-art, pixelated) !important;
}

.hfl-friend-avatar .avatar-image.compact-head {
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 20px !important;
    height: 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    background-position: center !important;
    background-size: 20px 20px !important;
    box-shadow: none !important;
    image-rendering: auto !important;
}

.hfl-friend-profile,
.hfl-search-profile,
.hfl-request-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 11px;
    overflow: hidden;
}

.hfl-friend-profile > *,
.hfl-search-profile > *,
.hfl-request-profile > * {
    flex: 0 0 13px;
    width: 13px !important;
    min-width: 13px !important;
    height: 11px !important;
    min-height: 11px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hfl-friend-name,
.hfl-search-name,
.hfl-request-name {
    min-width: 0;
    padding: 1px 2px 0 3px;
    overflow: hidden;
    line-height: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hfl-friend-actions,
.hfl-search-actions,
.hfl-request-actions {
    display: flex;
    align-items: center;
    height: 20px;
}

.hfl-friend-actions {
    gap: 3px;
}

.hfl-action,
.hfl-relationship {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
}

.hfl-action.follow {
    width: 16px;
    height: 15px;
    background-image: url("@/assets/images/friends/swf/follow_friend.png");
}

.hfl-action.chat {
    width: 16px;
    height: 14px;
    background-image: url("@/assets/images/friends/swf/start_chat.png");
}

.hfl-action.add {
    width: 16px;
    height: 15px;
    background-image: url("@/assets/images/friends/swf/ask_for_friend.png");
}

.hfl-relationship {
    position: relative;
    width: 26px;
    height: 16px;
    background-image: url("@/assets/images/friends/friends-spritesheet.png");
    background-repeat: no-repeat;
}

.hfl-relationship.heart { background-position: -5px -67px; }
.hfl-relationship.smile { background-position: -57px -67px; }
.hfl-relationship.bobba { background-position: -96px -5px; }
.hfl-relationship.none { background-image: none; }

.hfl-relationship.none {
    width: 12px;
}

.hfl-relationship.none::after {
    right: 1px;
}

.hfl-relationship::after {
    position: absolute;
    top: 6px;
    right: 0;
    width: 9px;
    height: 5px;
    content: "";
    background: url("@/assets/images/friends/swf/arrow_down_black.png") no-repeat;
}

.hfl-relationship-positioner {
    z-index: 9999;
}

.hfl-relationship-menu {
    width: 30px;
    height: 72px;
    padding: 2px;
    border: 1px solid #777;
    background: #fff;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .45);
}

.hfl-relationship-menu button {
    display: block;
    width: 25px;
    height: 15px;
    padding: 0;
    border: 0;
    background-color: #ececec;
    background-image: url("@/assets/images/friends/friends-spritesheet.png");
    background-repeat: no-repeat;
}

.hfl-relationship-menu button:nth-child(even) { margin-top: 2px; background-color: #fff; }
.hfl-relationship-menu button:nth-child(3),
.hfl-relationship-menu button:nth-child(4) { margin-top: 2px; }
.hfl-relationship-menu button:hover { background-color: #cdebf6; }
.hfl-relationship-menu button.none { background-image: none; }
.hfl-relationship-menu button.heart { background-position: -5px -67px; }
.hfl-relationship-menu button.smile { background-position: -57px -67px; }
.hfl-relationship-menu button.bobba { background-position: -96px -5px; }

.hfl-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 41px;
    background: #fff;
}

.hfl-footer-border {
    display: flex;
    align-items: center;
    width: calc(100% - 10px);
    height: 31px;
    padding: 4px 5px;
    border: 1px solid #777;
    border-radius: 6px;
    background: #deded9;
    gap: 4px;
}

.hfl-footer-button {
    position: relative;
    height: 22px;
    padding: 0;
    border: 1px solid #111;
    border-radius: 4px;
    background: linear-gradient(#fff, #ddd);
    box-shadow: inset 0 0 0 1px #fff;
}

.hfl-footer-button:hover {
    background: #fff;
}

.hfl-footer-button:active {
    background: linear-gradient(#ccc, #fff);
}

.hfl-footer-button:disabled {
    opacity: .55;
}

.hfl-footer-button::before {
    position: absolute;
    inset: 0;
    margin: auto;
    content: "";
    background-position: center;
    background-repeat: no-repeat;
}

.hfl-footer-button.invite { width: 32px; }
.hfl-footer-button.invite::before { width: 19px; height: 13px; background-image: url("@/assets/images/friends/swf/room_invite.png"); }
.hfl-footer-button.home { width: 27px; }
.hfl-footer-button.home::before { width: 13px; height: 11px; background-image: url("@/assets/images/friends/swf/open_homepage.png"); }
.hfl-footer-button.search { width: 23px; margin-left: auto; }
.hfl-footer-button.search::before { width: 12px; height: 12px; background-image: url("@/assets/images/friends/swf/search.png"); }
.hfl-footer-button.delete { width: 23px; }
.hfl-footer-button.delete::before { width: 13px; height: 13px; background-image: url("@/assets/images/friends/swf/remove_friend_bin.png"); }

.hfl-footer-search {
    position: relative;
    width: 103px;
    height: 22px;
    margin-left: auto;
}

.hfl-footer-search input {
    display: block;
    width: 100%;
    height: 22px;
    padding: 2px 18px 2px 4px;
    border: 1px solid #111;
    border-radius: 2px;
    background: #fff;
    color: #000;
    outline: 0;
}

.hfl-footer-search button {
    position: absolute;
    top: 4px;
    right: 3px;
    width: 14px;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent;
}

.hfl-footer-search button::before,
.hfl-footer-search button::after {
    position: absolute;
    top: 1px;
    left: 6px;
    width: 2px;
    height: 12px;
    content: "";
    background: #777;
}

.hfl-footer-search button::before { transform: rotate(45deg); }
.hfl-footer-search button::after { transform: rotate(-45deg); }

.hfl-search-strip {
    position: relative;
    width: 100%;
    height: 17px;
    padding: 1px 15px 0 5px;
    border: 0;
    border-top: 1px solid #505050;
    border-bottom: 1px solid #202020;
    background: #6e6e6e;
    color: #fff !important;
    line-height: 14px !important;
    text-align: left;
    text-shadow: 1px 1px #333;
}

.hfl-request-strip {
    position: relative;
    width: 100%;
    height: 17px;
    padding: 1px 15px 0 5px;
    border: 0;
    border-top: 1px solid #ffc02d;
    border-bottom: 1px solid #c65400;
    background: #ff8500;
    color: #fff !important;
    line-height: 14px !important;
    text-align: left;
    text-shadow: 1px 1px #ad4e00;
}

.hfl-request-strip::after {
    position: absolute;
    top: 4px;
    margin-left: 4px;
    width: 5px;
    height: 9px;
    content: "";
    background: url("@/assets/images/friends/swf/arrow_right_white.png") no-repeat;
}

.hfl-search-strip::after {
    position: absolute;
    top: 5px;
    margin-left: 4px;
    width: 9px;
    height: 5px;
    content: "";
    background: url("@/assets/images/friends/swf/arrow_right_white.png") no-repeat;
}

.search-mode .hfl-search-strip {
    grid-row: 3;
}

.search-mode.has-requests .hfl-request-strip {
    grid-row: 3;
}

.search-mode.has-requests .hfl-search-strip {
    grid-row: 4;
}

.search-mode .hfl-search-strip::after {
    width: 9px;
    height: 5px;
    background-image: url("@/assets/images/friends/swf/arrow_down_white.png");
}

.search-mode .hfl-content {
    grid-row: 4;
    background: #bdbdbd;
}

.search-mode.has-requests .hfl-content {
    grid-row: 5;
}

.search-mode .hfl-footer {
    display: none;
}

.search-mode .hfl-bottom {
    grid-row: 5;
}

.search-mode.has-requests .hfl-bottom {
    grid-row: 6;
}

.requests-mode .hfl-request-strip {
    grid-row: 3;
}

.requests-mode .hfl-request-strip::after {
    top: 6px;
    width: 9px;
    height: 5px;
    background-image: url("@/assets/images/friends/swf/arrow_down_white.png");
}

.requests-mode .hfl-content {
    display: flex;
    grid-row: 4;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
}

.requests-mode .hfl-requests {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
}

.requests-mode .hfl-request-footer {
    flex: 0 0 auto;
}

.requests-mode .hfl-footer {
    display: none;
}

.requests-mode .hfl-search-strip {
    grid-row: 5;
}

.requests-mode .hfl-bottom {
    grid-row: 6;
}

.hfl-bottom {
    position: relative;
    background: #418db0;
}

.hfl-bottom::after {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 12px;
    height: 12px;
    content: "";
    background: repeating-linear-gradient(135deg, transparent 0 2px, rgba(255, 255, 255, .35) 2px 3px);
}

.hfl-search-results,
.hfl-requests {
    position: relative;
    min-height: 100%;
    background: #ccc;
}

.hfl-requests {
    height: 100%;
    background: #fff;
}

/* AIR SearchView: the search tab is #b6b6b6, rows (captions included) alternate #9f9f9f / #b6b6b6. */
.hfl-search-results {
    height: 100%;
    overflow: hidden;
    background: #b6b6b6;
}

.hfl-search-results-scroll {
    position: absolute;
    inset: 0 0 38px;
    overflow-x: hidden;
    overflow-y: auto;
}

.hfl-search-form {
    position: absolute;
    right: 5px;
    bottom: 5px;
    left: 5px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 74px;
    align-items: center;
    height: 31px;
    padding: 4px;
    gap: 4px;
    border: 1px solid #555;
    border-radius: 6px;
    background: #deded9;
}

.hfl-search-form input {
    width: 100%;
    height: 21px;
    padding: 2px 4px;
    border: 1px solid #111;
    border-radius: 1px;
    background: #fff;
    color: #000;
    outline: 0;
}

.hfl-search-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 21px;
    padding: 0 4px;
    gap: 3px;
    border: 1px solid #111;
    border-radius: 4px;
    background: linear-gradient(#fff, #ddd);
    box-shadow: inset 0 0 0 1px #fff;
    font-weight: 700;
}

.hfl-search-form button span {
    width: 12px;
    height: 12px;
    background: url("@/assets/images/friends/swf/search.png") center no-repeat;
}

.hfl-search-section h4 {
    height: 20px;
    margin: 0;
    padding: 5px 5px 0;
    background: #9f9f9f;
    font-family: Volter, monospace;
    font-size: 9px;
    font-weight: 700;
}

.hfl-search-result,
.hfl-request {
    display: grid;
    grid-template-columns: 20px 15px minmax(0, 1fr) auto;
    align-items: center;
    height: 20px;
    background: #fff;
}

.hfl-search-result {
    background: #9f9f9f;
    cursor: pointer;
}

.hfl-search-section h4.hfl-row-odd,
.hfl-search-result.hfl-row-odd {
    background: #b6b6b6;
}

/* AIR FriendRequestsView.refreshShading uses the friends stripe: odd #ffffff, even #eeeeee. */
.hfl-request {
    background: #eee;
}

.hfl-request.hfl-row-odd {
    background: #fff;
}

.hfl-request {
    grid-template-columns: 15px minmax(0, 1fr) auto;
    padding: 0 5px;
}

/* friend_request_entry: 16 x 14 accept / reject boxes 9px apart, the skin's accept (#33cc00) and decline (#ff3333) symbols. */
.hfl-request-actions {
    gap: 9px;
}

.hfl-request-actions button {
    width: 16px;
    height: 14px;
    padding: 0;
    border: 0;
    background: transparent center / auto no-repeat;
    image-rendering: pixelated;
}

.hfl-request-actions .accept {
    background-image: url("@/assets/images/friends/swf/request_accept.png");
}

.hfl-request-actions .decline {
    background-image: url("@/assets/images/friends/swf/request_decline.png");
}

/*
 * friend_requests_footer: a white 223 x 67 footer, a #d9d9d9 border inset 5px, and the two 203 x 21 buttons stacked
 * inside it, accept all over dismiss all, each with its symbol at x 9 and a Volter 9 caption.
 */
.hfl-request-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 5px;
    padding: 4px;
    border: 1px solid #d9d9d9;
    background: #fff;
}

.hfl-request-footer button {
    display: flex;
    align-items: center;
    width: 100%;
    height: 21px;
    padding: 0 0 0 8px;
    gap: 6px;
    border: 1px solid #777;
    border-radius: 4px;
    background: linear-gradient(#fff, #ddd);
    color: #000;
    font-family: Volter, monospace;
    font-size: 9px;
    text-align: left;
}

.hfl-request-footer button:disabled {
    opacity: .55;
}

.hfl-request-footer-icon {
    flex: 0 0 16px;
    height: 14px;
    background: center / auto no-repeat;
    image-rendering: pixelated;
}

.hfl-request-footer-icon.accept {
    background-image: url("@/assets/images/friends/swf/request_accept.png");
}

.hfl-request-footer-icon.decline {
    background-image: url("@/assets/images/friends/swf/request_decline.png");
}

/* friend_request_entry info_text: an answered request shows "accepted" / "declined" in place of its buttons. */
.hfl-request-info {
    flex: 0 0 auto;
    padding: 1px 4px 0;
    line-height: 13px;
    white-space: nowrap;
}
