:root {
    font-family: Ubuntu;
    font-size: 14px;
}

/* ~75% default scale: wide screens with mouse use CSS zoom (Chrome desktop ignores viewport initial-scale). */
/* Touch phones use viewport meta in index.html; min-width avoids stacking zoom on small viewports. */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    html {
        zoom: 0.75;
    }
}

.conceal {
    -webkit-text-security: disc;
}

#mainBody {
    background-color: #dbdbdb;
}

::-webkit-scrollbar {
    width: 6px;
    height: 0;
}

::-webkit-scrollbar-track {
    border-radius: 3px;
    background: oklch(0% 0 0 / 15%);
}

::-webkit-scrollbar-thumb {
    border-radius: 3px;
    background: oklch(0% 0 0 / 30%);
}

html,
body {
    overflow: hidden;
    height: 100%;
    position: fixed;
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

body {
    font-family: Ubuntu;
    font-size: 14px;
    background-image: url('./backgroundTile.png');
    background-repeat: repeat;
    background-color: gray;
}

body.simplified-menu {
    background-image: url('/menu-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
body.simplified-menu::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            96deg,
            rgba(110, 110, 110, 0.45) 0px,
            rgba(110, 110, 110, 0.45) 4px,
            transparent 4px,
            transparent 108px
        ),
        repeating-linear-gradient(
            8deg,
            rgba(120, 120, 120, 0.36) 0px,
            rgba(120, 120, 120, 0.36) 3px,
            transparent 3px,
            transparent 176px
        );
    opacity: 0.38;
    z-index: 0;
}

html,
body,
canvas {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

canvas {
    image-rendering: optimizeSpeed;
    image-rendering: pixelated;
    touch-action: none;
}

#gameAreaWrapper {
    touch-action: none;
}

#gameName {
    padding: 0;
    margin-top: 5px;
    margin-bottom: 10px;
    text-align: center;
    font-size: xx-large;
    font-weight: bolder;
}

h2 {
    font-size: small;
    color: #000000;
    font-weight: bold;
    text-align: center;
}

options_header {
    display: block;
    margin: 5px 0 4px;
    font: bold 13px/1 Ubuntu;
    color: #000000;
    text-align: center;
}

h3 {
    font-size: 14px;
    color: #484848;
    text-align: center;
    padding: 0;
    margin: 4px 0;
}

h4 {
    font-size: small;
    color: #1B3353;
    /*color: #8ABC3F;*/
    text-align: center;
}

h5 {
    font-size: x-small;
    color: #484848;
    text-align: center;
}
small {
    font-size: x-small;
}

a:link,
a:visited {
    color: #484848;
}

a:hover {
    color: #B5B5B9;
}

ul {
    padding-left: 15px;
    margin-left: 10px;
}

input {
    text-align: center;
    font-family: Ubuntu;
    width: 100%;
    padding: 10px;
    border: solid 1px #dcdcdc;
    transition: box-shadow 0.3s, border 0.3s;
    box-sizing: border-box;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
    outline: none;
}

input.checkbox {
    width: 13px;
    height: 13px;
    padding: 0;
    margin: 0;
    vertical-align: bottom;
    position: relative;
    top: -2px;
    overflow: hidden;
}

#optColors {
    width: 220px;
}
#optMobile {
    display: none;
}
body.mobile #optColors {
    width: 346px;
    margin-bottom: 4px;
  }
body.mobile #optMobile, body.mobile #optBorders {
    width: 170px;
    margin-bottom: 4px;
    display: inline-block;
}
#playerNameInput {
    padding: 10px;
    font-size: large;
}
body.mobile #playerNameInput {
    display: block;
    width: 100%;
    min-height: 46px;
    font-size: 18px;
    line-height: 1.2;
    box-sizing: border-box;
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
    position: relative;
    z-index: 4;
}
body.mobile.simplified-menu #startMenuSlidingContent {
    overflow: visible;
}
#playerKeyInput {
    padding: 3px;
    color: gray;
}

input:focus,
input.focus {
    border: solid 1px #CCCCCC;
    box-shadow: 0 0 3px 1px #DDDDDD;
}

div {
    -webkit-user-select: none;
    /* webkit (safari, chrome) browsers */
    -moz-user-select: none;
    /* mozilla browsers */
    -khtml-user-select: none;
    /* webkit (konqueror) browsers */
    -ms-user-select: none;
    /* IE10+ */
}
div.optionsHeader {
    display: block;
    margin: 10px 0 4px;
    font: bold 13px/1 Ubuntu;
    color: #000000;
    text-align: center;
}
.serverSelector {
    height: 170px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 13px;
    padding-left: 10px;
    overflow-y: scroll;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: oklch(0% 0 0 / 30%) oklch(0% 0 0 / 15%);
    background: #f4f7f9;
    border: 1px solid #cbd5d8;
    border-radius: 6px;
    text-align: left;
    padding: 6px;
}

.serverSelector tr {
    color: #828282;
    cursor: pointer;
}
.serverSelector td {
    padding: 2px 6px;
}

.serverSelector tr.selected {
    color: #5b7f2e;
    /*color: #8ABC3F;*/
    cursor: default;
}

#startMenu {
    position: relative;
    margin: auto;
    width: 1150px;
    padding: 10px;
    margin-top: 100px;
    margin-bottom: 100px;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    background-color: #e6edf0;
    box-sizing: border-box;
    overflow: hidden;
}
body.simplified-menu #startMenuWrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    overflow: hidden;
    z-index: 2;
}
body.simplified-menu #startMenu {
    position: relative;
    inset: auto;
    width: min(980px, 90vw);
    max-height: calc(100vh - 72px);
    padding: 14px;
    margin: 0;
    border: 0;
    background: linear-gradient(160deg, rgba(243, 246, 248, 0.78), rgba(230, 236, 240, 0.74));
    border-radius: 20px;
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(340px, 1.25fr) minmax(170px, 1fr);
    gap: 12px;
    box-sizing: border-box;
    overflow: visible;
}
body.simplified-menu .startMenuHolder {
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(165deg, #f4f7fa, #e5edf1);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    padding: 14px;
    min-height: 220px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    box-sizing: border-box;
}
body.simplified-menu .startMenuHolder.linkHolder {
    grid-column: 1;
    padding-bottom: 12px;
}
body.simplified-menu .startMenuHolder.shrinkable {
    grid-column: 2;
    background: linear-gradient(170deg, #aeb2b7, #8f949a);
}
body.simplified-menu .linkHolder center,
body.simplified-menu .linkHolder .menuButtons {
    display: none;
}
body.simplified-menu .linkHolder .optionsHeader {
    margin: 0 0 8px;
    text-align: left;
    font: 600 14px Ubuntu;
    color: #111;
}
body.simplified-menu #serverSelector.serverSelector {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
}
body.simplified-menu #serverSelector tr {
    display: block;
    border-bottom: 0;
}
body.simplified-menu #serverSelector td {
    display: block;
    height: 46px;
    padding: 6px 8px;
    box-sizing: border-box;
    font: 700 14px/1.15 Ubuntu;
    color: #121212;
    position: relative;
    border-radius: 10px;
    margin-bottom: 6px;
    background: var(--mode-color, #bfe5f1);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.28);
}
body.simplified-menu #serverSelector tr.selected td::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
    background: #000;
    opacity: 0.7;
}
body.simplified-menu #serverSelector td .simple-region {
    font-weight: 800;
    margin-right: 6px;
}
body.simplified-menu #serverSelector td .simple-line {
    display: block;
}
body.simplified-menu #serverSelector td .simple-top {
    display: flex;
    gap: 6px;
    align-items: baseline;
}
body.simplified-menu #serverSelector td .simple-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 35%, #f6f6f6, #b4b4b4);
    display: inline-block;
    margin-right: 6px;
    vertical-align: middle;
}

body.simplified-menu #simplifiedServerWrap {
    display: none;
    margin-top: 6px;
}
body.simplified-menu.simplified-other-open #simplifiedServerWrap {
    display: block;
}
body.simplified-menu #simplifiedServerWrap label {
    display: none;
}
body.simplified-menu #simplifiedServerSelect {
    width: 100%;
    height: 34px;
    border: 0;
    background: #d9edf3;
    color: #1a1a1a;
    font: 600 13px Ubuntu;
    padding: 0 6px;
}

body.simplified-menu .startMenuHolder.shrinkable {
    background: linear-gradient(170deg, #aab0b7, #90969d);
    padding: 12px;
    box-sizing: border-box;
}
body.simplified-menu .shrinkable .titleSpan {
    display: block;
    font: 700 14px Ubuntu;
    padding: 0;
    text-align: center;
    margin-bottom: 8px;
}
body.simplified-menu #patchNotes {
    flex: 1;
    min-height: 170px;
    overflow-y: auto;
    padding: 0;
    background: transparent;
    font: 400 13px/1.25 Ubuntu;
    color: #0f0f0f;
}
body.simplified-menu #simplifiedChangelogButton {
    margin-top: 12px;
    position: relative;
    background: #ff8d26;
    color: #141414;
    border-radius: 16px;
    text-align: center;
    padding: 10px 8px;
    font: 700 13px Ubuntu;
    cursor: pointer;
}

body.simplified-menu #simplifiedNews {
    grid-column: 3;
    width: 132px;
    height: 158px;
    justify-self: center;
    align-self: center;
    background: linear-gradient(160deg, #0f1012, #23262c);
    color: #f8f8f8;
    border-radius: 22px;
    font: 700 15px/1.25 Ubuntu;
    padding: 14px 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

body.simplified-menu.simple-hide-news #simplifiedNews {
    display: none;
}
body.simplified-menu.simple-hide-changelog .startMenuHolder.shrinkable {
    display: none;
}
body.simplified-menu.simple-hide-subtype #subtypeSelector {
    display: none;
}
body.simplified-menu.simple-bg-off {
    background-image: none !important;
}

body.simplified-menu .simpleOptionsBtn {
    margin-top: 8px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.65);
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 10px;
    font: 700 13px Ubuntu;
    cursor: pointer;
}
body.mobile.menu-large-hitboxes.simplified-menu .simpleOptionsBtn {
    height: 44px;
    font-size: 16px;
}
body.simplified-menu .simpleDisableBtn {
    margin-top: 6px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c343d;
    border-radius: 8px;
    color: #f5f7fa;
    font: 600 12px Ubuntu;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.16);
    letter-spacing: 0.02em;
}
body.mobile.menu-large-hitboxes.simplified-menu .simpleDisableBtn {
    height: 40px;
    font-size: 14px;
}

/* Arras-like simplified menu theme */
body.simplified-menu {
    background-image: none !important;
    background-color: #c3ccd2;
}
body.simplified-menu::before {
    display: none;
}
body.simplified-menu #startMenuWrapper {
    align-items: flex-start;
    padding-top: 20px;
}
body.simplified-menu #startMenu {
    width: min(1120px, 96vw);
    max-height: calc(100vh - 34px);
    background: transparent;
    padding: 0;
    border-radius: 0;
    backdrop-filter: none;
    grid-template-columns: minmax(320px, 1fr) minmax(350px, 1.05fr) minmax(330px, 1fr);
    gap: 12px;
}
body.simplified-menu .startMenuHolder {
    background: #d3dbe0;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 8px;
    box-shadow: none;
    min-height: 340px;
    padding: 10px;
}
body.simplified-menu .startMenuHolder.linkHolder {
    min-height: 340px;
}
body.simplified-menu .startMenuHolder.shrinkable {
    background: #d3dbe0;
}
body.simplified-menu .linkHolder .optionsHeader {
    font: 700 27px/1 Ubuntu;
    margin: 6px 0 8px;
    color: #101417;
    text-align: left;
}
body.simplified-menu .subtypeSelector {
    gap: 8px;
    padding-top: 2px;
}
body.simplified-menu .subtypeSelector button {
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.16);
    background: #d9e0e5;
    font: 700 18px/1 Ubuntu;
}
body.simplified-menu .subtypeSelector button.active {
    background: #8fc64e;
    color: #fff;
}
body.simplified-menu #serverSelector td {
    height: 30px;
    border-radius: 4px;
    margin-bottom: 4px;
    padding: 4px 8px;
    font: 700 15px/1 Ubuntu;
}
body.simplified-menu #serverSelector td .simple-line {
    display: inline;
}
body.simplified-menu #serverSelector td .simple-top {
    justify-content: space-between;
    align-items: center;
}
body.simplified-menu #serverSelector tr.selected td::after {
    height: 3px;
    opacity: 0.5;
}
body.simplified-menu #startMenuSlidingContent {
    height: auto;
}
body.simplified-menu #gameName {
    margin: 4px 0 6px;
    font-size: 56px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #0c1114;
}
body.simplified-menu #serverName h4 {
    margin: 0 0 8px;
    font-size: 28px;
    color: #2f3a42;
}
body.simplified-menu #playerNameInput,
body.simplified-menu #playerKeyInput {
    height: 44px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 31px;
    background: #f4f7f9;
    color: #2e3236;
}
body.simplified-menu #playerKeyInput {
    font-size: 24px;
}
body.simplified-menu #startButton {
    margin-top: 10px;
    height: 58px;
    border-radius: 6px;
    border: 0;
    background: #9dcf5f;
    box-shadow: inset 0 -2px #7cb041;
    font: 700 35px/1 Ubuntu;
    text-shadow: none;
}
body.simplified-menu #reconnectButton {
    height: 52px;
    font-size: 29px;
}
body.simplified-menu .simpleBoardTabs {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font: 700 16px/1 Ubuntu;
}
body.simplified-menu .simpleBoardTabs span {
    color: #283038;
    opacity: 0.88;
}
body.simplified-menu .simpleBoardTabs span.active {
    background: #8fc64e;
    color: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    opacity: 1;
}
body.simplified-menu .shrinkable .titleSpan {
    text-align: left;
    font: 700 30px/1.1 Ubuntu;
    margin-bottom: 8px;
}
body.simplified-menu #patchNotes {
    min-height: 242px;
    padding: 0 2px 4px;
    font: 600 16px/1.36 Ubuntu;
    color: #14191d;
}
body.simplified-menu #simplifiedChangelogButton {
    margin-top: 10px;
    border-radius: 6px;
    padding: 12px 10px;
    background: #13a3d4;
    color: #fff;
    font: 700 33px/1 Ubuntu;
}
body.simplified-menu #simplifiedNews {
    display: none;
}

.simpleOptionsOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.simpleOptionsOverlay.hidden {
    display: none;
}
.deathAdOverlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    display: flex;
    justify-content: center;
    z-index: 45;
    pointer-events: none;
}
.deathAdOverlay.hidden {
    display: none;
}
.deathAdCard {
    width: min(92vw, 520px);
    min-height: 110px;
    background: rgba(16, 16, 18, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    padding: 8px 10px 10px;
    box-sizing: border-box;
}
.deathAdLabel {
    color: rgba(255, 255, 255, 0.7);
    font: 600 11px Ubuntu;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.simpleOptionsCard {
    width: min(420px, 92vw);
    background: rgba(245,245,245,0.96);
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 16px;
    padding: 14px;
    box-sizing: border-box;
}
.simpleOptionsTitle {
    font: 800 16px Ubuntu;
    color: #111;
    text-align: center;
    margin-bottom: 10px;
}
.simpleOptionsBody .container {
    margin: 6px 0;
}
.simpleOptionsDivider {
    height: 1px;
    background: rgba(0,0,0,0.18);
    margin: 8px 0;
}
.simpleOptionsClose {
    margin-top: 10px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1da1d8;
    color: #0d0d0d;
    border-radius: 12px;
    font: 800 14px Ubuntu;
    cursor: pointer;
}

body.simplified-menu #mainWrapper {
    position: relative;
    z-index: 2;
}
body.mobile #startMenu {
    width: min(94vw, 900px);
}
#startMenuHeader {
    text-align: left;
    width: 100%;
    height: 100%;
}

.startMenuHolder {
    width: 350px;
    height: 380px;
    padding: 10px;
    overflow: hidden;
    display: inline-block;
    vertical-align: text-top;
}
body.mobile .linkHolder {
    display: block;
    width: 100%;
    height: auto;
    padding: 8px 6px;
}
body.mobile .linkHolder center {
    display: none;
}

.pageZoomDisclaimer {
    font-size: 11px;
    line-height: 1.35;
    color: #555;
    margin: 10px 4px 0;
    max-width: 42em;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.pageZoomDisclaimer kbd {
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 3px;
    border: 1px solid #aaa;
    background: #f0f0f0;
    font-family: inherit;
}

.menuButtons {
    margin-top: 12px;
    text-align: center;
}
.menuButtons .link {
    width: 160px;
    font-size: 12px;
}
.sliderHolder {
    width: 350px;
    height: 325px;
    overflow: hidden;
}

tfoot {
    text-align: center;
    opacity: 0.5;
    margin: 10px;
}

table {
    width: 100%;
}

.slider {
    position: relative;
    top: 0px;
    opacity: 1;
    width: 100%;
    transition: top 500ms, opacity 500ms;
}
.slided .slider {
    top: -305px;
}
#startMenuSlidingContent {
    height: 305px;
}
body.mobile .desktopControlTab {
    display: none;
}
.mobileOptions {
    display: none;
}
body.mobile .mobileOptions {
    display: block;
}
body.console .mobileOptions {
    display: block;
}
.mobileOptionsHeader {
    display: none;
}
body.mobile .mobileOptionsHeader {
    display: block;
    margin: 10px 0 4px;
    font: bold 13px/1 Ubuntu;
    color: #000000;
    text-align: center;
}
body.console .mobileOptionsHeader {
    display: block;
    margin: 10px 0 4px;
    font: bold 13px/1 Ubuntu;
    color: #000000;
    text-align: center;
}
#startMenuSlidingTrigger {
    cursor: pointer;
    height: 25px;
}
body.mobile #startMenuSlidingTrigger {
    display: none;
}

#startMenuSlidingTrigger:hover {
    text-shadow: 0 1px 2px oklch(0% 0 0 / 25%);
}

update {
    color: #D83848;
    font-weight: bold;
}

.titleSpan {
    padding-left: 10px;
    font-size: x-large;
    font-weight: bold;
    text-align: center;
}
.horizontalSelector {
    padding: 4px 0;
    margin-bottom: 4px;
    font: bold 12px Ubuntu;
    text-align: center;
    overflow: auto hidden;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.subtypeSelector {
    display: flex;
    gap: 6px;
    padding: 6px 0 8px;
}
.subtypeSelector button {
    flex: 1;
    height: 30px;
    border: 1px solid rgba(0,0,0,0.25);
    background: rgba(255,255,255,0.55);
    color: #1c1c1c;
    font: 700 12px Ubuntu;
    border-radius: 6px;
    cursor: pointer;
}
.subtypeSelector button.active {
    background: #1da1d8;
    color: #0d0d0d;
    border-color: rgba(0,0,0,0.35);
}

body.mobile.menu-large-hitboxes .subtypeSelector button {
    height: 42px;
    font-size: 16px;
}
.horizontalSelector span {
    padding: 4px 10px;
    color: #343434;
    cursor: pointer;
}
.horizontalSelector span:hover {
    color: #5f5f5f;
}
.horizontalSelector span.active {
    background: #0074DA;
    color: #ffffff;
    border-radius: 5px;
    cursor: default;
}
.shrinkable {
    padding-left: 0px;
    width: 360px;
}

#patchNotes {
    max-width: 330px;
    height: calc(100% - 50px);
    padding: 5px 20px 10px;
    overflow: hidden auto;
    scrollbar-width: thin;
    scrollbar-color: oklch(0% 0 0 / 30%) oklch(0% 0 0 / 15%);
}

#patchNotes div {
    > .title {
        margin: 0;
        font-size: 1.5em;
        font-weight: bold;
    }

    > date {
        color: oklch(0% 0 0 / 45%);
        font-style: italic;
    }

    > ul li {
        margin-left: 1em;
        margin-bottom: .5em;
    }

    position: relative;

    &::before {
        content: '';
        position: absolute;
        bottom: 0;
        width: 100%;
        height: .1em;
        background-color: gray;
    }
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font: 13px/1 Ubuntu;
    padding: 2px 28px 2px 8px;
    height: 21px;
    margin-left: 3px;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAICAYAAAD0g6+qAAAAwklEQVQoU42QMQrCQBBFZxeGgJ7BI1jYa2GzTTY3sRUECy1yA0svEQhhEHIHLdRrqF2a5EuCkbgmmin/zLz5f5QxZsTMK2ZeR1F0p5ay1i7zPD+LiLT1S01Za7dEtCGiY5Zl8zRNH81h3/d3SqkFgFOSJJNOUBAEAwAHIpq6sAbkprWexXF86QSVjTaY53nhy8lfSBWtvuDAKhlAL8gHyHUGAFrr8a84zZhvR7VojBkyc1gUxV5Erl0/cfUvUN9Fd+4JA1JkCdbmVf8AAAAASUVORK5CYII=) 100% no-repeat #eee;
    border-radius: 4px;
    border: 1px solid #ccc;
}
select:hover {
    background-color: #ccc;
}
select:active {
    background-color: #eee;
}
.shadowScroll {
    overflow-y: scroll;
    background:
        /* Shadow covers */
        linear-gradient(#dde6eb 30%, rgba(255, 255, 255, 0)),
        linear-gradient(rgba(255, 255, 255, 0), #dde6eb 70%) 0 100%,
        /* Shadows */
        radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)),
        radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0)) 0 100%;
    background-repeat: no-repeat;
    background-color: #dde6eb;
    background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
    background-attachment: local, local, scroll, scroll;
}

#startButton {
    font-family: Ubuntu;
    position: relative;
    margin: auto;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    font-size: larger;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #A9D86D;
    border: 0;
    border-bottom: 2px solid #8ABC3F;
    cursor: pointer;
    -webkit-box-shadow: inset 0 -2px #8ABC3F;
    box-shadow: inset 0 -2px #8ABC3F;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

#reconnectButton {
    font-family: Ubuntu;
    position: relative;
    margin: 8px auto 0;
    width: 100%;
    height: 36px;
    box-sizing: border-box;
    font-size: medium;
    color: white;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    background: #6f7f8a;
    border: 0;
    border-bottom: 2px solid #5b6670;
    cursor: pointer;
    -webkit-box-shadow: inset 0 -2px #5b6670;
    box-shadow: inset 0 -2px #5b6670;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    display: none;
}

#reconnectButton:active,
#reconnectButton:hover {
    top: 1px;
    background: #5b6670;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

#startButton:active,
#startButton:hover {
    top: 1px;
    background: #8ABC3F;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}
#bottomHolder {
    width: 370px;
    display: grid;
    grid-template-columns: auto auto auto;
}

.greyText {
    opacity: 0.5;
}
.container {
    position: relative;
    padding-left: 20px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.container input {
    position: absolute;
    visibility: hidden;
    width: 0;
    height: 0;
    cursor: pointer;
}
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 14px;
    width: 14px;
    border-radius: 4px;
    background-color: #eee;
    border: 1px solid #ccc;
}
.radio {
    position: absolute;
    top: 0;
    left: 0;
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background-color: #eee;
    border: 1px solid #ccc;
}

.container:hover input ~ .checkmark, .container:hover input ~ .radio {
    background-color: #ccc;
}
.container input:disabled ~ .checkmark, .container input:disabled ~ .radio {
    background-color: #ddd;
}
.container input:checked ~ .checkmark, .container input:checked ~ .radio {
    background-color: #0074DA;
    border: 1px solid #0074DA;
}
.container:hover input:checked ~ .checkmark, .container:hover input:checked ~ .radio {
    background-color: #004894;
    border: 1px solid #004894;
}
.container input:disabled:checked ~ .checkmark, .container input:disabled:checked ~ .radio {
    background-color: #002C5B;
    border: 1px solid #002C5B;
}
.container .checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.container .radio:after {
    content: '';
    display: none;
    margin: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
}
.container input:checked ~ .checkmark:after, .container input:checked ~ .radio:after {
    display: block;
}
a.link {
    border-radius: 5px;
    box-sizing: border-box;
    color: white;
    cursor: pointer;
    display: inline-block;
    font-size: smaller;
    margin: 2px;
    padding: 5px;
    position: relative;
    width: 120px;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}

.discord {
    background: #7289da;
    border-bottom: 2px solid #6175ba;
    box-shadow: inset 0 -2px #6175ba;
    -webkit-box-shadow: inset 0 -2px #6175ba;
}
.discord:active,
.discord:hover {
    top: 1px;
    background: #6175ba;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.revolt {
    background: #fd6671;
    border-bottom: 2px solid #ed4245;
    box-shadow: inset 0 -2px #ed4245;
    -webkit-box-shadow: inset 0 -2px #ed4245;
}
.revolt:active,
.revolt:hover {
    top: 1px;
    background: #ed4245;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.reddit {
    background: #f75401;
    border-bottom: 2px solid #d24a01;
    box-shadow: inset 0 -2px #d24a01;
    -webkit-box-shadow: inset 0 -2px #d24a01;
}
.reddit:active,
.reddit:hover {
    top: 1px;
    background: #d24a01;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.original {
    background: #77bf79;
    border-bottom: 2px solid #679c68;
    box-shadow: inset 0 -2px #679c68;
    -webkit-box-shadow: inset 0 -2px #679c68;
}
.original:active,
.original:hover {
    top: 1px;
    background: #679c68;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.developer {
    background: #454b7f;
    border-bottom: 2px solid #313454;
    box-shadow: inset 0 -2px #313454;
    -webkit-box-shadow: inset 0 -2px #313454;
}
.developer:active,
.developer:hover {
    top: 1px;
    background: #313454;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.youtube {
    background: #f71701;
    border-bottom: 2px solid #d21401;
    box-shadow: inset 0 -2px #d21401;
    -webkit-box-shadow: inset 0 -2px #d21401;
}
.youtube:active,
.youtube:hover {
    top: 1px;
    background: #d21401;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.codeberg {
    background: #2C90DD;
    border-bottom: 2px solid #247EC3;
    -webkit-box-shadow: inset 0 -2px #247EC3;
    box-shadow: inset 0 -2px #247EC3;
}
.codeberg:active,
.codeberg:hover {
    top: 1px;
    background: #247EC3;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.github {
    background: #666666;
    border-bottom: 2px solid #333333;
    -webkit-box-shadow: inset 0 -2px #333333;
    box-shadow: inset 0 -2px #333333;
}
.github:active,
.github:hover {
    top: 1px;
    background: #333333;
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}
.moreLinks {
    text-align: center;
}
#startMenuWrapper {
    transition: top 1s;
    top: 0px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

body.mobile #startMenuWrapper {
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

body.mobile.menu-large-hitboxes #startMenu .link,
body.mobile.menu-large-hitboxes #startMenu button,
body.mobile.menu-large-hitboxes #startMenu input,
body.mobile.menu-large-hitboxes #startMenu select,
body.mobile.menu-large-hitboxes #startMenu .horizontalSelector span,
body.mobile.menu-large-hitboxes #startMenu .serverSelector td,
body.mobile.menu-large-hitboxes #startMenu .container {
    min-height: 48px;
    font-size: 18px;
}
body.mobile.menu-large-hitboxes #startMenu .serverSelector td {
    padding-top: 12px;
    padding-bottom: 12px;
}
body.mobile.menu-large-hitboxes #startMenu .container {
    padding-top: 8px;
    padding-bottom: 8px;
}

@media (max-width: 980px), (max-height: 780px) {
    body.simplified-menu #startMenu {
        width: min(96vw, 920px);
        grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) 142px;
        gap: 12px;
        padding: 12px;
    }
    body.simplified-menu .startMenuHolder {
        min-height: 250px;
        padding: 10px;
    }
    body.simplified-menu #simplifiedNews {
        width: 112px;
        height: 134px;
        border-radius: 20px;
        font-size: 13px;
    }
}

@media (max-width: 760px) {
    body.simplified-menu #startMenu {
        grid-template-columns: 1fr;
        gap: 10px;
        max-height: calc(100vh - 16px);
        overflow-y: auto;
    }
    body.simplified-menu .startMenuHolder.linkHolder,
    body.simplified-menu .startMenuHolder.shrinkable,
    body.simplified-menu #simplifiedNews {
        grid-column: auto;
        width: 100%;
        max-width: none;
    }
    body.simplified-menu #simplifiedNews {
        height: 120px;
        justify-self: stretch;
    }
}

#tutorialButton {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 50;
    background: #3b3b3b;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font: 700 13px Ubuntu;
    cursor: pointer;
}
#tutorialButton:hover {
    background: #111;
}

.nopadding {
    padding: 0;
    margin: 0;
}

#startMenu ul {
    margin: 10px;
    padding: 10px;
    margin-top: 0;
}

#startMenu .input-error {
    color: red;
    opacity: 0;
    font-size: 12px;
}

#simplifiedServerWrap {
    display: none;
}

#gameAreaWrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}

#gameCanvas {
    position: absolute;
}

#chatInput {
    position: absolute;
    z-index: 1;
    width: min(90vw, 340px);
    height: 30px;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 0px 5px 2px darkgray;
    border: 2px solid black;
    border-radius: 10px;
    color: black;
    background-color: #ffffff88;
}

#shiftCommandsOverlay {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 40;
    width: 330px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(18, 22, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #e9edf3;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.shiftCommandsTitle {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

input [type="image"]:focus {
    border: none;
    outline: 1px solid transparent;
    border-style: none;
}
td b {
    display: inline-block;
    cursor: pointer;
    text-align: right;
    vertical-align: bottom;
}
td b:hover {
    color: #777;
}
td b {
    display: inline-block;
    width: 12px;
    height: 17px;
    cursor: pointer;
    text-align: right;
    vertical-align: bottom;
}

*:focus {
    outline: 1px solid transparent;
    border-style: none;
}
i {
    transition: transform 500ms;
}
i.arrow {
    border: solid #484848;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}
i.reset {
    display: inline-block;
    width: 8px;
    height: 8px;
    border: #000000 2px solid;
    border-right-color: transparent;
    border-radius: 50%;
    position: relative;
    top: 3px;
}
i.reset::after {
    content: '';
    display: inline-block;
    border: 3px solid;
    border-color: transparent #000000 #000000 transparent;
    position: relative;
    left: 3px;
    bottom: 8px;
}
i.cross {
    display: inline-block;
    width: 2px;
    height: 2px;
    margin: 0 5px -3px;
    padding: 6px;
}
i.cross.x {
    transform: rotate(135deg);
}
i.cross::before, i.cross::after {
    content: '';
    display: inline-block;
    background-color: #000000;
    border-radius: 2px;
    float: left;
}
i.cross::before {
    width: 12px;
    height: 2px;
    margin-left: -5px;
}
i.cross::after {
    width: 2px;
    height: 12px;
    margin-top: -7px;
}
i.flag {
    display: inline-block;
    width: 2px;
    height: 12px;
    background: #000000;
    margin: 0 15px 0 5px;
}
i.flag::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 7px;
    background-color: #000000;
    margin: 0 0 5px 3px;
    transition: margin-bottom 500ms;
}
i.flag.down::before {
    margin-bottom: 2px;
}
.resetControls {
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 1000ms, margin 1000ms;
    margin: 0 -6px;
}
.resetControls.spin {
    transition: transform 500ms, opacity 1000ms 150ms, margin 1000ms 150ms;
    transform: rotate(360deg);
}
.resetControls.active {
    opacity: 1;
    margin: 0 5px;
    cursor: pointer;
}
body.mobile .controlTable {
    display: none;
}
.moreControls {
    cursor: pointer;
}
.controlTable {
    border-collapse: collapse;
    margin: 0 2px;
}
.controlTable tr {
    border: 0;
    transition: opacity 500ms;
}
.controlTable tr.hidden {
    opacity: 0;
    pointer-events: none;
}
.controlTable td {
    transition: padding 500ms;
}
.controlTable div {
    position: relative;
    top: 0px;
    height: 18px;
    transition: height 500ms, top 500ms;
}
.controlTable tr.hidden td {
    padding: 0 1px;
}
.controlTable tr.hidden div {
    top: -20px;
    height: 0;
}
.controlTable td b {
    display: inline-block;
    width: 12px;
    height: 16px;
    cursor: pointer;
    text-align: right;
    vertical-align: bottom;
}
.controlTable td b:hover {
    color: #777;
}
.controlTable td.editing b {
    background: #fff;
    color: #333;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    padding: 1px 4px;
    margin: -2px -7px -2px -3px;
    text-align: center;
    cursor: text;
    -webkit-user-select: auto;
    -moz-user-select: auto;
    -ms-user-select: auto;
    user-select: auto;
}
.controlTable td.editing span {
    visibility: hidden;
}

@media (max-width: 1280px) {
    #startMenu {
        width: min(96vw, 1120px);
        margin-top: 44px;
        margin-bottom: 44px;
    }
}

@media (max-width: 980px), (max-height: 780px) {
    #startMenuWrapper {
        padding: 10px 0;
    }
    #startMenu {
        width: calc(100vw - 20px);
        margin-top: 12px;
        margin-bottom: 12px;
        padding: 8px;
    }
    .startMenuHolder {
        width: 100%;
        height: auto;
        display: block;
        padding: 8px 6px;
    }
    .sliderHolder {
        width: 100%;
        height: auto;
        min-height: 325px;
    }
    .shrinkable {
        width: 100%;
        padding-left: 6px;
        margin-top: 6px;
    }
    #patchNotes {
        max-width: none;
        height: 220px;
        padding: 5px 10px 10px;
    }
    .menuButtons .link {
        width: min(80vw, 280px);
    }
    #shiftCommandsOverlay {
        top: 10px;
        left: 10px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        overflow-y: auto;
        box-sizing: border-box;
    }
}

@media (max-width: 560px) {
    #gameName {
        font-size: x-large;
    }
    #playerNameInput {
        font-size: medium;
    }
    .horizontalSelector span {
        padding: 4px 7px;
        font-size: 11px;
    }
}

body.simplified-menu.simple-hide-changelog .startMenuHolder.shrinkable { display: flex; }

@media (max-height: 780px) and (min-width: 1100px) {
    body.simplified-menu #startMenuWrapper {
        padding: 14px;
    }
    body.simplified-menu #startMenu {
        width: min(1120px, 96vw);
        padding: 0;
        display: grid;
        grid-template-columns: minmax(320px, 1fr) minmax(350px, 1.05fr) minmax(330px, 1fr);
        gap: 12px;
    }
    body.simplified-menu .startMenuHolder {
        width: auto;
        height: auto;
        display: flex;
        padding: 10px;
    }
    body.simplified-menu .startMenuHolder.shrinkable {
        display: flex;
    }
}

.bugReportHint {
    font-size: 12px;
    opacity: 0.88;
    margin: 6px 0 8px;
    line-height: 1.35;
}
.bugReportText {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    margin-bottom: 6px;
    font-family: Ubuntu, sans-serif;
    font-size: 13px;
    resize: vertical;
}
.bugReportContact {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    margin-bottom: 8px;
    font-family: Ubuntu, sans-serif;
    font-size: 13px;
}
.bugReportRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.bugReportSubmit {
    padding: 6px 12px;
    cursor: pointer;
    font-family: Ubuntu, sans-serif;
}
.bugReportStatus {
    font-size: 12px;
    opacity: 0.9;
}

.testingSandboxFooter {
    text-align: center;
    margin: 10px 0 6px;
}
.testingSandboxBtn {
    font-family: Ubuntu, sans-serif;
    font-size: 13px;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #7c3aed;
    background: #f5f3ff;
    color: #4c1d95;
}
.testingCheatPanel {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 50;
    max-width: min(360px, 92vw);
    max-height: 78vh;
    overflow: auto;
    padding: 10px 12px;
    background: rgba(20, 20, 28, 0.94);
    color: #f4f4f5;
    border-radius: 8px;
    border: 1px solid #6b21a8;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    font-family: Ubuntu, sans-serif;
    font-size: 12px;
}
.testingCheatPanel kbd {
    background: #3f3f46;
    padding: 1px 5px;
    border-radius: 3px;
}
.testingCheatPanelHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 6px;
}
.testingCheatPanelHeader button {
    background: transparent;
    border: none;
    color: #fafafa;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
}
.testingCheatHint {
    margin: 0 0 8px;
    line-height: 1.35;
    opacity: 0.9;
}
.testingCheatActions,
.testingCheatPresets,
.testingCheatSpawnRow {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.testingCheatPanel button[data-spawn],
.testingCheatActions button,
.testingCheatSpawnRow button {
    font-family: Ubuntu, sans-serif;
    font-size: 11px;
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 4px;
    border: 1px solid #52525b;
    background: #27272a;
    color: #fafafa;
}
.testingCheatSpawnRow input {
    flex: 1;
    min-width: 120px;
    font-family: Ubuntu, sans-serif;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #52525b;
}
