@charset "UTF-8";

body,
html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 999999;
}

.xp_dialog,
.message_cont {
    background: #ffffe1;
    color: #000;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
    border: #000000 solid 1px;
}

.xp_textbox,
#login_error,
#login_readme,
#login_name,
#login_room {
    position: absolute;
    padding: 4px 3px;
    border: none;
    border-radius: 3px;
    box-shadow: 2px 2px 2px #6f3a13;
    outline: none;
    background: #fff;
    color: #000;
}

#content {
    width: 100%;
    height: 100%;
    position: fixed;
}

body {
    background-color: #662200;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: '';
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

body,
html {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    font-family: "Tahoma", sans-serif;
}

input {
    font-family: "Tahoma", sans-serif;
}

input[type="text"] {
    background-color: #fff;
    border: 1px inset #AAA;
    color: #000;
}

.xp_bubble,
.bubble {
    background: #ffffe1;
    color: #000;
    -webkit-border-radius: 9px;
    -moz-border-radius: 9px;
    border-radius: 9px;
    border: #000000 solid 1px;
}

@font-face {
    font-family: 'Tahoma';
    src: url("font/Tahoma/Tahoma.eot#iefix") format("embedded-opentype"), url("font/Tahoma/Tahoma.woff") format("woff"), url("font/Tahoma/Tahoma.ttf") format("truetype"), url("font/Tahoma/Tahoma.svg#Tahoma") format("svg");
    font-weight: normal;
    font-style: normal;
}

.bonzi {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 160px;
    user-select: none;
    touch-action: none;
    background-repeat: no-repeat;
}

.bubble {
    font-size: 14px;
    width: 197px;
    position: absolute;
}

.bubble_cont {
    padding: 12px;
    user-select: text;
    max-height: 175px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    overflow-y: auto;
}

.bubble::after {
    content: '';
    position: absolute;
}

.bubble-left {
    right: 150px;
    top: 40px;
}

.bubble-left::after {
    background-image: url("img/bonzi/bubble_tail_l.png");
    width: 22px;
    height: 14px;
    top: 12px;
    right: -22px;
}

.bubble-right {
    top: 40px;
    left: 155px;
}

.bubble-right::after {
    background-image: url("img/bonzi/bubble_tail_r.png");
    width: 22px;
    height: 14px;
    top: 12px;
    left: -22px;
}

.bubble-bottom {
    top: 156px;
}

.bubble-bottom::after {
    background-image: url("img/bonzi/bubble_tail_b.png");
    width: 28px;
    height: 22px;
    top: -22px;
    left: 26px;
}

.bubble-top {
    bottom: 150px;
}

.bubble-top::after {
    background-image: url("img/bonzi/bubble_tail_t.png");
    width: 28px;
    height: 22px;
    left: 110px;
    bottom: -22px;
}

.bonzi_name, .bonzi_tag {
    border-style: solid;
    border-width: 4px 12px 4px 0;
    border-radius: 9px;
    border: #000000 solid 1px;
    padding: 8px;
    position: absolute;
    background: #ffffe1;
    font-size: 12px;
    color: #000;
    max-width: 300px;
    overflow: hidden;
}

.bonzi_tag {
    position: absolute;
    top: -23px;
    font-weight: 900;
    font-size: 10px;
    padding: 6px;
}

.bonzi_tag:empty {
    display: none;
}

.greentext {
    color: #789922;
}

.flag {
    vertical-align: bottom;
    width: 1em;
    height: 1em;
}

body.classic #content {
    background-color: #994d00;
}#content {
    background-color: #662200;
}

#content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("img/desktop/logo.png"), url("img/desktop/bg.png");
    background-position: top right, center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

#cmd_suggestions {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffe;
    border: 6px solid #b35e00;
    border-bottom: none;
    image-rendering: pixelated;
    max-height: 180px;
    overflow-y: auto;
    color: #000;
    font-family: Tahoma, sans-serif;
    font-size: 12px;
}

#cmd_suggestions .cmd-item {
    display: flex;
    gap: 10px;
    padding: 4px 8px;
    cursor: pointer;
    white-space: nowrap;
}

#cmd_suggestions .cmd-item:hover {
    background-color: #ff9944;
    color: #fff;
}

#cmd_suggestions .cmd-item .cmd-name {
    font-weight: bold;
    min-width: 160px;
}

#cmd_suggestions .cmd-item .cmd-desc {
    color: inherit;
    opacity: 0.8;
}

#chat_bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-image: url("img/desktop/taskbar.png");
    background-size: 100% 100%;
    z-index: 999;
    border-spacing: 0;
    border-collapse: collapse;
}

#chat_tray {
    background-image: url("img/desktop/notif_left.png"), url("img/desktop/notif.png");
    background-repeat: no-repeat;
    background-position: left;
    background-size: 5px 30px, 100% 100%;
    vertical-align: middle;
    padding-left: 7px;
    padding-top: 3px;
    width: 22px;
}

.chat_bar_top {
    top: 0;
}

#start_button {
    width: 30px;
    min-width: 30px;
    height: 100%;
    margin-left: -5px;
    cursor: pointer;
    background-image: url("img/desktop/startthin.png");
    background-size: 100% 300%;
    background-repeat: no-repeat;
    background-position: 0 0;
    user-select: none;
    flex-shrink: 0;
    text-align: center;
    vertical-align: middle;
    font-size: 15px;
    color: #fff;
    line-height: 30px;
}

#start_button:hover {
    background-position: 0 50%;
}

#start_button:active {
    background-position: 0 100%;
}#start_menu {
    position: absolute;
    display: flex;
    flex-direction: column;
    bottom: 30px;
    left: 0;
    width: 300px;
    height: 500px;
    border-image: url("img/desktop/start_menu.png") 64 59 40 59 / 64px 59px 40px 59px stretch;
    box-shadow: 2px 2px 4px #0004;
    border-top-right-radius: 7px;
    z-index: 10000;
}

#start_menu_pfp {
    position: absolute;
    top: 6px;
    left: 8px;
    width: 54px;
    height: 54px;
    border: 3px solid #ffffffaa;
    border-radius: 10px;
    box-sizing: border-box;
    background: #0f0f0f url("/img/pfp/purple.png");
    background-size: contain;
    image-rendering: auto;
    cursor: pointer;
}

#start_menu_name {
    position: absolute;
    font-size: 20px;
    top: 21px;
    left: 70px;
    width: 230px;
    color: white;
    outline: none;
    padding: 0;
    border: none;
    background: none;
    text-shadow: #000000aa 2px 2px 2px;
}

#start_menu_body {
    position: absolute;
    top: 64px;
    left: 2px;
    bottom: 40px;
    right: 2px;
    padding-top: 6px;
    background:
        linear-gradient(to bottom, transparent 2px, white 2px), 
        linear-gradient(in srgb-linear to right, white, #cc0 10% 90%, white);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.start_menu_item {
    display: flex;
    flex-direction: row;
    gap: 8px;
    height: 40px;
    padding: 2px 2px 2px 12px;
    gap: 6px;
    cursor: pointer;
}

.start_menu_item:hover {
    background-color: #ff9944;
    color: white;
}

.start_menu_item_icon {
    image-rendering: auto;
    aspect-ratio: 1 / 1;
    height: 100%;
}

.start_menu_item_details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-self: center;
    flex: 1;
}

.start_menu_item_name {
    font-weight: bold;
    font-size: 16px;
}

.start_menu_item_description {
    font-size: 12px;
}

#chat_send {
    width: 100px;
    user-select: none;
    background-image: url("img/desktop/start.png");
    background-size: 100%;
    background-repeat: no-repeat;
    box-sizing: border-box;
    color: #fff;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.75);
    padding-left: 35px;
}

#chat_send:hover {
    background-position: 0 -33px;
}

#chat_send:active {
    background-position: 0 -67px;
}

#chat_message_cont {
    padding: 4px;
    display: flex;
}

#chat_message {
    flex: 1;
}

#room_info {
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
    line-height: 125%;
    text-align: right;
    padding: 7px;
    font-size: 10px;
    position: absolute;
    bottom: 30px;
    right: 0;
    user-select: text;
}

.tray_btn {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 2px 0px;
}

#btn_tile {
    background-image: url("img/desktop/tile.png");
}

#page_login {
    background-color: #dc761a;
    background-image: url("img/logon/logo.png"), url("img/logon/top.png"), url("img/logon/bottom.png"), url("img/logon/topleft.png");
    background-position: center, top, bottom, top left;
    background-size: auto, 100% 100px, 100% 122px, auto;
    background-repeat: no-repeat;
}

#flashthemes_banner_link {
    position: absolute;
    top: 19px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: block;
}

#flashthemes_banner_link img {
    height: 60px;
    width: auto;
    display: block;
    border-radius: 6px;
}

#login_card {
    background-image: url("img/logon/card.png");
    width: 353px;
    height: 70px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: 20px;
    margin-top: -35px;
    box-sizing: border-box;
}

#login_error {
    top: 100%;
    position: absolute;
    margin-top: 8px;
    color: #d03b3b;
    font-size: 12px;
    padding: 8px;
}

#login_readme {
    color: #444;
    padding: 12px;
    bottom: 24%;
    width: auto;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    text-align: center;
    left: 50%;
}

#login_name,
#login_room {
    width: 160px;
    box-sizing: border-box;
}

#login_name {
    height: 28px;
    top: 8px;
    left: 16px;
    font-size: 14px;
}

#login_room {
    height: 18px;
    top: 43px;
    left: 16px;
    font-size: 12px;
}

#login_go {
    left: 185px;
    top: 24px;
    position: absolute;
    width: 20px;
    height: 20px;
    background-image: url("img/logon/go.png");
    background-size: 100%;
    background-repeat: no-repeat;
}

#login_go:hover {
    background-position: 0 -20px;
}

#login_go:active {
    background-position: 0 -40px;
}

#login_load {
    color: #fff;
    font-weight: bold;
    font-style: italic;
    font-size: 35px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: absolute;
    line-height: 100%;
    height: 35px;
    top: 50%;
    left: 50%;
    margin-left: 23px;
}

#login_version {
    color: #fff;
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 16px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* css spec blunder */
[hidden] {
    display: none !important;
}

#chat_log_button {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 40px;
    height: 30px;
    border: 1px solid white;
    border-radius: 4px;
    background:
        center / 16px no-repeat url("bars.svg"),
        radial-gradient(circle at 4px 4px, #fff6 0%, #0000 70%),
        linear-gradient(to top, #774412, #0000 12px),
        linear-gradient(to left, #774412, #0000 12px),
        linear-gradient(to bottom, #c57a2a 2px, #0000 3px),
        linear-gradient(to right, #c57a2a 2px, #0000 3px),
        #ac5a10;
}

/* inconsistent as fuck in true XP style */
#chat_log_button:hover {
    background:
        center / 16px no-repeat url("bars.svg"),
        radial-gradient(circle at 4px 4px, #fff6 0%, #0000 100%),
        linear-gradient(to top, #7c5420, #0000 12px),
        linear-gradient(to left, #7c5420, #0000 12px),
        linear-gradient(to bottom, #df9b4a 2px, #0000 3px),
        linear-gradient(to right, #df9b4a 2px, #0000 3px),
        #d46b1a;
}

#chat_log_button:active {
    background:
        center / 16px no-repeat url("bars.svg"),
        radial-gradient(circle at 4px 4px, #fff3 0%, #0000 70%),
        linear-gradient(to top, #96621e 2px, #0000 3px),
        linear-gradient(to left, #96621e 2px, #0000 3px),
        linear-gradient(to right, #503010, #0000 12px),
        linear-gradient(to bottom, #503010, #0000 12px),
        #8f4f10;
}

#chat_log {
    position: absolute;
    width: 350px;
    z-index: 9999;
    height: calc(100% - 30px);
}#chat_log .window_body {
    display: flex;
}

#chat_log_resize {
    position: absolute;
    top: 0;
    right: -4px;
    bottom: 0px;
    width: 12px;
    cursor: ew-resize;
    user-select: none;
}

#chat_log_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden scroll;
    font-size: 12pt;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

#chat_log_content hr:first-child {
    display: none;
}

.window {
    display: flex;
    flex-direction: column;
    max-width: 100%;
}

.window_header {
    display: flex;
    user-select: none;
    align-items: center;
    height: 32px;
    padding: 2px 7px 0 10px;
    border-image: url("img/desktop/window_header.png") 0 9 fill / 0px 9px;
    image-rendering: pixelated;
    color: white;
    font-size: 16px;
    text-shadow: #0006 2px 2px 1px;
}.window_body {
    flex: 1;
    padding: 4px 6px 6px 6px;
    border: 6px solid #b35e00;
    border-top: none;
    image-rendering: pixelated;
    background: #ffe;
    overflow: hidden;
}.window_close {
    margin-left: auto;
    width: 21px;
    height: 21px;
    margin-bottom: 2px;
    background-image: url("img/desktop/close.png");
}.window_close:hover {
    background-position-y: -21px;
}

.window_close:active {
    background-position-y: -42px;
}

.log_message {
    display: flex;
    flex-direction: row;
    padding: 1px 6px;
    gap: 12px;
    image-rendering: auto;
    position: relative;
}

.log_message:hover {
    background-color: #0002;
}

.log_time {
    color: #bbb;
}

.reply {
    display: none;
    width: 14px;
    height: 14px;
    margin: 2px;
    position: absolute;
    top: 1px;
    right: 1px;
    background: url("img/reply.svg") center / contain;
    cursor: pointer;
    user-select: none;
}

.userimage {
    max-width: 100%;
    max-height: 178px;
}

.uservideo {
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 400px;
    background: black;
}

.log_message:hover .reply {
    display: block;
}

.log_icon {
    position: relative;
    align-self: flex-start;
    flex-shrink: 0;
    width: 25px;
    height: 25px;

    img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

.log_left_spacing {
    /* good fucking element */
    width: 25px;
    flex-shrink: 0;
}

.log_message_cont {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.log_message_cont>b:empty {
    display: none;
}

hr {
    border-top: 1px solid lightgrey;
    border-right: none;
    border-bottom: none;
    border-left: none;
    margin: 2px;
}

.settings {
    z-index: 9999;
}

textarea {
    flex: 1;
    background: white;
    border: 1px solid black;
    resize: none;
    margin: 1px 0 1px 0;
}

.settings .window_body {
    display: flex;
    flex-direction: column;
    padding: 10px 16px 16px 16px;
}

.blacklist {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.export_window .window_body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0px 6px 5px 6px;
}

.import_window .window_body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px 10px 10px 10px;
}

.dm_window .window_body {
    padding: 0;
}

.dm_log {
    overflow-y: auto;
    min-height: 0;
    padding: 0 2px;
}

.dm_bar {
    display: flex;
    gap: 4px;
    padding: 4px 2px 2px 2px;
    border-top: 1px solid lightgrey;
    flex-shrink: 0;
}

.dm_input {
    flex: 1;
    border: 1px solid #aaa;
    outline: none;
    background: #fff;
    padding: 2px 4px;
    font-size: 13px;
}

.button_row {
    display: flex;
    flex-direction: row;
    justify-content: end;
    gap: 2px;
}

.xp-button {
    font-size: 11px;
    box-sizing: border-box;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(236, 235, 229, 1) 86%,
        rgba(216, 208, 196, 1) 100%
    );
    border: 1px solid #003c74;
    box-shadow: none;
    border-radius: 3px;
    min-height: 23px;
    padding: 0 12px;
    cursor: pointer;
}

.xp-button:not(:disabled):active {
    box-shadow: none;
    background: linear-gradient(
        180deg,
        rgba(205, 202, 195, 1) 0%,
        rgba(227, 227, 219, 1) 8%,
        rgba(229, 229, 222, 1) 94%,
        rgba(242, 242, 241, 1) 100%
    );
}

.xp-button:not(:disabled, :active):hover {
    box-shadow: inset -1px 1px #fff0cf, inset 1px 2px #fdd889, inset -2px 2px #fbc761, inset 2px -2px #e5a01a;
}

.button_row>button {
    cursor: pointer;
}

#talkcard {
    position: absolute;
    bottom: 32px;
    padding: 4px 10px;
    background-color: #ffffe1;
    font-size: 10pt;
    width: calc(100% - 150px);
    border: 1px solid black;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    user-select: none;
    z-index: 99999;
}

blockquote {
    border-left: 3px solid grey;
    padding: 2px 0px 2px 8px;
}

.grey {
    color: grey;
}

gay-big {
    font-size: 1.5em;
}

@keyframes move {
    from {
        background-position-x: 500px;
    }

    to {
        background-position-x: 0;
    }
}

gay-spoiler {
    background-color: darkslategrey;
    border-radius: 3px;
    color: transparent;
    user-select: none;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

gay-spoiler:hover {
    background-color: #777;
}

gay-spoiler.reveal {
    background-color: #5555;
    color: black;
    user-select: all;
    cursor: auto;
}

gay-spoiler:not(.reveal) gay-rainbow {
    background: none;
}

gay-rainbow gay-spoiler:not(.reveal) {
    background-image: linear-gradient(120deg in hsl longer hue, red, red, red);
    background-size: 500px;
    animation: move 2s linear infinite;
}

gay-rainbow {
    background-image: linear-gradient(120deg in hsl longer hue, red, red, red);
    background-size: 500px;
    background-clip: text;
    color: transparent;
    animation: move 2s linear infinite;
}

code {
    border: 1px solid #bbb;
    background-color: #ddd;
    border-radius: 4px;
    font: monospace;
    padding: 0 0.2em;
}

gay-rainbow code {
    background-image: linear-gradient(#ddd8), linear-gradient(120deg in hsl longer hue, red, red, red);
    background-size: 500px;
    animation: move 2s linear infinite;
    border-color: #0004;
    color: black;
}


.yes,
.no {
    cursor: pointer;
    padding: 4px;
    margin: 2px 0px;
}

.yes {
    border: 1px solid #060;
    background-image: linear-gradient(to right, lime 50%, #cfc 50%);
}

.no {
    border: 1px solid #a00;
    background-image: linear-gradient(to right, red 50%, #fcc 50%);
}

.upload_dropzone {
    border: 1px solid #645436;
    background: url("/img/misc/upload.svg") no-repeat center / 50px 50px;
    flex: 1;
    cursor: pointer;
}

.upload_buttons {
    display: flex;
    justify-content: end;
    gap: 8px;
}

.upload_icon {
    height: 1rem;
    vertical-align: bottom;
}

.poll_creator .window_body {
    display: flex;
    flex-direction: column;
}

.poll-creator-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    height: 100%;
    box-sizing: border-box;
}

.poll-creator-body .poll-title {
    width: 100%;
    box-sizing: border-box;
    resize: none;
    height: 60px;
    padding: 4px;
    font-family: inherit;
    font-size: 12px;
}

.poll-creator-body hr {
    margin: 2px 0;
    border: none;
    border-top: 1px solid #aaa;
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

.poll-option-row {
    display: flex;
    gap: 4px;
    align-items: center;
}

.poll-option-row input {
    flex: 1;
    padding: 3px 5px;
    font-family: inherit;
    font-size: 12px;
    box-sizing: border-box;
}

.poll-buttons {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 4px;
}

.advpoll-options {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 4px;
}

.advpoll-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px;
    margin: 2px 0px;
    user-select: none;
}

.advpoll-option[data-index="0"] {
    border: 1px solid #060;
    background-image: linear-gradient(to right, lime 0%, #cfc 0%);
}

.advpoll-option[data-index="1"] {
    border: 1px solid #a00;
    background-image: linear-gradient(to right, red 0%, #fcc 0%);
}

.advpoll-option[data-index="2"] {
    border: 1px solid #00a;
    background-image: linear-gradient(to right, royalblue 0%, #ccf 0%);
}

.advpoll-option[data-index="3"] {
    border: 1px solid #aa0;
    background-image: linear-gradient(to right, yellow 0%, #ffc 0%);
}

.advpoll-option[data-index="4"] {
    border: 1px solid #a0a;
    background-image: linear-gradient(to right, magenta 0%, #fdf 0%);
}

.advpoll-label {
    flex: 1;
}

.advpoll-count {
    min-width: 20px;
    text-align: right;
}


@media screen and (max-height: 550px) {
    #page_login {
        background-image: url("img/logon/logo.png"), url("img/logon/topleft.png");
        background-position: center, 0 -100px;
        background-size: auto, auto;
        background-repeat: no-repeat;
    }

    #login_readme {
        font-size: 12px;
        bottom: 10%;
    }
}

@media screen and (max-height: 650px) {
    #login_apps>a:not(:first-child) {
        display: none;
    }
}

@media screen and (max-height: 450px) {
    #login_apps {
        display: none;
    }
}

@media screen and (max-height: 300px) {

    #login_readme,
    #login_version {
        display: none;
    }
}

@media screen and (max-height: 400px) and (max-width: 560px) {
    #login_readme {
        display: none;
    }
}

@media screen and (max-width: 560px) {
    #page_login {
        background-image: url("img/logon/logo.mobile.png"), url("img/logon/topleft.png");
        background-position: center, 0 -100px;
        background-size: auto, auto;
        background-repeat: no-repeat;
    }

    #login_card {
        background-image: url("img/logon/card.mobile.png");
        width: 223px;
        height: 70px;
        margin-left: -112px;
        margin-top: 40px;
    }

    #login_readme {
        bottom: 10%;
    }

    #login_load {
        margin-top: 45px;
        margin-left: 0;
        transform: translateX(-50%);
    }
}

.message_cont {
    position: absolute;
    width: 100%;
    max-width: 512px;
    height: auto;
    max-height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 32px;
    box-sizing: border-box;
    overflow: auto;
}

#page_error,
#page_ban,
#page_unsupp {
    background-color: rgba(0, 0, 0, 0.5);
}

.blessed_body {
    flex: 1;
    overflow-y: auto;
}

.roulette {
    display: flex;
    flex-direction: row;
    border: 1px solid black;
    padding: 4px;
    gap: 4px;
}

.hat-roulette {
    overflow-x: auto;
}

.card, .cardhat {
    width: 75px;
    height: 100px;
    background-position: -25px 0px;
    image-rendering: auto;
}

:is(.card, .cardhat):hover {
    background-color: #ff880066;
}

.card {
    background-size: 1500px;
}

.card.color-pick {
    background-size: cover !important;
    background-position: center !important;
}

.card.body-card {
    width: 200px !important;
    height: 160px !important;
    background: none !important;
    padding: 0 !important;
    overflow: hidden;
    flex-shrink: 0 !important;
}

.card.hat-card {
    width: 200px !important;
    height: 160px !important;
    background-color: transparent !important;
    padding: 0 !important;
    overflow: hidden;
    flex-shrink: 0 !important;
    cursor: pointer;
}


.roulette.body-roulette {
    overflow-x: auto;
}

.cardhat {
    background-size: 130px;
}

.angel { background-image: url("img/bonzi/angel.webp"); }
.glow { background-image: url("img/bonzi/glow.webp"); }
.noob { background-image: url("img/bonzi/noob.webp"); }
.gold { background-image: url("img/bonzi/gold.webp"); }
.dank { background-image: url("img/bonzi/dank.webp"); }
.illuminati { background-image: url("img/bonzi/illuminati.webp"); }
.cigar { background-image: url("img/bonzi/cigar.webp"); }
.bear { background-image: url("img/bonzi/bear.webp"); }

.explosion {
    width: 71px;
    height: 101px;
    position: absolute;
    background: url("img/misc/explosion.png");
    animation: 1s explosion steps(17) 1 forwards;
    transform: translate(65px, 30px) scale(2);
    image-rendering: pixelated;
    pointer-events: none;
    z-index: 9998;
}

@keyframes explosion {
    100% { background-position: -1207px; }
}

/*!
 * jQuery contextMenu - Plugin for simple contextMenu handling
 *
 * Version: v@VERSION
 *
 * Authors: BjÃ¶rn Brala (SWIS.nl), Rodney Rehm, Addy Osmani (patches for FF)
 * Web: http://swisnl.github.io/jQuery-contextMenu/
 *
 * Copyright (c) 2011-@YEAR SWIS BV and contributors
 *
 * Licensed under
 *   MIT License http://www.opensource.org/licenses/mit-license
 *
 * Date: @DATE
 */
.context-menu-icon.context-menu-hover:before {
    color: #FFF;
}

.context-menu-icon.context-menu-disabled::before {
    color: #8c8c8c;
}

.context-menu-icon.context-menu-icon--fa {
    display: list-item;
}

.context-menu-icon.context-menu-icon--fa.context-menu-hover:before {
    color: #FFF;
}

.context-menu-icon.context-menu-icon--fa.context-menu-disabled::before {
    color: #8c8c8c;
}

.context-menu-icon.context-menu-icon--fa span {
    font-family: sans-serif;
}

.context-menu-list {
    background: #FFF;
    border: 1px solid #aca899;
    border-radius: 0;
    box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.5);
    font-family: inherit;
    font-size: 11px;
    display: inline-block;
    list-style-type: none;
    margin: 0;
    max-width: none;
    min-width: none;
    padding: 2px;
    position: absolute;
}

.context-menu-item {
    background-color: #FFF;
    color: #000;
    padding: 5px 22px;
    position: relative;
    user-select: none;
}

.context-menu-separator {
    border-bottom: 1px solid #aca899;
    margin: 1px 2.5px;
    padding: 0;
}

.context-menu-item>label>input,
.context-menu-item>label>textarea {
    user-select: text;
}

.context-menu-item.context-menu-hover {
    background-color: #b35e00;
    color: #FFF;
    cursor: pointer;
}

.context-menu-item.context-menu-disabled {
    background-color: #FFF;
    color: #8c8c8c;
    cursor: default;
}

.context-menu-input.context-menu-hover {
    background-color: #EEE;
    cursor: default;
}

.context-menu-submenu:after {
    content: '';
    border-style: solid;
    border-width: .25em 0 .25em .25em;
    border-color: transparent transparent transparent #000;
    height: 0;
    position: absolute;
    right: .5em;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    z-index: 1;
}

/**
 * Inputs
 */
.context-menu-item.context-menu-input {
    padding: .3em .6em;
}

/* vertically align inside labels */
.context-menu-input>label>* {
    vertical-align: top;
}

/* position checkboxes and radios as icons */
.context-menu-input>label>input[type="checkbox"],
.context-menu-input>label>input[type="radio"] {
    margin-right: .4em;
    position: relative;
    top: .12em;
}

.context-menu-input>label {
    margin: 0;
}

.context-menu-input>label,
.context-menu-input>label>input[type="text"],
.context-menu-input>label>textarea,
.context-menu-input>label>select {
    box-sizing: border-box;
    display: block;
    width: 100%;
}

.context-menu-input>label>textarea {
    height: 7em;
}

.context-menu-item>.context-menu-list {
    display: none;
    /* re-positioned by js */
    right: -.3em;
    top: .3em;
}

.context-menu-item.context-menu-visible>.context-menu-list {
    display: block;
}

.context-menu-accesskey {
    text-decoration: underline;
}

/* ── Hue-rotate purple UI assets to match the orange theme ─────────────────
   Purple assets sit at ~257 ° hue; orange target is ~30 °.
   A rotation of 133 ° shifts them cleanly: 257 + 133 = 390 = 30 (mod 360).

   ─────────────────────────────────────────────────────────────────────────── */

#chat_bar {
    filter: hue-rotate(133deg);
}

.window_header {
    filter: hue-rotate(133deg);
}

#login_card {
    filter: hue-rotate(133deg);
}

#login_go {
    filter: hue-rotate(-133deg);
}

#start_menu {
    filter: hue-rotate(133deg);
}

#start_menu .start_menu_item:hover {
    filter: hue-rotate(-133deg);
    background-color: #ff9944;
    color: white;
}

#start_menu_body {
    filter: hue-rotate(-133deg);
}

#start_menu_name {
    filter: hue-rotate(-133deg);
}

#start_menu_pfp {
    filter: hue-rotate(-133deg);
}

#page_login {
    background-image: none;
}

/* Logo layer — no filter so it shows true colors */
#page_login::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("img/logon/logo.png");
    background-position: center;
    background-size: auto;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1;
}

/* XP chrome layer — hue-rotated to orange */
#page_login::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("img/logon/top.png"), url("img/logon/bottom.png"), url("img/logon/topleft.png");
    background-position: top, center bottom, top left;
    background-size: 100% 100px, 100% 122px, 0;
    background-repeat: no-repeat;
    filter: saturate(3) hue-rotate(133deg);
    pointer-events: none;
    z-index: 0;
}

@media screen and (max-height: 550px) {
    #page_login::before {
        background-image: url("img/logon/logo.png");
        background-position: center;
        background-size: auto;
    }
    #page_login::after {
        background-image: url("img/logon/topleft.png");
        background-position: 0 -100px;
        background-size: auto;
    }
}

@media screen and (max-width: 560px) {
    #page_login::before {
        background-image: url("img/logon/logo.mobile.png");
        background-position: center;
        background-size: auto;
    }
    #page_login::after {
        background-image: url("img/logon/topleft.png");
        background-position: 0 -100px;
        background-size: auto;
    }

    #login_card {
        background-image: url("img/logon/card.mobile.png");
    }
}
/* ── Announce dialog ────────────────────────────────────────────────────────── */

.announce-dialog-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    height: 100%;
    box-sizing: border-box;
    overflow: auto;
}

.announce_creator .window_body {
    display: flex;
    flex-direction: column;
}

.announce-creator-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    height: 100%;
    box-sizing: border-box;
}

.announce-creator-body .announce-text {
    width: 100%;
    box-sizing: border-box;
    resize: none;
    flex: 1;
    padding: 4px;
    font-family: inherit;
    font-size: 12px;
}

.announce-buttons {
    display: flex;
    justify-content: flex-end;
}

.announce-header-row {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex: 1;
    min-height: 0;
}

.announce-warning-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    align-self: flex-start;
    filter: hue-rotate(120deg) saturate(1.5) brightness(1.1);
}

.log_announce_icon img {
    width: 22px;
    height: 22px;
    filter: hue-rotate(120deg) saturate(1.5) brightness(1.1);
}

