@font-face {
  font-family: "generic";
  src: url("../fonts/retro.ttf") format("truetype");
  font-weight: normal;
  font-style: normal; }

body {
  overflow: hidden;
  margin: 0;
  background: #3f3f74;
  color: #fff;
  font-size: 16px;
  font-family: generic;
  user-select: none; }

* {
  box-sizing: border-box; }

input {
  user-select: all; }

a {
  color: #cf0;
  text-decoration: none; }

a:hover {
  color: #fff; }

canvas.main {
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  position: absolute; }

.hidden {
  display: none !important; }

.pixelated {
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  image-rendering: pixelated; }

.text-align-left {
  text-align: left; }

.text-align-right {
  text-align: right; }

.text-align-center {
  text-align: center; }

.border-window {
  border-style: solid;
  border-width: 16px 14px 20px 16px;
  border-image: url(borders/default.png) 16 14 20 16 stretch;
  border-radius: 1px;
  min-width: 32px;
  background: #45283c; }

.drop-shadow {
  box-shadow: 0 0 4px 30px rgba(0, 0, 0, 0.4); }

.window-handle {
  border-radius: 2px;
  background: url(borders/window-handle-center.png) repeat;
  height: 24px;
  display: flex;
  justify-content: space-between;
  align-content: center;
  color: #fff;
  text-shadow: 0 1px 0 #663931;
  padding: 0 4px 0 16px;
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.5); }

.window-handle:before {
  content: "";
  display: inline-block;
  background: url(borders/window-handle-left.png) repeat;
  width: 12px;
  height: 24px;
  position: absolute;
  left: 0px; }

.window-handle .button {
  width: 16px;
  height: 16px; }

.button {
  display: inline-block;
  border-style: solid;
  border-width: 10px 9px;
  border-image: url(buttons/default.png) 10 9 fill stretch;
  transition: all 0.1s;
  text-align: center; }

.button.small {
  border-style: solid;
  border-width: 4px;
  border-image: url(buttons/small.png) 4 fill repeat;
  display: flex;
  justify-content: center;
  align-items: center; }

.button.primary {
  border-image: url(buttons/primary.png) 10 9 fill stretch;
  color: #99e550; }

.button.select {
  border-image: url(buttons/select.png) 10 9 fill stretch; }

.button.select.selected {
  border-image: url(buttons/select-selected.png) 10 9 fill stretch; }

a.button {
  color: #fff; }

.absolute {
  position: absolute;
  z-index: 1; }

.absolute.center {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); }

.absolute.center-top {
  left: 50%;
  top: 0%;
  transform: translate(-50%, 0%); }

.absolute.right-top {
  right: 0%;
  top: 0%; }

.button:hover {
  filter: saturate(120%) brightness(1.2); }

.button:active {
  transform: scale(0.8), translate(0, 0); }

.lobby .mainMenu {
  min-width: 360px; }

.lobby .mainMenu > div {
  padding-top: 8px; }

.lobby {
  background: url(logo.png) center 0px no-repeat;
  padding-top: 160px;
  margin-top: -160px;
  min-width: 446px; }

.lobby .showMainMenu {
  position: absolute;
  left: 156px;
  top: 290px; }

.lobby .footer {
  text-align: right; }

.lobby .footer a {
  color: #9badb7; }

.lobby .footer a:hover {
  color: #fff; }

.lobby .mode-selector {
  display: flex;
  justify-content: space-between; }

.lobby .mode-selector > div {
  margin: 8px; }

input[type=text] {
  width: 100%;
  font-family: "generic";
  padding: 4px;
  display: inline-block;
  border-style: solid;
  border-width: 10px 9px;
  border-image: url(buttons/input.png) 10 9 fill stretch;
  color: #fff;
  background: none; }

input::placeholder {
  color: #b37272; }

.full-width {
  width: 100%; }

.fullscreen-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: flex;
  flex-direction: column; }

.fullscreen-wrapper iframe {
  border: 0;
  flex: 1; }

.fullscreen-wrapper .close {
  background: #5eaa8b;
  text-align: center;
  padding: 16px 0; }

.smallfont {
  font-size: 14px; }

.smallerfont {
  font-size: 12px; }

.flex {
  display: flex; }

.gap {
  gap: 4px; }

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

.flex-row {
  flex-direction: row;
  display: flex; }

.flex-no-shrink > * {
  flex-shrink: 0; }

.flex-shrink {
  flex-shrink: 1; }

.flex-grow-equal > * {
  flex-grow: 1;
  flex-basis: 0; }

.flex-justify-center {
  justify-content: center; }

.flex-align-center {
  align-content: center; }

.flex-align-items-center {
  align-items: center; }

.top-separator {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid #847e87; }

.overlay-window {
  background: rgba(50, 42, 0, 0.68);
  border-radius: 10px; }

.overlay-window .window-handle {
  border-radius: 4px 4px 0 0; }

.overlay-window .content {
  padding: 4px; }

.fit-height {
  max-height: 400px;
  display: flex; }

.scroll {
  overflow: auto;
  padding-right: 8px; }

table.results {
  margin-bottom: 16px;
  border-spacing: 0; }

table.results th, table.results td {
  padding: 4px 4px 0 0;
  margin: 0; }

table.results th {
  text-align: left; }

table.results .player td {
  background: #259283;
  border-top: 2px solid #88ffd9;
  border-bottom: 2px solid #88ffd9; }

div::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #d0c8b4; }

div::-webkit-scrollbar {
  width: 12px;
  background-color: #000; }

div::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #9c8749; }

#ad {
  border: 3px solid #ffef59;
  background: #45283c;
  padding: 6px; }

.ui-tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid #6b3b35; }

.ui-tabs > a {
  display: flex;
  color: #ffb100;
  padding: 2px 4px;
  border-style: solid;
  border-width: 8px;
  border-image: url(buttons/tab.png) 8 fill repeat; }

.ui-tabs > a.selected {
  color: #ffe770;
  border-image: url(buttons/tab-selected.png) 8 fill repeat;
  padding-bottom: 4px; }

.modePicker > div.ui-tabs-panel {
  background: #663931;
  padding: 4px 8px;
  border-radius: 0 0 6px 6px;
  font-size: 14px;
  text-align: left;
  border-bottom: 2px solid #222034;
  border-right: 2px solid #222034;
  margin-bottom: 16px; }

.LeaderboardWindow p {
  margin: 0;
  margin-bottom: 4px; }

.new {
  position: relative; }

.new:after {
  content: "new";
  position: absolute;
  padding: 3px;
  font-size: 10px;
  font-weight: bold;
  right: 6px;
  top: -4px;
  border-bottom: 4px solid #b97800;
  transform: translate(0, -100%);
  color: #ffa500; }

.RespawnWindow {
  width: 400px;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 600px; }

.RespawnWindow .chat {
  width: 100%;
  display: flex;
  flex-direction: column;
  flex-grow: 1; }

.RespawnWindow .chat .messages-wrapper {
  flex-grow: 1;
  border-top: 2px solid #6b3c0b;
  padding: 0 14px;
  background: #00000017;
  box-shadow: inset 3px 6px 14px 0px #00000082;
  margin-top: 8px;
  border-radius: 4px; }

.RespawnWindow .chat .messages {
  text-align: left;
  font-size: 12px; }

.version {
  font-size: 8px;
  text-align: right;
  margin: 0;
  opacity: 0.5; }

.PlayOption {
  gap: 8px;
  width: 100%;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr; }

.LobbyPanels > .ui-tabs-panel {
  padding: 16px 0;
  gap: 8px; }

.MainAd {
  width: 300px;
  height: 600px;
  background: #008;
  z-index: 0; }

#lobby .MainAd {
  transform-origin: right top; }

#lobby .middle {
  overflow: hidden;
  display: flex;
  justify-content: center;
  gap: 32px;
  height: 100%; }

.Lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding-bottom: 32px;
  padding-top: 32px;
  height: 100vh; }

.LoadingScreen {
  background: #000;
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999; }

.LoadingScreen h1 {
  font-size: 20vh; }

.LoadingScreen .bar {
  width: 80%;
  height: 10%;
  border: 4px #fff solid; }

.LoadingScreen .progress {
  background: #fff;
  height: 100%;
  display: inline-block; }

.Tutorial {
  border-top: 2px solid #847d84;
  padding-top: 1em;
  margin-top: 0.5em; }
  .Tutorial h2 {
    padding: 0.25em;
    margin: 0;
    font-size: 1em;
    text-align: center;
    color: #fa0; }
  .Tutorial .buttons {
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center; }
    .Tutorial .buttons .button {
      display: flex;
      align-items: center;
      justify-content: center; }
  .Tutorial .thumbnail {
    text-align: center;
    width: 180px;
    height: 160px; }
    .Tutorial .thumbnail img {
      width: 180px;
      image-rendering: pixelated;
      border-radius: 4px; }

#triset-io_300x600-wrapper {
  position: absolute;
  transform-origin: left top;
  box-sizing: content-box;
  display: flex;
  align-items: flex-end;
  z-index: 2; }

#triset-io_300x600 {
  width: 300px;
  height: 600px;
  border: 1px solid #000; }

#crossPromotion {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 182px;
  height: 130px;
  border-style: solid;
  border-width: 6px 14px 20px 6px;
  border-image: url(borders/default.png) 6 14 20 6 stretch;
  border-radius: 1px;
  padding-bottom: 32px;
  min-width: 32px;
  min-height: 32px;
  background: #45283c; }
  #crossPromotion #alsoTryImg {
    width: 170px;
    height: 110px; }
  #crossPromotion .biscuit_position {
    top: 70%; }

#about {
  color: #ccc;
  text-align: right;
  position: fixed;
  bottom: 2px;
  right: 2px;
  padding: 8px; }
  #about a {
    color: #fff;
    text-decoration: none;
    display: block;
    cursor: pointer; }

#policy {
  max-width: 800px;
  position: absolute;
  max-height: 80vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: #002;
  padding: 16px;
  border: 2px solid #fff;
  overflow: hidden;
  display: flex; }
  #policy .content {
    user-select: text;
    overflow-y: auto; }
  #policy #policyButtonClose {
    position: fixed;
    right: 4px;
    top: 4px; }

#partners {
  max-width: 800px;
  position: absolute;
  max-height: 80vh;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: #002;
  padding: 16px;
  border: 2px solid #fff;
  overflow: hidden;
  display: flex;
  padding-right: 64px;
  flex-direction: column; }
  #partners .content {
    user-select: text;
    overflow-y: auto; }
  #partners #partnersButtonClose {
    position: fixed;
    right: 4px;
    top: 4px; }

/* @media */
@media screen and (max-width: 1320px) {
  #about {
    display: none; } }

@media screen and (max-width: 640px) {
  .MainAd {
    display: none; } }

@media screen and (max-width: 1180px) {
  .Leaderboards {
    display: none !important; } }

@media screen and (max-width: 880px) {
  #crossPromotion {
    display: none !important; }
  .WidgetSpace {
    display: none !important; } }

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

.Leaderboards {
  overflow: hidden;
  display: flex;
  gap: 8px;
  flex-direction: column;
  position: relative;
  max-width: 300px; }
  .Leaderboards .name {
    max-width: 4em;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%; }
  .Leaderboards .first {
    flex-grow: 1; }
  .Leaderboards .Title {
    background: #230018;
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 6px;
    border-width: 16px 14px 20px 16px;
    border-image: url(borders/default.png) 16 14 20 16 stretch; }
