@font-face {
  font-family: ubuntu-mono-regular;
  src: url(./../assets/fonts/UbuntuMono-Regular.ttf);
}
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
    ========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
  margin: 0;
}

/**
* Render the `main` element consistently in IE.
*/
main {
  display: block;
}

/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
    ========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
    ========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
  background-color: transparent;
}

/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}

/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
  font-weight: bolder;
}

/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
* Add the correct font size in all browsers.
*/
small {
  font-size: 80%;
}

/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
    ========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
  border-style: none;
}

/* Forms
    ========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
  overflow: visible;
}

/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
  text-transform: none;
}

/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type=button],
[type=reset],
[type=submit] {
  -moz-appearance: button;
       appearance: button;
  -webkit-appearance: button;
}

/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,
[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type=button]:-moz-focusring,
[type=reset]:-moz-focusring,
[type=submit]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
* Correct the padding in Firefox.
*/
fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
*    `fieldset` elements in all browsers.
*/
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
  vertical-align: baseline;
}

/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
  overflow: auto;
}

/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type=checkbox],
[type=radio] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type=search] {
  -moz-appearance: textfield;
       appearance: textfield;
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
    ========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
  display: block;
}

/*
* Add the correct display in all browsers.
*/
summary {
  display: list-item;
}

/* Misc
    ========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
  display: none;
}

/**
* Add the correct display in IE 10.
*/
[hidden] {
  display: none;
}

@media (orientation: landscape) {
  .navigation {
    display: flex;
    flex-direction: column !important;
    gap: 20px;
    justify-content: flex-start;
    padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left) !important;
    padding-top: 20px !important;
    padding-bottom: 40px !important;
    max-width: 60px !important;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 3000;
  }
  .navigation > a {
    display: flex;
    margin: 0 auto;
    padding: 0;
    width: -moz-fit-content;
    width: fit-content;
    opacity: 0.5 !important;
  }
  .navigation > a:hover, .navigation > a:focus {
    opacity: 1 !important;
    outline: none;
    transform: translateX(2px);
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.458));
  }
  .navigation > a.active {
    opacity: 1 !important;
  }
  .navigation > a#begin-right-btn {
    margin-top: auto !important;
  }
  .navigation-panel {
    display: flex;
    flex-direction: column !important;
    gap: 20px;
    justify-content: center;
  }
  .navigation-panel > a {
    display: flex;
    margin: 0 auto;
    padding: 0;
    width: -moz-fit-content;
    width: fit-content;
    opacity: 0.3 !important;
  }
  .navigation-panel > a:hover, .navigation-panel > a:focus {
    opacity: 1 !important;
    outline: none;
    transform: translateX(2px);
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.458));
  }
  .navigation-panel > a.active {
    opacity: 1 !important;
  }
}
@media (orientation: portrait) {
  .navigation {
    padding: 10px !important;
    gap: 20px;
    display: flex;
    flex-direction: row !important;
    width: 100vw;
    flex-wrap: wrap;
    position: relative;
    z-index: 3000;
  }
  .navigation > a {
    width: -moz-fit-content !important;
    width: fit-content !important;
    opacity: 0.5 !important;
  }
  .navigation > a:hover, .navigation > a:focus {
    opacity: 1 !important;
    outline: none;
    transform: translateY(-2px);
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.458));
  }
  .navigation > a.active {
    opacity: 1 !important;
  }
  .navigation > a#begin-right-btn {
    margin-left: auto !important;
  }
  .navigation-panel {
    display: flex;
    flex-direction: row !important;
    gap: 20px;
    justify-content: center;
    flex-grow: 1;
  }
  .navigation-panel > a {
    padding: 0;
    width: -moz-fit-content;
    width: fit-content;
    opacity: 0.5 !important;
  }
  .navigation-panel > a:hover, .navigation-panel > a:focus {
    opacity: 1 !important;
    outline: none;
    transform: translateX(2px);
    filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.458));
  }
  .navigation-panel > a.active {
    opacity: 1 !important;
  }
}
.dashboard-content p {
  margin: 0 auto;
  max-width: 280px;
  border-radius: 0.5rem;
}
@media (prefers-color-scheme: dark) {
  .dashboard-content .bearer-token span {
    color: rgb(255, 180, 126);
  }
  .dashboard-content .bearer-token p {
    background-color: rgba(255, 157, 0, 0.069);
  }
  .dashboard-content .bearer-token button {
    background-color: rgb(174, 72, 0);
    color: rgb(255, 255, 255);
  }
  .dashboard-content .api-key span {
    color: rgb(224, 113, 255);
  }
  .dashboard-content .api-key p {
    background-color: rgba(212, 0, 255, 0.065);
  }
  .dashboard-content .api-secret span {
    color: rgb(101, 201, 255);
  }
  .dashboard-content .api-secret p {
    background-color: rgba(0, 213, 255, 0.074);
  }
}
@media (prefers-color-scheme: light) {
  .dashboard-content .bearer-token span {
    color: rgb(181, 75, 0);
  }
  .dashboard-content .bearer-token p {
    background-color: rgba(255, 157, 0, 0.069);
  }
  .dashboard-content .bearer-token button {
    background-color: rgb(255, 166, 103);
    color: rgb(88, 6, 0);
  }
  .dashboard-content .api-key span {
    color: rgb(117, 0, 150);
  }
  .dashboard-content .api-key p {
    background-color: rgba(212, 0, 255, 0.065);
  }
  .dashboard-content .api-secret span {
    color: rgb(0, 92, 141);
  }
  .dashboard-content .api-secret p {
    background-color: rgba(0, 213, 255, 0.074);
  }
}

.challenge-content {
  margin-top: 10px !important;
}

.game-content figure {
  margin: 0;
}
.game-content div.player-icon {
  opacity: 0.1;
}
.game-content .player-icon.active {
  opacity: 1;
}
.game-content dialog {
  border-color: transparent;
}
@media (prefers-color-scheme: dark) {
  .game-content dialog {
    background-color: #0d0c0c;
  }
}
.game-content .choose-w-or-b label {
  position: relative;
  height: 80px;
  width: 80px;
  border-radius: 100%;
  background-color: rgba(255, 255, 255, 0.571);
}
.game-content .choose-w-or-b label img {
  height: 70%;
  width: 70%;
  opacity: 0.1;
  margin: auto;
}
.game-content .choose-w-or-b label input {
  position: absolute;
  z-index: -1;
  width: 0;
  height: 0;
}
.game-content .choose-w-or-b label .side-choosed {
  opacity: 0.1;
}
.game-content .choose-w-or-b label input:checked + .side-choosed {
  opacity: 1;
}

#chess-info-panel {
  max-width: 600px;
  justify-content: flex-start !important;
}

#chess-info-panel > div {
  background-color: rgba(246, 246, 246, 0);
}

#chess-info-panel > div > div > div {
  border-radius: 0.3rem;
  padding: 3px 5px;
}

#chess-info-panel > div > div > div > div:nth-of-type(2),
#chess-info-panel > div > div > div:nth-of-type(2) {
  font-size: 0.8rem;
  word-wrap: break-word;
}

.chess-info-panel-btn {
  margin-top: auto;
  font-size: 0.8rem;
  padding: 3px 5px;
  border-radius: 0.3rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 20px;
  position: relative;
  align-items: normal;
}

.chess-info-panel-btn img {
  filter: grayscale(70%);
  transition: filter 0.2s ease-in-out;
  margin: auto;
}

.chess-info-panel-btn:hover {
  filter: grayscale(0%);
  transition: filter 0.2s ease-in-out;
}

@media (prefers-color-scheme: dark) {
  #chess-info-panel > div > div > div {
    background-color: rgb(0, 0, 0);
  }
  #chess-info-panel > div > div > div > div:nth-of-type(2),
  #chess-info-panel > div > div > div:nth-of-type(2) {
    color: #ffffff;
  }
  .player-side-icon {
    box-shadow: 0 2px 3px 1px rgb(0, 0, 0) !important;
  }
  #chess-info-panel > div > div > div > div:nth-of-type(1),
  #chess-info-panel > div > div > div:nth-of-type(1) {
    font-size: 0.8rem;
    color: #949494;
    margin-right: 3px;
    position: relative;
  }
}
@media (prefers-color-scheme: light) {
  #chess-info-panel > div > div {
    background-color: rgba(255, 255, 255, 0.497);
  }
  #chess-info-panel > div > div > div {
    background-color: rgba(240, 240, 240, 0.497);
  }
  #chess-info-panel > div > div > div > div:nth-of-type(2),
  #chess-info-panel > div > div > div:nth-of-type(2) {
    color: #000000;
  }
  .player-side-icon {
    box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.212) !important;
  }
  #chess-info-panel > div > div > div > div:nth-of-type(1),
  #chess-info-panel > div > div > div:nth-of-type(1) {
    font-size: 0.8rem;
    color: #333;
    margin-right: 3px;
    position: relative;
  }
}
.chess-info-panel-fen-data {
  -webkit-user-select: text !important;
     -moz-user-select: text !important;
          user-select: text !important;
}

.promote-btn {
  -webkit-backdrop-filter: blur(1px);
          backdrop-filter: blur(1px);
  border-radius: 0.5rem;
  padding: 10px;
  position: relative;
}
.promote-btn::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
.promote-btn:hover > svg, .promote-btn:hover > img, .promote-btn:hover > canvas {
  transform: scale(1.2);
  transition: all 0.1s ease-in-out;
}

.promote-btn > svg,
.promote-btn > img,
.promote-btn > canvas {
  transition: all 0.1s ease-in-out;
  width: 100%;
}

#stockfish-label-block.disabled {
  opacity: 0.2;
}

.chessboard > div div {
  transform: rotate(0deg);
  transition: all 0.5s ease-in-out;
}
.chessboard.rotate {
  transform: rotate(180deg);
}
.chessboard.rotate > div div {
  transform: rotate(180deg);
  transition: all 0.5s ease-in-out;
}

label[for=stockfish-btn-id] {
  text-align: center;
}

label[for=stockfish-btn-id]::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 5;
  left: 0;
  top: 0;
}

label[for=stockfish-btn-id]::before {
  display: none;
}

#promotion-dialog-popup {
  position: absolute;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  background-color: rgba(0, 0, 0, 0.3333333333) !important;
  width: 100%;
  height: 100%;
  z-index: 2000;
  border: none;
  border-radius: 0.2rem;
}

@media screen and (orientation: landscape) and (max-width: 860px) {
  .game-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) {
    display: none;
  }
  .game-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(2),
  .game-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(3),
  .game-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(4),
  .game-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(5) {
    display: none;
  }
}
#captured-pieces > div {
  display: flex;
  flex-wrap: wrap;
}
#captured-pieces > div > span {
  position: relative;
  display: flex;
  align-self: center;
}
#captured-pieces > div > span > canvas,
#captured-pieces > div > span > img,
#captured-pieces > div > span > svg {
  height: 18px;
  position: relative;
}
#captured-pieces > div > span::after {
  content: "x" attr(data-count);
  font-size: 0.6rem;
  order: 2;
}

div.head-panel-state.check {
  background-color: yellow !important;
  color: black !important;
}

div.head-panel-state.stalemate {
  background-color: rgb(0, 123, 255) !important;
  color: rgb(255, 255, 255) !important;
}

div.head-panel-state.draw {
  background-color: rgb(106, 0, 255) !important;
  color: rgb(255, 255, 255) !important;
}

div.head-panel-state.checkmate {
  background-color: red !important;
  color: rgb(255, 255, 255) !important;
}

#san-box {
  overflow: auto;
  word-break: break-all;
  max-height: 220px;
}

.score-white,
.score-black {
  font-size: 0.8rem !important;
}

.learning-content figure {
  margin: 0;
}
.learning-content div.player-icon {
  opacity: 0.1;
}
.learning-content .player-icon.active {
  opacity: 1;
}

#chess-info-panel {
  max-width: 600px;
  justify-content: flex-start !important;
}

#chess-info-panel > div {
  background-color: rgba(246, 246, 246, 0);
}

#chess-info-panel > div > div > div {
  border-radius: 0.3rem;
  padding: 3px 5px;
}

#chess-info-panel > div > div > div > div:nth-of-type(2),
#chess-info-panel > div > div > div:nth-of-type(2) {
  font-size: 0.8rem;
  word-wrap: break-word;
}

.chess-info-panel-btn {
  margin-top: auto;
  font-size: 0.8rem;
  padding: 3px 5px;
  border-radius: 0.3rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  min-height: 20px;
  position: relative;
  align-items: normal;
}

.chess-info-panel-btn img {
  filter: grayscale(70%);
  transition: filter 0.2s ease-in-out;
  margin: auto;
}

.chess-info-panel-btn:hover {
  filter: grayscale(0%);
  transition: filter 0.2s ease-in-out;
}

@media (prefers-color-scheme: dark) {
  #chess-info-panel > div > div > div {
    background-color: rgb(0, 0, 0);
  }
  #chess-info-panel > div > div > div > div:nth-of-type(2),
  #chess-info-panel > div > div > div:nth-of-type(2) {
    color: #ffffff;
  }
  .player-side-icon {
    box-shadow: 0 2px 3px 1px rgb(0, 0, 0) !important;
    color: black;
  }
  #chess-info-panel > div > div > div > div:nth-of-type(1),
  #chess-info-panel > div > div > div:nth-of-type(1) {
    font-size: 0.8rem;
    color: #949494;
    margin-right: 3px;
    position: relative;
  }
}
@media (prefers-color-scheme: light) {
  #chess-info-panel > div > div {
    background-color: rgba(255, 255, 255, 0.497);
  }
  #chess-info-panel > div > div > div {
    background-color: rgba(240, 240, 240, 0.497);
  }
  #chess-info-panel > div > div > div > div:nth-of-type(2),
  #chess-info-panel > div > div > div:nth-of-type(2) {
    color: #000000;
  }
  .player-side-icon {
    box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.212) !important;
  }
  #chess-info-panel > div > div > div > div:nth-of-type(1),
  #chess-info-panel > div > div > div:nth-of-type(1) {
    font-size: 0.8rem;
    color: #333;
    margin-right: 3px;
    position: relative;
  }
}
.chess-info-panel-fen-data {
  -webkit-user-select: text !important;
     -moz-user-select: text !important;
          user-select: text !important;
}

.promote-btn {
  -webkit-backdrop-filter: blur(1px);
          backdrop-filter: blur(1px);
  border-radius: 0.5rem;
  padding: 10px;
  position: relative;
}
.promote-btn::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
.promote-btn:hover > svg, .promote-btn:hover > img, .promote-btn:hover > canvas {
  transform: scale(1.2);
  transition: all 0.1s ease-in-out;
}

.promote-btn > svg,
.promote-btn > img,
.promote-btn > canvas {
  transition: all 0.1s ease-in-out;
  width: 100%;
}

#stockfish-label-block.disabled {
  opacity: 0.2;
}

.chessboard > div div {
  transform: rotate(0deg);
  transition: all 0.5s ease-in-out;
}
.chessboard.rotate {
  transform: rotate(180deg);
}
.chessboard.rotate > div div {
  transform: rotate(180deg);
  transition: all 0.5s ease-in-out;
}

label[for=stockfish-btn-id] {
  text-align: center;
}

label[for=stockfish-btn-id]::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 5;
  left: 0;
  top: 0;
}

label[for=stockfish-btn-id]::before {
  display: none;
}

#promotion-dialog-popup {
  position: absolute;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  background-color: rgba(0, 0, 0, 0.3333333333) !important;
  width: 100%;
  height: 100%;
  z-index: 2000;
  border: none;
  border-radius: 0.2rem;
}

@media screen and (orientation: landscape) and (max-width: 860px) {
  .learning-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) {
    display: none;
  }
  .learning-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(2),
  .learning-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(3),
  .learning-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(4),
  .learning-content #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(5) {
    display: none;
  }
}
#captured-pieces > div {
  display: flex;
  flex-wrap: wrap;
}
#captured-pieces > div > span {
  position: relative;
  display: flex;
  align-self: center;
}
#captured-pieces > div > span > canvas,
#captured-pieces > div > span > img,
#captured-pieces > div > span > svg {
  height: 18px;
  position: relative;
}
#captured-pieces > div > span::after {
  content: "x" attr(data-count);
  font-size: 0.6rem;
  order: 2;
}

div.head-panel-state.check {
  background-color: yellow !important;
  color: black !important;
}

div.head-panel-state.stalemate {
  background-color: rgb(0, 123, 255) !important;
  color: rgb(255, 255, 255) !important;
}

div.head-panel-state.draw {
  background-color: rgb(106, 0, 255) !important;
  color: rgb(255, 255, 255) !important;
}

div.head-panel-state.checkmate {
  background-color: red !important;
  color: rgb(255, 255, 255) !important;
}

.score-white,
.score-black {
  font-size: 0.8rem !important;
}

.setting-content {
  margin-top: 10px !important;
}
@media (prefers-color-scheme: dark) {
  .setting-content .pallet-board,
  .setting-content .pallet-piece,
  .setting-content .pallet-collection {
    background-color: rgba(103, 103, 103, 0.3215686275);
  }
}
@media (prefers-color-scheme: light) {
  .setting-content .pallet-board,
  .setting-content .pallet-piece,
  .setting-content .pallet-collection {
    background-color: rgba(226, 226, 226, 0.2039215686);
  }
}
.setting-content .pallet-board,
.setting-content .pallet-piece,
.setting-content .pallet-collection {
  padding: 8px;
}
.setting-content .pallet-board div,
.setting-content .pallet-piece div,
.setting-content .pallet-collection div {
  opacity: 0.2;
  transition: opacity 0.2s ease-in-out;
  position: relative;
}
.setting-content .pallet-board div:before,
.setting-content .pallet-piece div:before,
.setting-content .pallet-collection div:before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.setting-content .pallet-board div:hover,
.setting-content .pallet-piece div:hover,
.setting-content .pallet-collection div:hover {
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}
.setting-content .pallet-board div.active,
.setting-content .pallet-piece div.active,
.setting-content .pallet-collection div.active {
  opacity: 1;
}
.setting-content .pallet-board div {
  box-shadow: 0 0 2px 1px #333;
}
.setting-content .pallet-piece div {
  width: 40px;
  height: 40px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
.setting-content .pallet-piece div span {
  height: 100% !important;
  width: 50% !important;
  display: block;
  margin: auto;
  overflow: hidden;
  position: relative;
}
.setting-content .pallet-piece div span > svg {
  height: 100% !important;
  width: 200% !important;
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.9));
}
.setting-content .pallet-piece div span:nth-of-type(2) > svg {
  position: absolute;
  right: 0;
}
.setting-content .pallet-collection {
  flex-direction: column;
  max-width: 400px;
}
.setting-content .pallet-collection div {
  width: -moz-fit-content;
  width: fit-content;
  height: 40px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  overflow: hidden;
}
.setting-content .pallet-collection div::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 10;
}
.setting-content .pallet-collection div span {
  height: 100% !important;
  width: 50% !important;
  display: block;
  margin: auto;
  overflow: hidden;
  position: relative;
}
.setting-content .pallet-collection div span > svg {
  height: 100% !important;
  width: 200% !important;
  filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.9));
}
.setting-content .pallet-collection div span:nth-of-type(2) > svg {
  position: absolute;
  right: 0;
}

.switch-wrapper .switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 26px;
}
.switch-wrapper .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-wrapper .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
  border-radius: 0.5rem;
  background-color: rgba(216, 216, 216, 0.854);
  box-shadow: inset 0 0 2px 2px #939393;
}
.switch-wrapper .switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 34px;
  display: block;
  top: 0.2rem;
  left: 0.2rem;
  transition: 0.4s;
  border-radius: 0.3rem;
  margin: auto 0;
  outline: none;
  background-color: #999999;
  box-shadow: 0 0 3px 1px #666666;
  border: 1px solid #666666;
}
.switch-wrapper .switch input:checked + .slider {
  background-color: #21f34b;
  box-shadow: inset 0 0 2px 1px #626262;
}
.switch-wrapper .switch input:checked + .slider:before {
  transform: translateX(40px);
}
.switch-wrapper#prefer-color-wrapper .switch {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 40px;
}
.switch-wrapper#prefer-color-wrapper .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-wrapper#prefer-color-wrapper .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transition: 0.4s;
  border-radius: 0.5rem;
  background-color: #000000;
}
.switch-wrapper#prefer-color-wrapper .switch .slider:before {
  position: absolute;
  content: "";
  background-image: url("./../assets/images/piece.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 27px;
  height: 34px;
  width: 34px;
  display: block;
  top: 0.2rem;
  left: 0.2rem;
  transition: 0.4s;
  border-radius: 0.3rem;
  margin: auto 0;
  outline: none;
  background-color: #ffffff;
  border: 1px solid #666666;
}
.switch-wrapper#prefer-color-wrapper .switch input:checked + .slider {
  background-color: #ffffff;
}
.switch-wrapper#prefer-color-wrapper .switch input:checked + .slider:before {
  background-color: #000000;
  background-image: url("./../assets/images/piece-dark.png");
  transform: translateX(40px);
}

.switch::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  right: 0;
  top: 0;
}

.current-board-display {
  position: relative;
}
.current-board-display .current-piece-display {
  height: 100%;
  width: 100%;
  display: flex;
}
.current-board-display .current-piece-display > span {
  height: 90%;
  width: 90%;
  display: flex;
  margin: auto;
}
.current-board-display .current-piece-display > span img,
.current-board-display .current-piece-display > span svg,
.current-board-display .current-piece-display > span canvas {
  height: 100% !important;
  width: 100% !important;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.482));
}

.ranking-content .ranking-box {
  display: flex;
  flex-direction: column;
}
.ranking-content .ranking-box .ranking-head {
  display: flex;
}
.ranking-content .ranking-box .ranking-head #avatar-won-icon {
  display: block;
  background-image: url("./../assets/images/win-game.png");
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
@media (prefers-color-scheme: dark) {
  .ranking-content .ranking-box .ranking-head #avatar-won-icon {
    background-image: url("./../assets/images/win-game-dark.png");
  }
}
.ranking-content .ranking-box .ranking-head #avatar-lose-icon {
  display: block;
  background-image: url("./../assets/images/lose-game.png");
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
@media (prefers-color-scheme: dark) {
  .ranking-content .ranking-box .ranking-head #avatar-lose-icon {
    background-image: url("./../assets/images/lose-game-dark.png");
  }
}
.ranking-content .ranking-box .ranking-head #avatar-draw-icon {
  display: block;
  background-image: url("./../assets/images/draw-game.png");
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
@media (prefers-color-scheme: dark) {
  .ranking-content .ranking-box .ranking-head #avatar-draw-icon {
    background-image: url("./../assets/images/draw-game-dark.png");
  }
}
.ranking-content .ranking-box .ranking-main {
  max-height: 300px;
}
.ranking-content .ranking-box .ranking-main span {
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  font-size: 0.8rem;
}

#my-rank-chart {
  z-index: 5;
}

#my-score-text-in-diagram {
  font-size: 0.9rem !important;
}

.account-content > div:nth-of-type(1) > div:nth-of-type(2) {
  background-color: rgba(156, 156, 156, 0.054);
  padding: 10px;
}

.avatar-panel > div {
  display: flex;
  flex-direction: column;
  background-color: rgba(156, 156, 156, 0.054);
}
.avatar-panel > div form {
  order: 1;
  padding: 20px;
}
.avatar-panel > div {
  margin: 0 auto;
}
.avatar-panel figure {
  margin: 0 auto;
  border-radius: 100%;
  overflow: hidden;
  background-color: rgba(195, 195, 195, 0.16);
  max-width: 300px !important;
  max-height: 300px !important;
  min-width: 200px !important;
  min-height: 200px !important;
  width: 250px;
  height: 250px;
}
.avatar-panel figure img {
  max-width: 300px !important;
  max-height: 300px !important;
  width: 100%;
  height: 100%;
  border-radius: 100% !important;
}
.avatar-panel form {
  display: flex;
  flex-direction: column;
  width: -moz-fit-content;
  width: fit-content;
  margin: 0 auto;
}
.avatar-panel form > label {
  border-radius: 0.2rem 0.2rem 0 0;
}
.avatar-panel form > button {
  border-radius: 0 0 0.2rem 0.2rem;
  padding: 5px !important;
}

@media (prefers-color-scheme: dark) {
  .avatar-panel form > button {
    color: white !important;
    background-color: rgba(47, 255, 189, 0.242);
  }
  .avatar-panel form > button:hover, .avatar-panel form > button:focus {
    background-color: rgba(35, 215, 158, 0.411);
  }
  button[name=get],
  button[name=change],
  button[name=destroy] {
    color: white !important;
  }
  button[name=get] {
    background-color: rgba(130, 47, 255, 0.242);
  }
  button[name=get]:hover, button[name=get]:focus {
    background-color: rgba(130, 47, 255, 0.364);
  }
  button[name=change] {
    background-color: rgba(47, 255, 245, 0.242);
  }
  button[name=change]:hover, button[name=change]:focus {
    background-color: rgba(47, 255, 245, 0.411);
  }
  button[name=destroy] {
    background-color: rgba(255, 47, 47, 0.242);
  }
  button[name=destroy]:hover, button[name=destroy]:focus {
    background-color: rgba(215, 35, 35, 0.411);
  }
  button[value=cancel] {
    background-color: rgba(192, 192, 192, 0.242);
  }
  button[value=cancel]:hover, button[value=cancel]:focus {
    background-color: rgba(163, 163, 163, 0.411);
  }
  button[value=stop] {
    background-color: rgba(48, 186, 255, 0.242);
  }
  button[value=stop]:hover, button[value=stop]:focus {
    background-color: rgba(17, 184, 255, 0.411);
  }
}
@media (prefers-color-scheme: light) {
  .avatar-panel form > button {
    color: #333 !important;
    background-color: rgba(47, 255, 189, 0.242);
  }
  .avatar-panel form > button:hover, .avatar-panel form > button:focus {
    background-color: rgba(35, 215, 158, 0.411);
  }
  button[name=get],
  button[name=change],
  button[name=destroy] {
    color: #333 !important;
  }
  button[name=get] {
    background-color: rgba(130, 47, 255, 0.242);
  }
  button[name=get]:hover, button[name=get]:focus {
    background-color: rgba(130, 47, 255, 0.364);
  }
  button[name=change] {
    background-color: rgba(47, 255, 245, 0.242);
  }
  button[name=change]:hover, button[name=change]:focus {
    background-color: rgba(47, 255, 245, 0.411);
  }
  button[name=destroy] {
    background-color: rgba(255, 47, 47, 0.242);
  }
  button[name=destroy]:hover, button[name=destroy]:focus {
    background-color: rgba(215, 35, 35, 0.411);
  }
  button[value=cancel] {
    background-color: rgba(192, 192, 192, 0.242);
  }
  button[value=cancel]:hover, button[value=cancel]:focus {
    background-color: rgba(163, 163, 163, 0.411);
  }
  button[value=stop] {
    background-color: rgba(48, 186, 255, 0.242);
  }
  button[value=stop]:hover, button[value=stop]:focus {
    background-color: rgba(17, 184, 255, 0.411);
  }
}
.tournament-content {
  font-size: 0.8rem;
  position: relative;
}
.tournament-content .tree-map-tabs {
  position: sticky;
  top: 0;
  z-index: 1000;
}
@media (orientation: portrait) {
  .tournament-content .tree-map-tabs {
    top: 40px;
  }
}
@media (prefers-color-scheme: dark) {
  .tournament-content {
    background-color: #222;
  }
  .tournament-content .tree-map-tabs {
    background-color: #222;
  }
}
@media (prefers-color-scheme: light) {
  .tournament-content {
    background-color: #fbfbfb;
  }
  .tournament-content .tree-map-tabs {
    background-color: #fbfbfb;
  }
}
.tournament-content svg {
  height: 100% !important;
}
.tournament-content svg > g image {
  transition: 0.2s ease-in-out all;
  pointer-events: bounding-box;
}
.tournament-content svg > g line {
  z-index: 0;
}
.tournament-content svg > g image:focus,
.tournament-content svg > g image:hover {
  fill: red;
  transition: 0.1s ease-in-out all;
  pointer-events: bounding-box;
}
.tournament-content svg:nth-of-type(2) {
  filter: drop-shadow(0 0 1px rgb(0, 0, 0));
}
@media (orientation: portrait) {
  .tournament-content .tree-map-contents {
    width: 100%;
    gap: 40px;
    flex-wrap: wrap-reverse !important;
    align-content: flex-end;
  }
  .tournament-content .tree-map-contents-row {
    width: 100% !important;
  }
  .tournament-content .tree-map-contents-row-group {
    gap: 10px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
  }
  .tournament-content .tree-map-contents-row-group-part {
    width: 25% !important;
    position: relative;
  }
  .tournament-content .tree-map-contents-row-group-part-col {
    padding: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) {
    width: 100% !important;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group {
    gap: 10px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part {
    width: 25% !important;
    position: relative;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part-col {
    padding: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(1)::before {
    position: absolute;
    display: block;
    content: "";
    width: 70%;
    height: 25%;
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    bottom: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(2)::before {
    position: absolute;
    display: block;
    content: "";
    width: 70%;
    height: 25%;
    right: 50%;
    border-right: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    bottom: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(3)::before {
    position: absolute;
    display: block;
    content: "";
    width: 70%;
    height: 25%;
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    bottom: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(4)::before {
    position: absolute;
    display: block;
    content: "";
    width: 70%;
    height: 25%;
    right: 50%;
    border-right: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    bottom: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) {
    width: 100% !important;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group {
    gap: 10px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part {
    width: 25% !important;
    position: relative;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part-col {
    padding: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(1)::before {
    position: absolute;
    display: block;
    content: "";
    width: 70%;
    height: calc(40% + 0.5px);
    right: 50%;
    border-right: 1px solid rgb(189, 189, 189);
    border-bottom: 1px solid rgb(189, 189, 189);
    top: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(1)::after {
    position: absolute;
    display: block;
    content: "";
    width: 70%;
    height: 25%;
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    bottom: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(2)::before {
    position: absolute;
    display: block;
    content: "";
    width: 50%;
    height: calc(40% + 0.5px);
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    border-bottom: 1px solid rgb(189, 189, 189);
    top: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(2)::after {
    position: absolute;
    display: block;
    content: "";
    width: 70%;
    height: 25%;
    right: 50%;
    border-right: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    bottom: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(3) {
    width: 100% !important;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(3) .tree-map-contents-row-group {
    gap: 10px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(3) .tree-map-contents-row-group-part {
    width: 25% !important;
    position: relative;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(3) .tree-map-contents-row-group-part-col {
    padding: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(3) .tree-map-contents-row-group-part:nth-of-type(1)::before {
    position: absolute;
    display: block;
    content: "";
    width: 0%;
    height: 40%;
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    border-bottom: 1px solid rgb(189, 189, 189);
    top: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(3) .tree-map-contents-row-group-part:nth-of-type(1)::after {
    position: absolute;
    display: block;
    content: "";
    width: 0%;
    height: 40%;
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    border-bottom: 1px solid rgb(189, 189, 189);
    bottom: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(4) {
    width: 100% !important;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(4) .tree-map-contents-row-group {
    gap: 10px;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(4) .tree-map-contents-row-group-part {
    width: 25% !important;
    position: relative;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(4) .tree-map-contents-row-group-part-col {
    padding: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(4) .tree-map-contents-row-group-part:nth-of-type(1)::before {
    position: absolute;
    display: block;
    content: "";
    width: 0%;
    height: 70%;
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    top: 100%;
  }
}
@media (orientation: landscape) {
  .tournament-content .tree-map-contents {
    width: 100%;
  }
  .tournament-content .tree-map-contents-row {
    width: calc(25% - 40px) !important;
  }
  .tournament-content .tree-map-contents-row-group {
    gap: 40px;
    padding: 0 20px;
  }
  .tournament-content .tree-map-contents-row-group-part {
    width: 100%;
    position: relative;
  }
  .tournament-content .tree-map-contents-row-group-part-col {
    padding: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part::before, .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part::before {
    position: absolute;
    display: block;
    content: "";
    width: calc(50% + 20px);
    height: 25%;
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    border-bottom: 1px solid rgb(189, 189, 189);
    top: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(1)::after, .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(1)::after {
    position: absolute;
    display: block;
    content: "";
    width: 60px;
    height: 84%;
    left: calc(100% + 19px);
    border-left: 1px solid rgb(189, 189, 189);
    top: calc(50% + 4px);
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(3)::after, .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(3)::after {
    position: absolute;
    display: block;
    content: "";
    width: 60px;
    height: 100%;
    left: calc(100% + 19px);
    border-left: 1px solid rgb(189, 189, 189);
    top: calc(50% + 4px);
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(2)::after, .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(4)::after, .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(2)::after, .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(4)::after {
    position: absolute;
    display: block;
    content: "";
    width: 60px;
    height: 150%;
    left: calc(100% + 19px);
    border-left: 1px solid rgb(189, 189, 189);
    bottom: -16px;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(1)::after, .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(3)::after {
    position: absolute;
    display: block;
    content: "";
    width: 60px;
    height: 100%;
    left: calc(100% + 19px);
    border-left: 1px solid rgb(189, 189, 189);
    top: calc(100% + 15px);
  }
  .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(2)::after, .tournament-content .tree-map-contents-row:nth-of-type(1) .tree-map-contents-row-group-part:nth-of-type(4)::after {
    position: absolute;
    display: block;
    content: "";
    width: 60px;
    height: 150%;
    left: calc(100% + 19px);
    border-left: 1px solid rgb(189, 189, 189);
    bottom: -16px;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(1) .tree-map-contents-row-group-part-col:nth-of-type(1)::before {
    position: absolute;
    display: block;
    content: "";
    width: calc(50% + 20px);
    height: 25%;
    left: calc(0% - 20px);
    border-right: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    top: -25%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group-part:nth-of-type(2) .tree-map-contents-row-group-part-col:nth-of-type(1)::before {
    position: absolute;
    display: block;
    content: "";
    width: calc(50% + 20px);
    height: 25%;
    left: calc(0% - 20px);
    border-right: 1px solid rgb(189, 189, 189);
    border-bottom: 1px solid rgb(189, 189, 189);
    bottom: -25%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group .tree-map-contents-row-group-part:nth-of-type(2)::before {
    position: absolute;
    display: block;
    content: "";
    width: calc(50% + 20px);
    height: 25%;
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    border-bottom: none;
    top: -25% !important;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(2) .tree-map-contents-row-group .tree-map-contents-row-group-part:nth-of-type(2)::after {
    display: none;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(3) .tree-map-contents-row-group-part-col:nth-of-type(1)::before {
    position: absolute;
    display: block;
    content: "";
    width: calc(50% + 20px);
    height: 25%;
    left: calc(0% - 20px);
    border-right: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    top: -25%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(3) .tree-map-contents-row-group-part::before {
    position: absolute;
    display: block;
    content: "";
    width: calc(50% + 20px);
    height: 25%;
    left: 50%;
    border-left: 1px solid rgb(189, 189, 189);
    border-bottom: 1px solid rgb(189, 189, 189);
    top: 100%;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(3) .tree-map-contents-row-group-part:nth-of-type(1)::after {
    position: absolute;
    display: block;
    content: "";
    width: 60px;
    height: calc(100% + 16px);
    left: calc(100% + 19px);
    border-left: 1px solid rgb(189, 189, 189);
    top: 0;
  }
  .tournament-content .tree-map-contents-row:nth-of-type(4) .tree-map-contents-row-group-part::before {
    position: absolute;
    display: block;
    content: "";
    width: calc(50% + 20px);
    height: 50%;
    right: 50%;
    border-right: 1px solid rgb(189, 189, 189);
    border-top: 1px solid rgb(189, 189, 189);
    bottom: 100%;
  }
}

.friends-content-frame-tab button {
  background-color: transparent;
  color: rgb(94, 94, 94);
  opacity: 0.5;
}
.friends-content-frame-tab button.active {
  background-color: #0d0c0c;
  color: white;
  opacity: 1;
}
@media (prefers-color-scheme: light) {
  .friends-content-frame-tab button.active {
    background-color: rgb(255, 255, 255);
    color: #0d0c0c;
  }
}
.friends-content-frame-content > div.online,
.friends-content-frame-content > div.offline {
  position: relative;
  height: -moz-fit-content;
  height: fit-content;
}
.friends-content-frame-content > div.online::before,
.friends-content-frame-content > div.offline::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 5px;
  height: 5px;
  margin: 3px;
  display: block;
  background-color: aquamarine;
}
.friends-content-frame-content > div.offline {
  position: relative;
  height: -moz-fit-content;
  height: fit-content;
}
.friends-content-frame-content > div.offline::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "";
  width: 5px;
  height: 5px;
  margin: 3px;
  display: block;
  opacity: 0.2;
  background-color: rgb(225, 241, 236);
}
.friends-content-frame-content.active {
  background-color: #0d0c0c;
  z-index: 1;
  position: relative;
}
.friends-content-frame-content.active span {
  word-wrap: break-word;
  font-size: 0.8rem !important;
}
.friends-content-frame-content.active .btn-sm {
  font-size: 0.8rem !important;
  text-overflow: ellipsis;
  overflow: hidden;
}
@media (prefers-color-scheme: light) {
  .friends-content-frame-content.active {
    background-color: rgb(255, 255, 255);
  }
}

.live-content {
  height: 100%;
}
.live-content > div.live-search-head {
  z-index: 10 !important;
}
@media (prefers-color-scheme: dark) {
  .live-content > div.live-search-head {
    background-color: #161616 !important;
  }
}
@media (prefers-color-scheme: light) {
  .live-content > div.live-search-head {
    background-color: #ffffff !important;
  }
}
.live-content .chessboard-live-block {
  transition: transform ease-in-out 0.2s;
  text-decoration: none !important;
}
.live-content .chessboard-live-block > span {
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: bold;
  text-transform: uppercase;
  width: 100%;
  display: block;
}
.live-content .chessboard-live-block > span > span.game-user-email {
  opacity: 0;
}
.live-content .chessboard-live-block > span > span.game-user-email:hover, .live-content .chessboard-live-block > span > span.game-user-email:focus {
  opacity: 1;
}
.live-content .chessboard-live-block > div.live-board-frame {
  box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.509);
  border-radius: 0.3rem;
  position: relative;
}
.live-content .chessboard-live-block:hover, .live-content .chessboard-live-block:focus {
  outline: none;
  transform: scale(1.03);
  transition: transform ease-in-out 0.2s;
  color: inherit !important;
}
.live-content .chessboard-live-block:hover > div, .live-content .chessboard-live-block:focus > div {
  box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.737);
}
.live-content .live-board-target-frame {
  width: 100%;
  border-radius: 0.3rem;
  position: relative;
}
.live-content .chess-info-panel {
  background-color: red;
}
.live-content .chess-info-panel-state-data {
  color: inherit;
  font-weight: bold;
  text-shadow: 0 0 4px black;
}
.live-content .chess-info-panel-state-data.check {
  color: yellow;
}
.live-content .chess-info-panel-state-data.draw {
  color: rgb(132, 0, 255);
}
.live-content .chess-info-panel-state-data.stalemate {
  color: blue;
}
.live-content .chess-info-panel-state-data.checkmate {
  color: red;
}

@media (prefers-color-scheme: dark) {
  #chess-info-panel > div > div > div {
    background-color: rgb(0, 0, 0);
  }
  #chess-info-panel > div > div > div > div:nth-of-type(2),
  #chess-info-panel > div > div > div:nth-of-type(2) {
    color: #ffffff;
  }
  .player-side-icon {
    box-shadow: 0 2px 3px 1px rgb(0, 0, 0) !important;
    color: black;
  }
  #chess-info-panel > div > div > div > div:nth-of-type(1),
  #chess-info-panel > div > div > div:nth-of-type(1) {
    font-size: 0.8rem;
    color: #949494;
    position: relative;
  }
}
@media (prefers-color-scheme: light) {
  #chess-info-panel > div > div {
    background-color: rgba(255, 255, 255, 0.497);
  }
  #chess-info-panel > div > div > div {
    background-color: rgba(240, 240, 240, 0.497);
  }
  #chess-info-panel > div > div > div > div:nth-of-type(2),
  #chess-info-panel > div > div > div:nth-of-type(2) {
    color: #000000;
  }
  .player-side-icon {
    box-shadow: 0 2px 3px 1px rgba(0, 0, 0, 0.212) !important;
  }
  #chess-info-panel > div > div > div > div:nth-of-type(1),
  #chess-info-panel > div > div > div:nth-of-type(1) {
    font-size: 0.8rem;
    color: #333;
    position: relative;
  }
}
.chess-info-panel-fen-data {
  word-break: break-all;
}

.statistic-content {
  margin: 0 auto;
  justify-content: center;
}
.statistic-content > div {
  max-width: 800px;
  max-height: 500px;
}
.statistic-content > div > h1 {
  font-weight: bold;
  color: #000;
  text-align: center;
  padding: 10px;
  margin: 20px 0;
}
@media (prefers-color-scheme: dark) {
  .statistic-content > div > h1 {
    color: #fff;
  }
}
.statistic-content > div > div {
  gap: 5px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.statistic-content > div > div > label {
  font-size: 0.7rem;
  margin: 0 auto;
  display: flex;
  gap: 5px;
}
.statistic-content > div > div > label:first-of-type {
  margin: 0 0 0 auto;
}
.statistic-content > div > div > label:last-of-type {
  margin: 0 auto 0 0;
}
.statistic-content > div > div > label > span {
  font-size: 0.7rem;
  text-align: right;
  width: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.statistic-content > div > div > label > input {
  padding: 2px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  background-color: black;
  color: white;
  font-size: 0.7rem;
}
@media (prefers-color-scheme: dark) {
  .statistic-content > div > div > label > input {
    border: 1px solid transparent;
    background-color: black;
    color: white;
  }
}
.statistic-content > div > div > label > input ::-moz-placeholder {
  color: #333;
}
.statistic-content > div > div > label > input ::placeholder {
  color: #333;
}
@media (prefers-color-scheme: dark) {
  .statistic-content > div > div > label > input ::-moz-placeholder {
    color: #eee;
  }
  .statistic-content > div > div > label > input ::placeholder {
    color: #eee;
  }
}
.statistic-content > div > canvas {
  max-width: 800px;
  max-height: 300px;
}
@media (prefers-color-scheme: dark) {
  .statistic-content > div > canvas {
    filter: drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.9));
  }
}

.management-content #generated-pass-selection {
  -webkit-user-select: text !important;
     -moz-user-select: text !important;
          user-select: text !important;
  border-radius: 5px;
}

:root {
  color-scheme: dark light;
}

* {
  user-select: none;
  -ms-user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  font-family: ubuntu-mono-regular;
}

html {
  height: 100%;
  width: 100%;
}

body {
  min-height: 100vh;
  position: relative;
}
body .navigation > a#logout-btn {
  filter: grayscale(70);
}
body .navigation > a#logout-btn:hover, body .navigation > a#logout-btn:focus {
  filter: grayscale(0);
}

@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 1px rgba(255, 255, 255, 0);
  }
  ::-webkit-scrollbar-thumb {
    background-color: rgba(90, 90, 90, 0.3333333333);
    border-radius: 20rem;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: #5a5a5a;
  }
  body {
    background-color: #161616;
  }
  body > * {
    color: #eee;
  }
  body .navigation {
    background-color: #0d0c0c;
  }
  body a {
    color: #eee;
  }
  body .text-light {
    color: #eee !important;
  }
  body .text-secondary {
    font-size: 0.8rem !important;
  }
  body select.text-secondary {
    font-size: 0.8rem !important;
  }
  body div.row.border.search-block {
    border-color: rgba(77, 77, 77, 0.4) !important;
  }
  body span.text-secondary.search-block-title {
    color: #717171 !important;
    font-size: 0.7rem !important;
    text-align: left !important;
    display: block;
  }
  body span.text-secondary.search-block-title ~ span {
    color: #e5e5e5 !important;
    font-size: 0.8rem !important;
    text-align: left !important;
    display: block;
  }
  body span.text-secondary.search-block-title ~ span > button {
    font-size: 0.7rem !important;
    padding: 2px;
  }
  body select {
    background-color: #0d0c0c !important;
    border: 1px solid rgba(234, 234, 234, 0.1647058824) !important;
  }
  body input[type=text],
  body input[type=password] {
    background-color: #0d0c0c !important;
    border: 1px solid rgba(234, 234, 234, 0.1647058824) !important;
  }
  body input[type=text]:focus,
  body input[type=password]:focus {
    outline: 1px solid white;
  }
  body input[type=text]::-moz-placeholder, body input[type=password]::-moz-placeholder {
    color: rgb(55, 55, 55);
  }
  body input[type=text]::placeholder,
  body input[type=password]::placeholder {
    color: rgb(55, 55, 55);
  }
  body button {
    border: 1px solid rgba(234, 234, 234, 0) !important;
  }
  body button:hover, body button:focus {
    filter: brightness(120%);
  }
  #button-addon2 {
    background-color: #0d0c0c !important;
    border: 1px solid rgba(234, 234, 234, 0.1647058824) !important;
  }
  #button-addon2:hover, #button-addon2:focus {
    filter: brightness(120%) !important;
  }
  #result-block {
    background-color: #0e0d14;
  }
  #friend-block {
    border-color: rgba(231, 231, 231, 0.1333333333) !important;
  }
  #friend-block > div {
    background-color: rgba(10, 10, 10, 0.6196078431) !important;
  }
  #friend-block > div > a {
    opacity: 0.5 !important;
  }
  #friend-block > div > a:hover {
    opacity: 1 !important;
  }
}
@media (prefers-color-scheme: light) {
  ::-webkit-scrollbar {
    width: 3px;
    height: 3px;
  }
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 1px rgba(0, 0, 0, 0);
  }
  ::-webkit-scrollbar-thumb {
    background-color: rgba(51, 51, 51, 0.1333333333);
    border-radius: 20rem;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: #333333;
  }
  body {
    background-color: #ffffff;
  }
  body > * {
    color: #333;
  }
  body .navigation {
    background-color: #ffffff;
  }
  body a {
    color: #333;
  }
  body .text-light {
    color: #747474 !important;
  }
  body div.row.border.search-block {
    border-color: #929292;
  }
  body .text-secondary {
    font-size: 0.8rem !important;
  }
  body select.text-secondary {
    font-size: 0.8rem !important;
  }
  body span.text-secondary.search-block-title {
    color: #929292 !important;
    font-size: 0.7rem !important;
    display: block;
  }
  body span.text-secondary.search-block-title ~ span {
    color: #393939 !important;
    font-size: 0.8rem !important;
    display: block;
  }
  body span.text-secondary.search-block-title ~ span > button {
    font-size: 0.7rem !important;
    padding: 2px;
  }
  body select {
    background-color: #dfdfdf !important;
    border: 1px solid rgba(188, 188, 188, 0.6117647059) !important;
  }
  body input[type=text],
  body input[type=password] {
    background-color: #ededed !important;
    border: 1px solid rgba(188, 188, 188, 0.6117647059) !important;
  }
  body input[type=text]:focus,
  body input[type=password]:focus {
    outline: 1px solid rgb(0, 0, 0);
  }
  body input[type=text]::-moz-placeholder, body input[type=password]::-moz-placeholder {
    color: rgb(137, 137, 137);
  }
  body input[type=text]::placeholder,
  body input[type=password]::placeholder {
    color: rgb(137, 137, 137);
  }
  body button {
    border: 1px solid rgba(234, 234, 234, 0) !important;
  }
  body button:hover, body button:focus {
    filter: brightness(120%);
  }
  #button-addon2 {
    background-color: rgba(188, 188, 188, 0.3333333333) !important;
    border: 1px solid rgba(188, 188, 188, 0.6117647059) !important;
  }
  #button-addon2:hover, #button-addon2:focus {
    background-color: rgba(188, 188, 188, 0.6117647059) !important;
  }
  #result-block {
    background-color: #fdfdfd;
  }
  #friend-block {
    border-color: rgba(130, 130, 130, 0.1333333333) !important;
  }
  #friend-block > div {
    background-color: rgba(232, 232, 232, 0.6196078431) !important;
  }
  #friend-block > div > a {
    opacity: 0.5 !important;
  }
  #friend-block > div > a:hover {
    opacity: 1 !important;
  }
}
@media (orientation: landscape) {
  body {
    flex-direction: row !important;
  }
  body form[id=login-form] {
    padding: 0 calc(env(safe-area-inset-right) + 10px) 0 calc(env(safe-area-inset-left) + 10px) !important;
  }
  body > div.mt-5 {
    margin: auto !important;
  }
  body > div.main-frame {
    overflow: hidden;
    height: 100vh;
  }
  body div.main-frame-content {
    height: 100vh !important;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body #dashboard-panel #svg-frame-horizontal {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;
  }
  body #dashboard-panel #svg-frame-horizontal > svg {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    filter: grayscale(0.8) !important;
  }
  body #dashboard-panel #svg-frame-vertical {
    display: none !important;
  }
  body .search-head-box {
    position: sticky;
    top: 0;
    z-index: 1000;
  }
}
@media (orientation: portrait) {
  body {
    flex-direction: column !important;
  }
  body .navigation {
    position: sticky;
    top: 0;
    z-index: 3000;
    box-shadow: 0 0 5px 1px black;
  }
  body > div.m-auto {
    margin-bottom: 0 !important;
  }
  body > div > div {
    margin-bottom: 30px !important;
  }
  body > div > figure > img.my-3 {
    margin-bottom: 0 !important;
  }
  body > div.main-frame {
    height: 100vh;
  }
  body #svg-frame-horizontal {
    display: none !important;
  }
  body #svg-frame-vertical {
    display: block;
  }
  body .search-head-box {
    position: sticky;
    top: 44px;
    z-index: 1000;
  }
  #dashboard-filter-panel {
    height: 30px !important;
    position: sticky !important;
    padding: 5px !important;
    top: 0 !important;
    z-index: 2000;
  }
  #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(1) > div:nth-of-type(1) {
    display: none;
  }
  #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(2),
  #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(3),
  #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(4),
  #chess-info-panel > div:nth-of-type(2) > div:nth-of-type(5) {
    display: none;
  }
}
svg {
  display: block !important;
  height: 100vh !important;
  width: 100vw !important;
  min-height: 100% !important;
  min-width: 100% !important;
}

svg > a > g[continent=NA],
svg > a > g[continent=AN],
svg > a > g[continent=SA],
svg > a > g[continent=EU],
svg > a > g[continent=OC],
svg > a > g[continent=AF],
svg > a > g[continent=AS] {
  transition: all 0.2s ease-out !important;
  filter: grayscale(0.8) !important;
}

svg > a > g[continent=NA]:hover,
svg > a > g[continent=AN]:hover,
svg > a > g[continent=SA]:hover,
svg > a > g[continent=EU]:hover,
svg > a > g[continent=OC]:hover,
svg > a > g[continent=AF]:hover,
svg > a > g[continent=AS]:hover {
  transition: all 0.1s ease-in-out !important;
  filter: grayscale(0) !important;
}

select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  position: relative;
  padding: 0 4px !important;
  min-width: 50px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
}
@media (prefers-color-scheme: dark) {
  select {
    background-image: url("./../assets/images/down-dark.png");
  }
}
@media (prefers-color-scheme: light) {
  select {
    background-image: url("./../assets/images/down.png");
  }
}

@media (prefers-color-scheme: dark) {
  .search-head-box {
    background-color: #161616;
  }
}
@media (prefers-color-scheme: light) {
  .search-head-box {
    background-color: #ffffff;
  }
}

@media (orientation: portrait) {
  .search-head-box {
    position: sticky;
    top: 54px;
  }
}
.loading-spinner {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.loading-spinner > div {
  height: 20%;
  width: 20%;
  margin: auto;
  position: relative;
}
.loading-spinner > div::before {
  content: "";
  border-radius: 100%;
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  border: 1rem solid rgba(0, 0, 0, 0.397);
  box-shadow: inset 0 0 4px 1px black;
}
.loading-spinner > div::after {
  content: "";
  border-radius: 100%;
  width: 100%;
  height: 100%;
  border-right: 0.5rem solid rgb(0, 0, 0);
  display: block;
  position: absolute;
  box-shadow: 0 0 4px 1px black;
  animation-name: spinner;
  animation-duration: 0.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(360deg);
  }
}/*# sourceMappingURL=index.css.map */