.iflex {
  display: -webkit-inline-flex;
  display: -webkit-inline-box;
  display: -moz-inline-flex;
  display: -ms-inline-flex;
  display: -o-inline-flex;
  display: inline-flex;
}
.flex {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
}
.flex.horz {
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
}
.flex.vert {
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
}
.flex.rev-vert {
  -webkit-flex-direction: column-reverse;
  -webkit-box-orient: vertical-reverse;
  -moz-flex-direction: column-reverse;
  -ms-flex-direction: column-reverse;
  -o-flex-direction: column-reverse;
  flex-direction: column-reverse;
}
.flex.horz-rev {
  -webkit-flex-direction: row-reverse;
  -webkit-box-orient: horizontal-reverse;
  -moz-flex-direction: row-reverse;
  -ms-flex-direction: row-reverse;
  -o-flex-direction: row-reverse;
  flex-direction: row-reverse;
}
/* main axis */
.flex.start {
  -webkit-justify-content: flex-start;
  -moz-justify-content: flex-start;
  -ms-justify-content: flex-start;
  -o-justify-content: flex-start;
  justify-content: flex-start;
}
.flex.center {
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
.flex.end {
  -webkit-justify-content: flex-end;
  -moz-justify-content: flex-end;
  -ms-justify-content: flex-end;
  -o-justify-content: flex-end;
  justify-content: flex-end;
}
.flex.space {
  -webkit-justify-content: space-between;
  -moz-justify-content: space-between;
  -ms-justify-content: space-between;
  -o-justify-content: space-between;
  justify-content: space-between;
}
.flex.evenly {
  -webkit-justify-content: space-evenly;
  -moz-justify-content: space-evenly;
  -ms-justify-content: space-evenly;
  -o-justify-content: space-evenly;
  justify-content: space-evenly;
}
.flex.around {
  -webkit-justify-content: space-around;
  -moz-justify-content: space-around;
  -ms-justify-content: space-around;
  -o-justify-content: space-around;
  justify-content: space-around;
}
/* cross-axis */
.flex.top,
flex.left {
  -webkit-align-items: flex-start;
  -moz-align-items: flex-start;
  -ms-align-items: flex-start;
  -o-align-items: flex-start;
  align-items: flex-start;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
}
.flex.middle {
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
.flex.bottom,
.flex.right {
  -webkit-align-items: flex-end;
  -moz-align-items: flex-end;
  -ms-align-items: flex-end;
  -o-align-items: flex-end;
  align-items: flex-end;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
}
.flex.stretch {
  -webkit-align-items: stretch;
  -moz-align-items: stretch;
  -ms-align-items: stretch;
  -o-align-items: stretch;
  align-items: stretch;
  -webkit-box-pack: stretch;
  -ms-flex-pack: stretch;
}
/* content */
.flex.content.top {
  -webkit-align-content: flex-start;
  -moz-align-content: flex-start;
  -ms-align-content: flex-start;
  -o-align-content: flex-start;
  align-content: flex-start;
}
.flex1 {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
}
.flex.shrink {
  flex-shrink: 1;
  -webkit-flex-shrink: 1;
  -moz-flex-shrink: 1;
  -o-flex-shrink: 1;
  -ms-flex-shrink: 1;
}
.flex.wrap {
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
.flex.nowrap {
  -webkit-flex-wrap: nowrap;
  flex-wrap: nowrap;
}
.fullscreen {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
.noselect {
  touch-action: none;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                          supported by Chrome and Opera */
}
.safe {
  position: absolute;
  left: constant(safe-area-inset-left);
  left: env(safe-area-inset-left);
  top: constant(safe-area-inset-top);
  top: env(safe-area-inset-top);
  right: constant(safe-area-inset-right);
  right: env(safe-area-inset-right);
  bottom: constant(safe-area-inset-bottom);
  bottom: env(safe-area-inset-bottom);
}
/*****************************************************************************
    scrollbar
*****************************************************************************/
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}
::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
.underlineFocus {
  position: absolute;
  bottom: -5px;
  left: 0px;
  right: 0px;
  content: "";
  border-bottom: 3px double #fa293d;
  outline: 0;
}
.textinput {
  border: 1px solid #efefef;
  border-radius: 0.25rem;
  height: 3rem;
}
.textinput input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.25rem;
  outline: 0;
  margin: 0;
  border: 0;
  font-size: 1rem;
  border-radius: 0.25rem;
}
.textinput.error {
  border: 1px solid #fa293d;
}
.textbutton {
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  outline: none;
  background-color: #efefef;
  color: #888888;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  padding: 0.5rem;
  position: relative;
  height: 3rem;
}
.textbutton.active {
  border: 1px solid #888888;
  background-color: #fafafa;
}
#busy {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.1);
}
.dialog_backdrop {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  transition: opacity 0.25s, background-color 0.25s;
  background-color: rgba(0, 0, 0, 0.3);
  opacity: 0;
}
.dialog_backdrop.bury {
  background-color: rgba(0, 0, 0, 0);
}
.dialog {
  max-height: 100%;
  position: relative;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  background-color: white;
  color: #252525;
  border-radius: 0.5rem;
  border: 1px solid #efefef;
  padding: 2rem 1.5rem 1.5rem;
  transform: scale(0, 0);
}
.dialog .content {
  max-height: 100%;
  overflow-y: auto;
}
.dialog a {
  color: #fa293d;
  text-decoration: none;
}
.dialog a:active,
.dialog a:focus {
  text-decoration: underline;
  outline: 0;
}
.dialog p {
  font-size: 0.9em;
  text-align: center;
}
.dialog p.error {
  color: #fa293d;
}
.dialog div.input {
  border: 1px solid #efefef;
  border-radius: 0.25rem;
  height: 3rem;
}
.dialog div.input input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.25rem;
  outline: 0;
  margin: 0;
  border: 0;
  font-size: 1rem;
  border-radius: 0.25rem;
}
.dialog div.input.error {
  border: 1px solid #fa293d;
}
.dialog div.input:focus-within,
.dialog div.input.error:focus-within {
  border: 1px solid #888888;
}
.dialog button[disabled],
.dialog button.facebook[disabled],
.dialog button.text[disabled] {
  background-color: #888888;
  border: 1px solid #888888;
  color: #fafafa;
}
.dialog button[disabled]:active {
  background-color: #888888 !important;
  border: 1px solid #888888 !important;
  color: #fafafa !important;
}
.dialog button.text {
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  outline: none;
  background-color: #efefef;
  color: #888888;
  border-radius: 0.25rem;
  border: 1px solid transparent;
  padding: 0.5rem;
  position: relative;
  height: 3rem;
  box-sizing: border-box;
  display: block;
  width: 100%;
}
.dialog button.text:active {
  border: 1px solid #888888;
  background-color: #fafafa;
}
.dialog button.text.red {
  background-color: #fa293d;
  color: white;
}
.dialog button > * {
  vertical-align: middle;
  margin: 0 0.25rem;
}
.dialog button .icon {
  width: auto;
  height: 1.2rem;
}
.dialog button.facebook {
  background-color: #3897f0;
  border: 1px solid #3897f0;
  color: white;
  width: 100%;
}
.dialog button.facebook:active {
  background-color: #4CA9FF;
}
.dialog button.airgames {
  background-color: #32d3f0;
  border: 1px solid #32d3f0;
  color: #333333;
}
.dialog button.airgames:active {
  background-color: #4cdef8;
}
.dialog div.divider {
  margin: 0.5rem 0;
  border-bottom: 1px solid #efefef;
}
.dialog.open {
  animation: dialog-open 0.25s;
  -webkit-animation: dialog-open 0.25s;
  -moz-animation: dialog-open 0.25s;
  -o-animation: dialog-open 0.25s;
  animation-fill-mode: forwards;
  -webkit-animation-fill-mode: fowrads;
  -moz-animation-fill-mode: fowrads;
  -o-animation-fill-mode: fowrads;
}
#billing .dialog {
  font-size: 1.1em;
  width: 20rem;
  text-align: center;
  overflow: hidden;
  padding: 2rem;
}
#billing .dialog p {
  margin: 0 0 2rem;
}
#billing .dialog .logo {
  background-color: #32d3f0;
  color: #016d8c;
  margin: -1.5rem -1rem 0;
  padding: 0.25rem;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
#billing .dialog .logo img {
  height: 2em;
  width: auto;
}
#billing .dialog .bass-logo {
  height: 6rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  margin: 2rem;
}
#billing .dialog .error {
  color: #fa293d;
}
#billing .dialog a {
  font-size: 1.5rem;
  font-family: troika;
  outline: none;
  text-transform: uppercase;
}
#billing .dialog a.button {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
#billing .dialog a + a {
  margin-top: 1.5rem;
}
#login .dialog {
  width: 20rem;
}
#login .dialog .section {
  text-align: center;
}
#login .dialog .section > * {
  margin-bottom: 0.5rem;
}
#login .dialog .logo {
  width: 100%;
}
#login .dialog .or {
  margin: 0.25rem 0;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#login .dialog .or div:nth-child(2n+1) {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  height: 1px;
  border-bottom: 1px solid #efefef;
}
#login .dialog .or div:nth-child(2) {
  margin: 0.5rem 1rem;
}
#pinlogin .dialog {
  width: 25rem;
  max-width: 80%;
}
#pinlogin .dialog #pin_list {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
#pinlogin .dialog #pin_list > * {
  min-width: 2rem;
  min-height: 2rem;
  max-width: 2rem;
  max-height: 2rem;
  margin: 0.5rem 0.25rem 1rem;
}
#pinlogin .dialog #pin_list input {
  text-align: center;
}
#newsletter .dialog {
  width: 15rem;
  max-width: 60%;
}
#newsletter .dialog .logo {
  width: 100%;
}
#newpass .dialog {
  width: 15rem;
  max-width: 60%;
}
#info .dialog {
  width: 10rem;
  max-width: 50%;
  font-size: 1.1em;
}
@keyframes dialog-open {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.97);
  }
  90% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@-webkit-keyframes dialog-open {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.97);
  }
  90% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@-moz-keyframes dialog-open {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.97);
  }
  90% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
@-o-keyframes dialog-open {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.05);
  }
  80% {
    transform: scale(0.97);
  }
  90% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}
.button {
  transition: all 0.25s ease-out;
  cursor: pointer;
}
.button:active {
  transform: scale(0.97, 0.97);
}
.blink {
  animation: blink-animation 1s steps(5, start) infinite;
  -webkit-animation: blink-animation 1s steps(5, start) infinite;
}
@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}
@-webkit-keyframes blink-animation {
  to {
    visibility: hidden;
  }
}
#chat {
  position: absolute;
  left: 0;
  right: 0;
  height: 40vh;
  font-size: 3vh;
  font-family: yanone, arial;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 0.25rem;
  border: 1px solid #4dc34f;
  transition: transform 0.3s ease-out;
}
#chat .chat {
  position: absolute;
  overflow: hidden;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
}
#chat .chat .content {
  padding: 0.5em;
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  overflow-y: scroll;
  overflow-x: hidden;
}
#chat .chat .content .row {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: flex-start;
  -moz-align-items: flex-start;
  -ms-align-items: flex-start;
  -o-align-items: flex-start;
  align-items: flex-start;
  -webkit-box-pack: start;
  -ms-flex-pack: start;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
#chat .chat .content .row > * {
  display: block;
}
#chat .chat .content .row label {
  color: #c5cde6;
  margin-right: 0.5em;
}
#chat .chat .content .row span {
  color: #dce6c5;
}
#chat .chat .content .row.me label {
  color: #eba79e;
}
#chat .chat .content .row.mute:before {
  content: "";
  display: block;
  float: left;
  margin-right: 0.5em;
  width: 1em;
  height: 1em;
  background: url(../images/kids/sound_off.png) no-repeat;
  background-size: cover;
  background-position: center;
}
#chat .chat .content .row.mute:before span {
  color: #bbb4b4;
}
#chat .chat .content::-webkit-scrollbar {
  width: 8px;
}
#chat .chat .content::-webkit-scrollbar-track {
  box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}
#chat .chat .content::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
#chat .chat .footer {
  height: 2em;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: stretch;
  -moz-align-items: stretch;
  -ms-align-items: stretch;
  -o-align-items: stretch;
  align-items: stretch;
  -webkit-box-pack: stretch;
  -ms-flex-pack: stretch;
}
#chat .chat .footer .input {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  border: 1px solid #efefef;
  border-radius: 0.25rem;
  height: 3rem;
  margin: 0;
  margin-right: 0.125rem;
}
#chat .chat .footer .input input {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0.25rem;
  outline: 0;
  margin: 0;
  border: 0;
  font-size: 1rem;
  border-radius: 0.25rem;
}
#chat .chat .footer .input input {
  font-size: 1.2em;
}
#chat .chat .footer .button {
  border-radius: 0.125rem;
  display: block;
  background-color: #4dc34f;
  color: white;
  border: none;
  padding: 0.25em 1em;
  font-family: yanone;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
}
#chat .buttons {
  position: absolute;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#chat .icon {
  box-sizing: border-box;
}
#chat .icon.bubble {
  aspect-ratio: 1;
  height: 5vh;
  opacity: 0.75;
  background: url(../images/cards/icon_chat.png) no-repeat;
  background-size: contain;
  background-position: center;
}
#chat .icon.emotes {
  aspect-ratio: 2.5390625;
  height: 3vh;
  background: url(../images/cards/icon_taunt.png) no-repeat;
  background-size: contain;
  background-position: center;
  margin-right: 0.125em;
}
#chat .icon.bubble:active {
  opacity: 1;
}
#chat .icon.close {
  width: 1em;
  height: 1em;
  position: absolute;
  background: url(../images/cards/close.png) no-repeat;
  background-size: contain;
  background-position: center;
  right: 0.25em;
  top: 0.25em;
}
#chat .alert {
  position: absolute;
  right: 0;
  top: 0;
  aspect-ratio: 1;
  height: 50%;
  background: url(../images/kids/action.png) no-repeat;
  background-size: contain;
  background-position: center;
  display: none;
  animation: blink-animation 1s steps(5, start) infinite;
  -webkit-animation: blink-animation 1s steps(5, start) infinite;
}
#chat.on {
  transform: translate(0, 0);
}
#chat.off .icon.bubble {
  background-color: transparent;
}
#chat.alert .icon.bubble {
  opacity: 1;
}
#chat.alert .alert {
  display: initial;
}
#emotesChat {
  position: fixed;
  bottom: 2em;
  left: 50%;
  transform: translate(-50%, 0);
  display: none;
}
#emotesChat .emotes {
  position: absolute;
  left: 64px;
  right: 64px;
  top: 48px;
  bottom: 64px;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: wrap;
  -moz-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}
#emotesChat .emotes .emote {
  margin: 4px;
}
#emotesChat.show {
  display: initial;
}
#emotesChat.show .body {
  animation: showEmotes 0.25s linear;
  animation-direction: normal;
  animation-fill-mode: forwards;
}
#emotesChat.hide {
  display: initial;
}
#emotesChat.hide .body {
  animation: hideEmotes 0.25s ease-in;
  animation-direction: normal;
  animation-fill-mode: forwards;
}
@keyframes showEmotes {
  0% {
    transform: scale(0);
  }
  5% {
    transform: scale(0.01890625);
  }
  10% {
    transform: scale(0.075625);
  }
  15% {
    transform: scale(0.17015625);
  }
  20% {
    transform: scale(0.3025);
  }
  25% {
    transform: scale(0.47265625);
  }
  30% {
    transform: scale(0.680625);
  }
  35% {
    transform: scale(0.92640625);
  }
  40% {
    transform: scale(0.91);
  }
  45% {
    transform: scale(0.81890625);
  }
  50% {
    transform: scale(0.765625);
  }
  55% {
    transform: scale(0.75015625);
  }
  60% {
    transform: scale(0.7725);
  }
  65% {
    transform: scale(0.83265625);
  }
  70% {
    transform: scale(0.930625);
  }
  75% {
    transform: scale(0.97265625);
  }
  80% {
    transform: scale(0.94);
  }
  85% {
    transform: scale(0.94515625);
  }
  90% {
    transform: scale(0.988125);
  }
  95% {
    transform: scale(0.98453125);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes hideEmotes {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(0);
  }
}
/* anchors */
#chat.S {
  bottom: 0;
}
#chat.S .buttons {
  left: 50%;
  transform: translate(-50%, 0);
  top: -1.5em;
}
#chat.S.off {
  transform: translate(0, 40vh);
}
#chat.NW {
  top: 0;
}
#chat.NW .buttons {
  left: 1vh;
  bottom: -5vh;
}
#chat.NW.off {
  transform: translate(0, -40vh);
}
#chat.SE {
  bottom: 0;
}
#chat.SE .buttons {
  right: 1em;
  top: -2em;
}
#chat.SE.off {
  transform: translate(0, 40vh);
}
:root {
  --DIALOG_BORDER: #32d3f0;
  --DIALOG_BG_COLOR: white;
  --DIALOG_FG_COLOR: #999999;
  --AIRG_RED: #fa293d;
}
div.backdrop {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.85);
}
div.dialog {
  max-width: calc(80% - 2rem);
  padding: 2em;
  color: var(--DIALOG_FG_COLOR);
  background-color: var(--DIALOG_BG_COLOR);
  border: 1rem solid var(--DIALOG_BORDER);
  border-radius: 0.25em;
  text-align: center;
  position: relative;
}
div.dialog p {
  line-height: 1.4;
}
div.dialog #close {
  width: 3rem;
  height: 3rem;
  padding: 0.125rem;
  display: inline-block;
  background-color: transparent;
  border: none;
  position: absolute;
  right: 0;
  top: 0;
  transform: translate(50%, -50%);
}
div.dialog #close img {
  width: 100%;
  height: 100%;
}
div.dialog #close:focus {
  outline: 2px solid var(--AIRG_RED);
}
body {
  margin: 0;
  font-family: yanone, arial;
  background-color: #75eaff;
  padding-top: constant(safe-area-inset-top);
  /* iOS 11.0 */
  padding-top: env(safe-area-inset-top);
  /* iOS 11.2 */
}
canvas {
  touch-action: none;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                          supported by Chrome and Opera */
}
#splash {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  color: white;
  background-color: #75eaff;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: column;
  -webkit-box-orient: vertical;
  -moz-flex-direction: column;
  -ms-flex-direction: column;
  -o-flex-direction: column;
  flex-direction: column;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#splash > * {
  display: block;
  margin: auto;
  margin-top: 0;
  margin-bottom: 0.5vh;
}
#splash #logo {
  height: 15vh;
  max-height: 15vmin;
  margin-bottom: 2vh;
  transition: opacity 0.5s linear;
}
#splash #logo img {
  display: block;
  margin: auto;
  max-height: 100%;
  height: 100%;
  width: auto;
}
#splash #loader {
  max-height: 7vh;
  width: auto;
}
#splash #progress {
  width: 50%;
  max-width: 400px;
  height: 2vh;
  padding: 0.2vh;
  overflow: hidden;
  box-sizing: border-box;
  border: 0.2vh solid white;
  border-radius: 1vh;
  margin-bottom: 2vh;
}
#splash #progress .bar {
  height: 100%;
  box-sizing: border-box;
  width: 0%;
  border-radius: 0.6vh;
  background-color: white;
  transition: width 0.25s;
}
#splash #labelLoading {
  font-size: 1rem;
  text-align: center;
  animation: flash linear 5s infinite;
}
#splash #labelLoading.start {
  font-size: 1.5rem;
  font-weight: 800;
}
@font-face {
  font-family: yanone;
  src: url(../fonts/Yanone.woff) format("woff"), url(../fonts/Yanone.ttf) format("truetype");
}
@font-face {
  font-family: gotham;
  src: url(../fonts/gotham.woff) format("woff"), url(../fonts/gotham.ttf) format("truetype");
}
@font-face {
  font-family: troika;
  src: url("../fonts/troika.woff") format("woff"), url("../fonts/troika.ttf") format("truetype");
}
@font-face {
  font-family: gotham_n;
  src: url("../fonts/gotham_n.woff") format("woff"), url("../fonts/gotham_n.ttf") format("truetype");
}
body {
  overflow: hidden;
}
#login .dialog .logo {
  width: 50% ! important;
}
#main {
  position: absolute;
  background-image: radial-gradient(at center 25%, #2CB3B4, #007b7f);
  background-size: cover;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}
#main canvas {
  width: 100%;
  height: 100%;
}
div.dialog_backdrop .dialog p {
  font-family: arial;
  font-size: 1em ! important;
}
#home {
  visibility: hidden;
}
a:active #home {
  opacity: 1;
  transform: scale(0.95, 0.95);
}
#alert .dialog {
  max-width: 80%;
}
#switch .dialog {
  width: 15rem;
  max-width: 60%;
  max-height: 80vh;
}
#switch .dialog .section {
  text-align: center;
}
#switch .dialog .logo {
  height: 3rem;
}
#switch .dialog .or {
  margin: 0.25rem 0;
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-align-items: center;
  -moz-align-items: center;
  -ms-align-items: center;
  -o-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
}
#switch .dialog .or div:nth-child(2n+1) {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  height: 1px;
  border-bottom: 1px solid #efefef;
}
#switch .dialog .or div:nth-child(2) {
  margin: 0.5rem 1rem;
}
#switch .dialog #users {
  max-height: 50vh;
  overflow-y: auto;
}
#switch .dialog #users > * {
  margin-bottom: 0.25rem;
}
#switch .dialog #users > *:last-child {
  margin-bottom: 0;
}
#switch .dialog #users::-webkit-scrollbar {
  width: 8px;
  padding: 2px;
}
#switch .dialog #users::-webkit-scrollbar-track {
  box-shadow: none;
}
#switch .dialog #users::-webkit-scrollbar-thumb {
  background-color: rgba(71, 9, 33, 0.3);
  border-radius: 4px;
  border: 2px solid white;
}
#avatar .dialog {
  padding: 0.5em;
  background-color: #75eaff;
}
#avatar .dialog .tabs {
  display: -webkit-flex;
  display: -webkit-box;
  display: -moz-flex;
  display: -ms-flex;
  display: -o-flex;
  display: flex;
  -webkit-flex-direction: row;
  -webkit-box-orient: horizontal;
  -moz-flex-direction: row;
  -ms-flex-direction: row;
  -o-flex-direction: row;
  flex-direction: row;
  -webkit-justify-content: center;
  -moz-justify-content: center;
  -ms-justify-content: center;
  -o-justify-content: center;
  justify-content: center;
  height: 2em;
  color: white;
}
#avatar .dialog .tabs .tab {
  flex-grow: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  -moz-box-flex: 1;
  transition: none;
  padding: 0.25em;
  border-top-left-radius: 0.5em;
  border-top-right-radius: 0.5em;
  text-align: center;
  cursor: pointer;
}
#avatar .dialog .tabs .tab:active {
  text-decoration: underline;
  transform: none;
  background-color: #a4f1ff;
}
#avatar .dialog .tabs .tab:focus {
  outline: none;
  background-color: #a4f1ff;
}
#avatar .dialog .tabs .tab.selected {
  background-color: white;
  color: #0d7b98;
}
#avatar .dialog .select {
  background-color: white;
  border-radius: 0.5em;
  display: grid;
  padding: 1em;
}
#avatar .dialog .select .button {
  padding: 0.5em;
  border: 1px solid #75eaff;
  border-radius: 0.5em;
  margin: 0.25em;
}
#avatar .dialog .select .button img {
  width: 3em;
  height: 3em;
}
#avatar .dialog .select.sex {
  grid-template-columns: 1fr 1fr;
  border-top-left-radius: 0;
}
#avatar .dialog .select.type {
  grid-template-columns: 1fr 1fr 1fr;
}
#avatar .dialog .select.num {
  grid-template-columns: 1fr 1fr 1fr;
  border-top-right-radius: 0;
}
#avatar .dialog .button:focus {
  outline: 2px solid #fa293d;
}
@media (max-height: 480px) {
  #switch .dialog {
    width: 25rem;
    max-width: 80%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 0.125rem;
  }
  #switch .dialog > * {
    place-self: center stretch;
  }
}
#home {
  position: absolute;
  left: 1em;
  bottom: 1em;
  width: 2em;
  height: 2em;
  overflow: hidden;
  background-color: white;
  transition: all 0.5s;
  border-radius: 50%;
  opacity: 0.5;
}
#home img {
  width: 1.5em;
  height: 1.5em;
  margin: 0.25em;
}
a:active #home {
  opacity: 1;
  transform: scale(0.95, 0.95);
}
iframe {
  position: absolute;
  border: none;
  border-radius: 1rem;
}

