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

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

::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: linear-gradient(135deg, #F04F54 0%, #D23136 100%);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #F177DD 0%, #D359BF 100%);
}

/* Modern checkbox styling */
.modernCheckbox {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  margin: 2px 0;
  background: rgba(26, 32, 44, 0.5);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.modernCheckbox:hover {
  background: rgba(240, 79, 84, 0.1);
  border-color: rgba(240, 79, 84, 0.3);
}

.modernCheckbox input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #F04F54;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.modernCheckbox input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #F04F54 0%, #D23136 100%);
}

.modernCheckbox input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modernCheckbox span {
  color: #e2e8f0;
  font-size: 13px;
  user-select: none;
}

/* Checkbox grid */
.checkboxGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 8px 0;
}

/* Modern select styling */
.modernSelect {
  width: 100%;
  padding: 8px 12px;
  margin: 4px 0;
  border: 2px solid rgba(240, 79, 84, 0.3);
  border-radius: 6px;
  background: rgba(26, 32, 44, 0.8);
  color: #e2e8f0;
  font: 13px Ubuntu;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modernSelect:hover {
  border-color: rgba(240, 79, 84, 0.5);
  background: rgba(26, 32, 44, 0.95);
}

.modernSelect:focus {
  outline: none;
  border-color: #F04F54;
  box-shadow: 0 0 0 3px rgba(240, 79, 84, 0.2);
}

.smallSelect {
  padding: 6px 10px;
  font-size: 12px;
}

/* Theme selector */
.themeSelector {
  margin: 8px 0;
}

/* Option row */
.optionRow {
  display: flex;
  gap: 12px;
  margin: 8px 0;
}

.optionGroup {
  flex: 1;
}

.miniHeader {
  font: bold 11px Ubuntu;
  color: #718096;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Control section styling */
.controlSection {
  margin-bottom: 8px;
}

/* Keybind styling */
.keyBind {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  background: rgba(26, 32, 44, 0.5);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.keyBind:hover {
  background: rgba(240, 79, 84, 0.1);
  border-color: rgba(240, 79, 84, 0.3);
}

.keyBind b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  background: linear-gradient(145deg, #F04F54 0%, #D23136 100%);
  color: white;
  font: bold 13px Ubuntu;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(240, 79, 84, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.keyBind span {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 500;
}

.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: #cdcdcd;
  background: linear-gradient(135deg, #e8e8e8 0%, #cdcdcd 50%, #b8b8b8 100%);
}

/* ========================================
   Simple Start Screen
   ======================================== */

/* ========== START SCREEN ========== */
.simpleStartScreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8edf2 100%);
}

#startScreenCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.startContent {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  padding: 50px 60px;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo Container */
.logoContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.logoIcon {
  width: 80px;
  height: 80px;
  color: #2c3e50;
  animation: rotate 20s linear infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.gameTitle {
  margin: 0;
  font: bold 56px 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
  text-align: center;
  filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.3));
}

.gameSubtitle {
  margin: 0;
  font: 500 16px 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #64748b;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* Input Container */
.inputContainer {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 500px;
  align-items: stretch;
}

.inputWrapper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.inputWrapper:focus-within {
  box-shadow: 0 4px 25px rgba(102, 126, 234, 0.2);
  transform: translateY(-1px);
}

.inputIcon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #94a3b8;
  pointer-events: none;
  flex-shrink: 0;
}

.inputWrapper input {
  width: 100%;
  min-width: 0;
  padding: 16px 16px 16px 48px;
  font: 500 16px 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #1e293b;
  outline: none;
  box-sizing: border-box;
}

.inputWrapper input::placeholder {
  color: #94a3b8;
}

/* Play Button */
.playButton {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 28px;
  font: 700 16px 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  overflow: hidden;
  flex-shrink: 0;
  white-space: nowrap;
}

.playButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.playButton:hover:not(:disabled)::before {
  left: 100%;
}

.playButton:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.playButton:active:not(:disabled) {
  transform: translateY(0);
}

.playButton:disabled {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  cursor: not-allowed;
  box-shadow: none;
}

.btnArrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.playButton:hover:not(:disabled) .btnArrow {
  transform: translateX(3px);
}

/* Footer */
.startFooter {
  display: flex;
  justify-content: center;
}

.playerCount {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  font: 500 14px 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #64748b;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.dot.online {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .startContent {
    padding: 40px 30px;
    gap: 25px;
  }

  .gameTitle {
    font-size: 40px;
  }

  .gameSubtitle {
    font-size: 14px;
  }

  .inputContainer {
    flex-direction: column;
  }

  .playButton {
    width: 100%;
    padding: 16px 28px;
  }
}


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;
  color: #00B0E1;
  text-shadow: 0 0 10px rgba(0, 176, 225, 0.4), 0 2px 4px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #00B0E1 0%, #0092C3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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: #e2e8f0;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.moreLinks {
  text-align: center;
}

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

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

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

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

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

.horizontalSelector span {
  padding: 4px 12px;
  color: #a0aec0;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.horizontalSelector span:hover {
  color: #F04F54;
  background: rgba(240, 79, 84, 0.1);
}

.horizontalSelector span.active {
  background: linear-gradient(135deg, #F04F54 0%, #D23136 100%);
  color: #ffffff;
  border-radius: 5px;
  cursor: default;
  box-shadow: 0 2px 8px rgba(240, 79, 84, 0.3);
}

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

.serverSelector tr {
  color: #a0aec0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.serverSelector tr:hover {
  color: #F04F54;
}

.serverSelector tr.featured {
  color: #F177DD;
  text-shadow: 0 0 8px rgba(241, 119, 221, 0.5);
}

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

.serverSelector tr.selected {
  color: #48bb78;
  cursor: default;
  text-shadow: 0 0 6px rgba(72, 187, 120, 0.4);
}

#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(rgba(26, 32, 44, 0) 30%,
      rgba(26, 32, 44, 0)),
    linear-gradient(rgba(26, 32, 44, 0), rgba(26, 32, 44, 0)) 0 100%,
    /* Shadows */
    radial-gradient(farthest-side at 50% 0,
      rgba(0, 0, 0, 0.3),
      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: rgba(26, 32, 44, 0.6);
  background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
  background-attachment: local, local, scroll, scroll;
  border-radius: 6px;
}

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 rgba(229, 62, 62, 0.3);
  color: #e2e8f0;
  box-sizing: border-box;
  border-radius: 6px;
  margin-top: 5px;
  margin-bottom: 5px;
  outline: none;
  font-family: Ubuntu;
  font-weight: bold;
  background: rgba(26, 32, 44, 0.8);
  transition: all 0.3s ease;
}

input:focus {
  border-color: #F04F54;
  box-shadow: 0 0 0 3px rgba(240, 79, 84, 0.2);
  background: rgba(26, 32, 44, 0.95);
}

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;
  justify-content: center;
  max-height: 390px;
  padding: 10px;
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff 0%, #e8e8e8 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 2px solid #999999;
  overflow: hidden;
  margin: 0 auto;
  max-width: 400px;
}

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

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

body.mobile .startMenuHolder {
  height: 300px;
  width: 100%;
}

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

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

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

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

.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: 380px;
  height: 295px;
  overflow: hidden;
}

body.mobile .sliderHolder {
  height: 245px;
  width: 100%;
}

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;
  width: 380px;
  margin-left: auto;
  margin-right: auto;
}

#startButton {
  /* Old start button styles removed - now using .playButton class */
}

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

/* ========================================
   Game UI Buttons (Bottom Left)
   ======================================== */

#bottomLeftButtons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.gameButton {
  width: 70px;
  height: 70px;
  border: 6px solid #2a2a2a;
  border-radius: 10px;
  background: #1a1a1a;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.gameButton:hover {
  background: #252525;
  border-color: #3a3a3a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.gameButton:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.buttonIcon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buttonIcon svg {
  width: 100%;
  height: 100%;
  stroke: #aaaaaa;
  transition: stroke 0.2s ease;
}

.gameButton:hover .buttonIcon svg {
  stroke: #e0e0e0;
}

.buttonText {
  font-size: 10px;
  font-family: 'Ubuntu', sans-serif;
  color: #aaaaaa;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.buttonKey {
  font-size: 9px;
  font-family: 'Ubuntu', sans-serif;
  color: #666666;
  font-weight: 400;
}

/* ========================================
   Settings Modal
   ======================================== */

#settingsModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.settingsBackdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.settingsContainer {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  background: linear-gradient(135deg, rgba(45, 50, 65, 0.98) 0%, rgba(35, 40, 55, 0.98) 100%);
  border: 3px solid rgba(100, 150, 200, 0.5);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.settingsHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 34, 45, 0.8);
}

.settingsHeader h2 {
  margin: 0;
  font-size: 24px;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 700;
  color: #e0e0e0;
}

.settingsCloseBtn {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255, 100, 100, 0.5);
  border-radius: 8px;
  background: rgba(255, 80, 80, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.settingsCloseBtn:hover {
  background: rgba(255, 80, 80, 0.2);
  border-color: rgba(255, 100, 100, 0.8);
  transform: scale(1.05);
}

.settingsCloseBtn svg {
  width: 20px;
  height: 20px;
  stroke: #ff6b6b;
}

.settingsTabs {
  display: flex;
  gap: 0;
  background: rgba(25, 28, 38, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.settingsTab {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
  font-family: 'Ubuntu', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #888888;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
  user-select: none;
}

.settingsTab:hover {
  color: #b0b0b0;
  background: rgba(255, 255, 255, 0.05);
}

.settingsTab.active {
  color: #e0e0e0;
  background: rgba(255, 255, 255, 0.08);
  border-bottom-color: #5a9fd4;
}

.settingsContent {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.settingsTabContent {
  display: none;
}

.settingsTabContent.active {
  display: block;
}

.settingsContent .optionsHeader {
  font-size: 13px;
  font-weight: 700;
  color: #a0a0a0;
  margin: 16px 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settingsContent .optionRow {
  display: flex;
  gap: 12px;
  margin: 12px 0;
}

.settingsContent .optionGroup {
  flex: 1;
}

.settingsContent .miniHeader {
  font-size: 11px;
  font-weight: 600;
  color: #888888;
  margin-bottom: 4px;
}

.settingsContent .modernSelect {
  width: 100%;
  padding: 8px 12px;
  margin: 4px 0;
  border: 2px solid rgba(100, 150, 200, 0.3);
  border-radius: 6px;
  background: rgba(26, 32, 44, 0.9);
  color: #e2e8f0;
  font: 13px Ubuntu;
  cursor: pointer;
  transition: all 0.2s ease;
}

.settingsContent .modernSelect.smallSelect {
  padding: 6px 10px;
  font-size: 12px;
}

.settingsContent .modernSelect:hover {
  border-color: rgba(100, 150, 200, 0.5);
  background: rgba(26, 32, 44, 0.95);
}

.settingsContent .modernSelect:focus {
  outline: none;
  border-color: #5a9fd4;
  box-shadow: 0 0 0 3px rgba(90, 159, 212, 0.2);
}

.settingsContent .modernSelect option {
  background: #1a2030;
  color: #e2e8f0;
}

/* Hide desktop-only elements on mobile */
@media (max-width: 768px) {
  .desktopOnly {
    display: none !important;
  }
}


