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

::-webkit-scrollbar-track {
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.15);
}

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.3);
}

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

*:focus {
  outline: 1px solid transparent;
}

.greyText {
  opacity: 0.5;
}

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-color: #484848;
}

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

canvas {
  image-rendering: optimizeSpeed;
  image-rendering: pixelated;
}

.header {
  display: flex;
  justify-content: center;
  padding: 4px 0 8px;
}

.icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.icon>img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

h1 {
  padding: 0 12px;
  margin: 0;
  text-align: center;
  font: bold 40px/1.5 Ubuntu;
}

body.mobile .icon {
  width: 48px;
  height: 48px;
}

body.mobile h1 {
  font-size: 32px;
}

div.optionsHeader {
  display: block;
  margin: 8px 0 3px;
  font: bold 13px/1 Ubuntu;
  color: #000;
  text-align: center;
}

.moreLinks {
  text-align: center;
}

.moreLinks a {
  white-space: nowrap;
  margin: 0 5px;
}

h3 {
  font-size: 14px;
  line-height: 16px;
  color: #484848;
  text-align: center;
  padding: 0;
  margin: 9px 0 0;
}

#startMenuSlidingTrigger:hover>h3 {
  color: #323232;
}

#startMenuSlidingTrigger:hover>h3>i.arrow {
  border-color: #323232;
}

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

.horizontalSelector span {
  padding: 4px 10px;
  color: #343434;
  cursor: pointer;
}

.horizontalSelector span:hover {
  color: #5f5f5f;
}

.horizontalSelector span.active {
  background: #8abc3f;
  color: #ffffff;
  border-radius: 5px;
  cursor: default;
}

.tdCenter {
  width: 350px;
}

.serverSelector {
  height: 120px;
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  line-height: 10px;
  padding: 0 6px;
}

body.mobile .serverSelector {
  height: 68px;
}

.startMenuMainPanel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.startMenuMainPanel .serverSelector {
  height: auto;
  flex: 1 1 0;
  min-height: 0;
}

body.mobile .startMenuMainPanel .serverSelector {
  min-height: 0;
}

.startMenuMainPanel input {
  margin-top: 4px;
  margin-bottom: 4px;
}

#playerNameInput {
  margin-top: auto;
}

.serverSelector tr {
  color: #828282;
  cursor: pointer;
}

.serverSelector tr.featured {
  color: #e8ae00;
  text-shadow: #fff27e 0 0 6px;
}

.serverSelector tr.message {
  color: #a8a8a8;
  cursor: default;
  font-style: italic;
}

.serverSelector tr.selected {
  color: #8abc3f;
  cursor: default;
}

#serverSelector::-webkit-scrollbar {
  width: 6px;
  /* Width of the scrollbar */
  border-radius: 8px;
  /* Radius of the scrollbar */
}

#serverSelector::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  /* Color of the scrollbar thumb */
  border-radius: 8px;
  /* Radius of the scrollbar thumb */
}

#serverSelector::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
  /* Color of the scrollbar thumb on hover */
}

.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, 0.2),
      rgba(0, 0, 0, 0)),
    radial-gradient(farthest-side at 50% 100%,
      rgba(0, 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;
}

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

a:link:hover,
a:visited:hover {
  color: #909090;
}

input {
  text-align: center;
  width: 100%;
  padding: 10px;
  border: solid 2px #cccccc;
  color: #cccccc;
  box-sizing: border-box;
  border-radius: 5px;
  margin-top: 5px;
  margin-bottom: 5px;
  outline: none;
  font-family: Ubuntu;
  font-weight: bold;
  background: #fff;
  transition: border 0.3s, background 0.3s, color 0.3s;
}

input:disabled {
  background: #eee;
}

#playerNameInput {
  padding: 10px;
  font-size: larger;
  color: black;
}

#playerKeyInput {
  padding: 3px;
  color: black;
}

input:focus {
  border: solid 2px #ccc;
}

input.error {
  border: solid 2px #f00;
  background: #fee;
  color: #a00;
}

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

#gameCanvas {
  z-index: 4;
  position: absolute;
}

#gameCanvas-background {
  z-index: 1;
  position: absolute;
}

#gameCanvas-gameplay {
  z-index: 2;
  position: absolute;
}

#gameCanvas-gui {
  z-index: 3;
  position: absolute;
}

#chatBox {
  position: absolute;
  z-index: 1;
  width: 300px;
  height: 30px;
  top: 60%;
  left: calc(50% - 149px);
  border: 3px solid black;
  border-radius: 100px;
  color: black;
  background-color: #ffffff;
  box-sizing: border-box;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  outline: none;
  transition: none;
}
#chatInput {
  position: absolute;
  z-index: 1;
  width: 300px;
  height: 30px;
  top: 60%;
  left: calc(50% - 149px);
  border: 3px solid transparent;
  border-radius: 100px;
  color: black;
  background-color: transparent;
  box-sizing: border-box;
  font: bold 19.7136px / 34.5417px Ubuntu;
  text-align: left;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  outline: none;
  transition: none;
}

#startMenuWrapper {
  transition: top 1s;
  position: relative;
  top: 0px;
  z-index: 5;
  max-width: 1150px;
  margin: 0 auto;
}

body.mobile #startMenuWrapper {
  max-width: 780px;
}

.mainWrapper {
  padding: 75px 20px 0;
}

body.mobile .mainWrapper {
  padding: 10px 10px 0;
}

.startMenu {
  display: flex;
  max-height: 390px;
  padding: 10px;
  border-radius: 5px;
  background-color: #dde6eb;
  overflow: hidden;
}

body.mobile .startMenu {
  max-height: 340px;
}

.startMenuHolder {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 10px 12px;
  overflow: hidden;
}

body.mobile .startMenuHolder {
  height: 300px;
}

.startMenuHolder.mainHolder {
  flex-shrink: 0;
}

.startMenuHolder.changelogHolder {
  width: calc(100% - 780px);
  display: flex;
  flex-direction: column;
}

body.mobile .startMenuHolder.linkHolder {
  display: none;
}

body.mobile .startMenuHolder.changelogHolder {
  width: calc(100% - 400px);
}

.bannerHolder {
  display: block;
  width: 336px;
  height: 280px;
  margin: 0 8px 7px 7px;
  padding: 14px;
  text-align: center;
}

.referral-fallback {
  display: none;
}

.respawn-banner {
  position: absolute;
  max-width: 970px;
  max-height: 280px;
  bottom: 24px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.menuTabs {
  height: 28px;
  margin: 0 8px;
}

.menuTab {
  font: 13px/28px Ubuntu;
  padding: 6px 11px;
  border-radius: 5px 5px 0 0;
  color: #fff !important;
  margin: 0 6px;
}

.menuTab.warning {
  background: #e90;
}

.menuTab.critical {
  background: #ff0000;
}

.menuTab.discord {
  padding: 6px 12px 6px 36px;
  background: #7289da url(/img/discord.png) 8px 4px/23px no-repeat;
}

.menuTab.stat {
  background: #f00 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAKUlEQVQoU2NkQAP/////DxJiZGRkRJZC4YAkcCpEl6C9QrgNhKweSgoBUcBf8wTAguMAAAAASUVORK5CYII=) 11px 9px no-repeat;
  /*
    let canvas = document.body.appendChild(document.createElement('canvas'))
    canvas.width = 10
    canvas.height = 10
    canvas.style.background = '#f00'
    let ctx = canvas.getContext('2d')
    ctx.fillStyle = '#fff'
    ctx.fillRect(0, 2, 2, 8)
    ctx.fillRect(4, 0, 2, 10)
    ctx.fillRect(8, 4, 2, 6)
    copy(canvas.toDataURL())
    */
  padding: 6px 12px 6px 30px;
}

.menuTab.achieve {
  background: #8abc3f;
}

.menuTab>a {
  color: #fff !important;
  text-decoration: none;
}

.menuTab>a:link:hover,
.menuTab>a:visited:hover {
  text-decoration: underline;
}

.sliderHolder {
  width: 350px;
  height: 295px;
  overflow: hidden;
}

body.mobile .sliderHolder {
  height: 245px;
}

table {
  width: 100%;
}

body.mobile .desktopControlTab {
  display: none;
}

.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;
}

.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;
  font-size: 14px;
}

.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;
}

#optColors {
  width: 220px;
}

#optMobile {
  display: none;
}

body.mobile #optColors {
  width: 336px;
  margin-bottom: 4px;
}

body.mobile #optMobile,
body.mobile #optBorders {
  width: 165px;
  margin-bottom: 4px;
  display: inline-block;
}

.mobileOptions {
  display: none;
}

body.mobile .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;
}

.slider {
  position: relative;
  top: 0px;
  opacity: 1;
  width: 100%;
  transition: top 500ms, opacity 500ms;
}

.slided .slider {
  top: -280px;
}

body.mobile .slided .slider {
  top: -230px;
}

.startMenuSlidingContent {
  height: 270px;
}

body.mobile .startMenuSlidingContent {
  height: 220px;
}

#startMenuSlidingTrigger {
  cursor: pointer;
  height: 25px;
}

.titleSpan {
  font-size: x-large;
  font-weight: bold;
  text-align: left;
}

#patchNotes {
  max-width: 330px;
  height: calc(100% - 40px);
  padding: 5px 10px 10px;
  /* scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.3) rgba(0, 0, 0, 0.15);*/
}

#patchNotes::-webkit-scrollbar {
  width: 6px;
  /* Width of the scrollbar */
  border-radius: 8px;
  /* Radius of the scrollbar */
}

#patchNotes::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  /* Color of the scrollbar thumb */
  border-radius: 8px;
  /* Radius of the scrollbar thumb */
}

#patchNotes::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0, 0, 0, 0.5);
  /* Color of the scrollbar thumb on hover */
}

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

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

.linkButtonHolder {
  margin-top: 9px;
}

.startButtonHolder {
  margin-top: 10px;
}

#startButton {
  margin: 0;
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  color: white;
  text-align: center;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
  background: #A9D86D;
  border: 0;
  border-bottom: 2px solid #8abc3f;
  cursor: pointer;
  box-shadow: inset 0 -2px #8abc3f;
  border-radius: 5px;
  font: 16px Ubuntu;
}

#startButton:hover {
  margin-top: 2px;
  height: 38px;
  border-bottom: 0px solid #8abc3f;
}

#startButton:active {
  margin-top: 2px;
  height: 38px;
  background: #8abc3f;
  border-bottom: 0px;
  outline: none;
  box-shadow: none;
}

#discordButton {
  margin: 0;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  color: white;
  text-align: center;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
  background: #7289da;
  border: 0;
  border-bottom: 2px solid #5b6dae;
  cursor: pointer;
  box-shadow: inset 0 -2px #5b6dae;
  border-radius: 5px;
  font: 16px Ubuntu;
}

#discordButton:hover {
  margin-top: 2px;
  height: 38px;
  border-bottom: 0px solid #5b6dae;
}

#discordButton:active {
  margin-top: 2px;
  height: 38px;
  background: #5b6dae;
  border-bottom: 0px;
  outline: none;
  box-shadow: none;
}

#redditButton {
  margin: 0;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  color: white;
  text-align: center;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
  background: #f74501;
  border: 0;
  border-bottom: 2px solid #c53700;
  cursor: pointer;
  box-shadow: inset 0 -2px #c53700;
  border-radius: 5px;
  font: 16px Ubuntu;
}

#redditButton:hover {
  margin-top: 2px;
  height: 38px;
  border-bottom: 0px solid #c53700;
}

#redditButton:active {
  margin-top: 2px;
  height: 38px;
  background: #c53700;
  border-bottom: 0px;
  outline: none;
  box-shadow: none;
}

#youtubeButton {
  margin: 0;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  color: white;
  text-align: center;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
  background: #f71701;
  border: 0;
  border-bottom: 2px solid #c51200;
  cursor: pointer;
  box-shadow: inset 0 -2px #c51200;
  border-radius: 5px;
  font: 16px Ubuntu;
}

#youtubeButton:hover {
  margin-top: 2px;
  height: 38px;
  border-bottom: 0px solid #c51200;
}

#youtubeButton:active {
  margin-top: 2px;
  height: 38px;
  background: #c51200;
  border-bottom: 0px;
  outline: none;
  box-shadow: none;
}

#githubButton {
  margin: 0;
  width: 200px;
  height: 40px;
  box-sizing: border-box;
  color: white;
  text-align: center;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.2);
  background: #6f42c1;
  border: 0;
  border-bottom: 2px solid #5926a6;
  cursor: pointer;
  box-shadow: inset 0 -2px #5926a6;
  border-radius: 5px;
  font: 16px Ubuntu;
}

#githubButton:hover {
  margin-top: 2px;
  height: 38px;
  border-bottom: 0px solid #5926a6;
}

#githubButton:active {
  margin-top: 2px;
  height: 38px;
  background: #5926a6;
  border-bottom: 0px;
  outline: none;
  box-shadow: none;
}

.bottomHolder>a {
  display: inline-block;
  position: relative;
  margin: 2px;
  border: 0px;
  padding: 6px 0;
  width: 110px;
  height: 16px;
  font-size: smaller;
  color: white !important;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  cursor: pointer;
  background: #b58efd;
  border-radius: 5px;
  box-shadow: inset 0 -4px rgba(0, 0, 0, 0.15);
}

.bottomHolder>a:hover {
  top: 1px;
  height: 15px;
  box-shadow: inset 0 -3px rgba(0, 0, 0, 0.15);
}

.bottomHolder>a:active {
  top: 4px;
  height: 12px;
  box-shadow: inset 0 -25px rgba(0, 0, 0, 0.15);
}

/* Customize the label (the container) */
.count {
  display: inline-block;
  width: 20px;
  font: bold 12px Ubuntu;
}

.count span {
  font-size: 10px;
}

.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: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: #8abc3f;
  border: 1px solid #8abc3f;
}

.container:hover input:checked~.checkmark,
.container:hover input:checked~.radio {
  background-color: #7FA843;
  border: 1px solid #7FA843;
}

.container input:disabled:checked~.checkmark,
.container input:disabled:checked~.radio {
  background-color: #7FA843;
  border: 1px solid #7FA843;
}

.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;
}

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;
  /*
    let canvas = document.body.appendChild(document.createElement('canvas'))
    canvas.width = Math.ceil(8 * Math.sqrt(2)) + 6
    canvas.height = Math.ceil(5 * Math.sqrt(2))
    let ctx = canvas.getContext('2d')
    ctx.strokeStyle = '#4c4c4c'
    ctx.translate(4 * Math.sqrt(2), -3 * Math.sqrt(2))
    ctx.rotate(Math.PI * 0.25)
    ctx.lineCap = 'round'
    ctx.lineJoin = 'round'
    ctx.lineWidth = 2
    ctx.beginPath()
    ctx.moveTo(1, 7)
    ctx.lineTo(7, 7)
    ctx.lineTo(7, 1)
    ctx.stroke()
    copy(canvas.toDataURL())
    */
  border-radius: 4px;
  border: 1px solid #ccc;
}

select:hover {
  background-color: #ccc;
}

select:active {
  background-color: #eee;
}

.tooltip {
  position: relative;
  bottom: 1px;
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  text-align: center;
  background: rgb(0, 0, 0, 0.6);
  font: bold 10px/15px Ubuntu;
  color: #fff;
  margin: 0 2px;
}

.tooltip::before {
  content: "?";
}

.tooltip span {
  position: absolute;
  width: 160px;
  background-color: #444;
  color: #fff;
  font: bold 11px Ubuntu;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  z-index: 1;
  margin-left: -80px;
  left: 50%;
  transition: opacity 200ms, bottom 200ms;
  pointer-events: none;
  opacity: 0;
  bottom: 200%;
}

.tooltip span::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #444 transparent transparent transparent;
}

.tooltip:hover span {
  pointer-events: unset;
  opacity: 1;
  bottom: 150%;
}

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: #000 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 #000 #000 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: "";
  background-color: #000;
  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: #000;
  margin: 0 15px 0 5px;
}

i.flag::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 7px;
  background-color: #000;
  margin: 0 0 5px 3px;
  transition: margin-bottom 500ms;
}

i.flag.down::before {
  margin-bottom: 2px;
}

/* Account Corner (Top Right) */
#accountCorner {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
  font-family: Ubuntu;
}

.accountCornerBtn {
  background: rgba(180, 180, 180, 0.9);
  color: white;
  padding: 10px 18px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.accountCornerBtn:hover {
  background: rgba(160, 160, 160, 0.95);
}

.accountCornerInfo {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.95);
  padding: 8px 12px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.accountUserInfo {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#accountUsername {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.accountLevel {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #666;
}

.levelProgressBar {
  width: 60px;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
}

.levelProgressFill {
  height: 100%;
  background: linear-gradient(90deg, #4a90d9, #5cb85c);
  width: 0%;
  transition: width 0.3s;
}

.accountMenuBtn {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 12px;
  padding: 5px;
}

.accountMenuBtn:hover {
  color: #333;
}

.accountDropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 5px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  min-width: 150px;
  overflow: hidden;
}

.dropdownStats {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 11px;
  color: #666;
  background: #f5f5f5;
}

.dropdownDivider {
  height: 1px;
  background: #eee;
}

.dropdownBtn {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: Ubuntu;
  font-size: 13px;
  color: #333;
  transition: background 0.2s;
}

.dropdownBtn:hover {
  background: #f0f0f0;
}

.dropdownBtn.logoutBtn {
  color: #d9534f;
}

.dropdownBtn.logoutBtn:hover {
  background: #fee;
}

/* Account Modal */
.accountModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modalBackdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.modalContent {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 30px;
  width: 320px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modalClose {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.modalClose:hover {
  color: #333;
}

.modalTabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.modalTabs span {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  color: #888;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.2s;
}

.modalTabs span.active {
  color: #4a90d9;
  border-bottom: 2px solid #4a90d9;
  margin-bottom: -2px;
}

.modalTabs span:hover:not(.active) {
  color: #555;
}

.modalForm input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  box-sizing: border-box;
  font-family: Ubuntu;
  font-size: 14px;
  color: #000;
  transition: border-color 0.2s;
}

.modalForm input:focus {
  border-color: #4a90d9;
  outline: none;
}

.modalSubmitBtn {
  width: 100%;
  padding: 14px;
  background: #4a90d9;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: Ubuntu;
  font-weight: bold;
  font-size: 15px;
  transition: background 0.2s;
}

.modalSubmitBtn:hover {
  background: #3a7bc8;
}

.modalError {
  color: #d9534f;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  min-height: 18px;
}

/* Friends Modal */
.friendsModalContent {
  width: 350px;
}

.friendsModalContent h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
}

.addFriendSection {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.addFriendSection input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-family: Ubuntu;
  font-size: 13px;
  color: #000;
}

.addFriendSection input:focus {
  border-color: #4a90d9;
  outline: none;
}

.addFriendSection button {
  padding: 10px 16px;
  background: #4a90d9;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: Ubuntu;
  font-weight: bold;
}

.addFriendSection button:hover {
  background: #3a7bc8;
}

.friendRequests {
  margin-bottom: 10px;
}

.friendRequest {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(74, 144, 217, 0.15);
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.friendRequest span {
  color: #333;
}

.friendRequest .actions {
  display: flex;
  gap: 6px;
}

.friendRequest button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  color: white;
}

.friendRequest button.accept {
  background: #5cb85c;
}

.friendRequest button.accept:hover {
  background: #4a9a4a;
}

.friendRequest button.decline {
  background: #d9534f;
}

.friendRequest button.decline:hover {
  background: #c9433f;
}

.friendsList {
  max-height: 200px;
  overflow-y: auto;
}

.friendItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #f5f5f5;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
}

.friendItem .friendName {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
}

.friendItem .onlineStatus {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}

.friendItem .onlineStatus.online {
  background: #5cb85c;
}

.friendItem button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #d9534f;
  color: white;
  cursor: pointer;
  font-size: 12px;
}

.friendItem button:hover {
  background: #c9433f;
}

.noFriends {
  text-align: center;
  color: #999;
  font-size: 13px;
  padding: 20px;
}
