html, .ninja-title {
  font-family: Noto Sans, sans-serif;
}

.mini-game__clock, .mini-game .rating, h1, h2, h3, h4 {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

.mini-game__player {
  text-shadow: 0 1px 0 var(--c-font-shadow);
}

.user-link, .mini-game {
  white-space: nowrap;
  overflow: hidden;
}

.mini-game .name {
  text-overflow: ellipsis;
  overflow: hidden;
}

.mini-board, .mini-game .cg-wrap, .main-board {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  display: block;
  position: relative;
}

.user-link .line, .is:before, [data-icon]:before, .is-after:after {
  vertical-align: middle;
  text-transform: none;
  speak: none;
  content: attr(data-icon);
  opacity: .9;
  unicode-bidi: isolate;
  font-family: lichess;
  font-size: 1.2em;
  font-style: normal;
  font-weight: normal;
}

.main-board .cg-wrap, cg-board {
  width: 100%;
  height: 100%;
  position: absolute;
}

.mini-game__user {
  flex-flow: row;
  align-items: center;
  display: flex;
}

.mini-game__player {
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

cg-board {
  border-radius: var(---ui-roundness, 7px);
  box-shadow: 0 2px 2px #00000014, 0 3px 1px -2px #0000002e, 0 1px 5px #0000001a;
}

html {
  min-height: 100%;
}

@media (prefers-reduced-motion: no-preference) and (min-height: 600px) {
  html :target {
    scroll-margin-top: calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap));
  }
}

*, :before, :after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, :before, :after {
    transition: none !important;
    animation: none !important;
  }
}

body {
  background: var(--c-bg-page) linear-gradient(to bottom, var(--c-body-gradient), var(--c-bg-page) 116px) no-repeat;
  color: var(--c-font);
  text-align: start;
  overflow-x: hidden;
}

body.fixed-scroll body {
  overflow-y: scroll;
}

a {
  color: var(--c-link);
  text-decoration: none;
}

a:hover, a:active, a:focus {
  color: var(--c-link-hover);
}

a:focus-visible {
  outline: 2px solid var(--c-primary);
  border-radius: var(---ui-roundness, 7px)/2;
}

button {
  appearance: none;
  color: var(--c-font);
  text-align: inherit;
  background: none;
  border: none;
}

p {
  unicode-bidi: plaintext;
  margin-bottom: 1em;
}

em {
  font-style: normal;
}

li {
  list-style: none;
}

time {
  opacity: .9;
  white-space: nowrap;
  unicode-bidi: plaintext;
  font-size: 90%;
}

hr {
  background: var(--c-border);
  border: 0;
  height: 1px;
  margin: 1.5rem 0;
}

small {
  font-size: .9em;
}

table, tbody, tfoot, thead, tr, th, td {
  font: inherit;
  vertical-align: middle;
  text-align: inherit;
  border: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

html {
  font-size: 12px;
}

@media (min-width: 300px) {
  html {
    font-size: calc(.222222vw + 11.3333px);
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 14px;
  }
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-size: 1em;
}

h1 {
  font-size: 19px;
}

@media (min-width: 300px) {
  h1 {
    font-size: calc(2.11111vw + 12.6667px);
  }
}

@media (min-width: 1200px) {
  h1 {
    font-size: 38px;
  }
}

h1 a {
  color: var(--c-link-dim);
}

h1 a:hover {
  color: var(--c-link);
}

h2 {
  font-size: 16px;
}

@media (min-width: 300px) {
  h2 {
    font-size: calc(1.55556vw + 11.3333px);
  }
}

@media (min-width: 1200px) {
  h2 {
    font-size: 30px;
  }
}

.monospace {
  font-family: monospace;
}

.ninja-title {
  font-size: 1em;
}

.is.text:before, .text[data-icon]:before {
  margin-inline: 0 .4em;
  line-height: 1;
}

.is-green:before {
  color: var(--c-good);
}

.is-red:before {
  color: var(--c-bad);
}

.is-gold:before {
  color: var(--c-brag);
}

html[dir="rtl"] [data-icon=""]:not(.no-mirror):before, html[dir="rtl"] [data-icon=""]:not(.no-mirror):before, html[dir="rtl"] [data-icon=""]:not(.no-mirror):before, html[dir="rtl"] [data-icon=""]:not(.no-mirror):before, html[dir="rtl"] [data-icon=""]:not(.no-mirror):before, html[dir="rtl"] [data-icon=""]:not(.no-mirror):before, html[dir="rtl"] [data-icon=""]:not(.no-mirror):before, html[dir="rtl"] [data-icon=""]:not(.no-mirror):before {
  display: inline-block;
  transform: scaleX(-1);
}

html[dir="rtl"] .force-ltr {
  text-align: left;
  direction: ltr;
}

body[data-board="blue"] .is2d cg-board:before {
  background-image: url("../hashed/blue.a313a2d1.png");
}

body[data-board="blue"] .is2d coords {
  ---cg-ccw: #dee3e6;
  ---cg-ccb: #788a94;
  ---cg-cs: none;
}

body[data-board="blue2"] .is2d cg-board:before {
  background-image: url("../hashed/blue2.47cec542.jpg");
}

body[data-board="blue2"] .is2d coords {
  ---cg-ccw: #97b2c7;
  ---cg-ccb: #546f82;
  ---cg-cs: none;
}

body[data-board="blue3"] .is2d cg-board:before {
  background-image: url("../hashed/blue3.8d4d0b74.jpg");
}

body[data-board="blue3"] .is2d coords {
  ---cg-ccw: #d9e0e6;
  ---cg-ccb: #315991;
  ---cg-cs: none;
}

body[data-board="blue-marble"] .is2d cg-board:before {
  background-image: url("../hashed/blue-marble.788bdb35.jpg");
}

body[data-board="blue-marble"] .is2d coords {
  ---cg-ccw: #eae6dd;
  ---cg-ccb: #7c7f87;
  ---cg-cs: none;
}

body[data-board="canvas"] .is2d cg-board:before {
  background-image: url("../hashed/canvas2.ea84ca54.jpg");
}

body[data-board="canvas"] .is2d coords {
  ---cg-ccw: #d7daeb;
  ---cg-ccb: #547388;
  ---cg-cs: none;
}

body[data-board="wood"] .is2d cg-board:before {
  background-image: url("../hashed/wood.6019d01e.jpg");
}

body[data-board="wood"] .is2d coords {
  ---cg-ccw: #d8a45b;
  ---cg-ccb: #9b4d0f;
  ---cg-cs: none;
}

body[data-board="wood2"] .is2d cg-board:before {
  background-image: url("../hashed/wood2.a4c209b4.jpg");
}

body[data-board="wood2"] .is2d coords {
  ---cg-ccw: #a38b5d;
  ---cg-ccb: #6c5017;
  ---cg-cs: none;
}

body[data-board="wood3"] .is2d cg-board:before {
  background-image: url("../hashed/wood3.05fc1c90.jpg");
}

body[data-board="wood3"] .is2d coords {
  ---cg-ccw: #d0ceca;
  ---cg-ccb: #755839;
  ---cg-cs: none;
}

body[data-board="wood4"] .is2d cg-board:before {
  background-image: url("../hashed/wood4.c6af7949.jpg");
}

body[data-board="wood4"] .is2d coords {
  ---cg-ccw: #caaf7d;
  ---cg-ccb: #7b5330;
  ---cg-cs: none;
}

body[data-board="maple"] .is2d cg-board:before {
  background-image: url("../hashed/maple.bb87290d.jpg");
}

body[data-board="maple"] .is2d coords {
  ---cg-ccw: #e8ceab;
  ---cg-ccb: #bc7944;
  ---cg-cs: none;
}

body[data-board="maple2"] .is2d cg-board:before {
  background-image: url("../hashed/maple2.916cc605.jpg");
}

body[data-board="maple2"] .is2d coords {
  ---cg-ccw: #e2c89f;
  ---cg-ccb: #963;
  ---cg-cs: none;
}

body[data-board="leather"] .is2d cg-board:before {
  background-image: url("../hashed/leather.c3c76e69.jpg");
}

body[data-board="leather"] .is2d coords {
  ---cg-ccw: #d1d1c9;
  ---cg-ccb: #c28e16;
  ---cg-cs: none;
}

body[data-board="green"] .is2d cg-board:before {
  background-image: url("../hashed/green.2f5abd91.png");
}

body[data-board="green"] .is2d coords {
  ---cg-ccw: #ffd;
  ---cg-ccb: #6d8753;
  ---cg-cs: none;
}

body[data-board="brown"] .is2d cg-board:before {
  background-image: url("../hashed/brown.d4a5fe34.png");
}

body[data-board="brown"] .is2d coords {
  ---cg-ccw: #f0d9b5;
  ---cg-ccb: #946f51;
  ---cg-cs: none;
}

body[data-board="pink"] .is2d cg-board:before {
  background-image: url("../hashed/pink-pyramid.36f586d8.png");
}

body[data-board="pink"] .is2d coords {
  ---cg-ccw: #e8e9b7;
  ---cg-ccb: #ed7272;
  ---cg-cs: none;
}

body[data-board="marble"] .is2d cg-board:before {
  background-image: url("../hashed/marble.1d855696.jpg");
}

body[data-board="marble"] .is2d coords {
  ---cg-ccw: #93ab91;
  ---cg-ccb: #4f644e;
  ---cg-cs: none;
}

body[data-board="green-plastic"] .is2d cg-board:before {
  background-image: url("../hashed/green-plastic.6f975618.png");
}

body[data-board="green-plastic"] .is2d coords {
  ---cg-ccw: #f2f9bb;
  ---cg-ccb: #59935d;
  ---cg-cs: none;
}

body[data-board="grey"] .is2d cg-board:before {
  background-image: url("../hashed/grey.7f4c6dac.jpg");
}

body[data-board="grey"] .is2d coords {
  ---cg-ccw: #b8b8b8;
  ---cg-ccb: #7d7d7d;
  ---cg-cs: none;
}

body[data-board="metal"] .is2d cg-board:before {
  background-image: url("../hashed/metal.d475ecaa.jpg");
}

body[data-board="metal"] .is2d coords {
  ---cg-ccw: #c9c9c9;
  ---cg-ccb: #727272;
  ---cg-cs: none;
}

body[data-board="olive"] .is2d cg-board:before {
  background-image: url("../hashed/olive.38f8c32c.jpg");
}

body[data-board="olive"] .is2d coords {
  ---cg-ccw: #b8b19f;
  ---cg-ccb: #6d6655;
  ---cg-cs: none;
}

body[data-board="newspaper"] .is2d cg-board:before {
  background-image: url("../images/board/svg/newspaper.svg");
}

body[data-board="newspaper"] .is2d coords {
  ---cg-ccw: #fff;
  ---cg-ccb: #8d8d8d;
  ---cg-cs: none;
}

body[data-board="purple"] .is2d cg-board:before {
  background-image: url("../hashed/purple.0a9f76bd.png");
}

body[data-board="purple"] .is2d coords {
  ---cg-ccw: #9f90b0;
  ---cg-ccb: #7d4a8d;
  ---cg-cs: none;
}

body[data-board="purple-diag"] .is2d cg-board:before {
  background-image: url("../hashed/purple-diag.303094fe.png");
}

body[data-board="purple-diag"] .is2d coords {
  ---cg-ccw: #e5daf0;
  ---cg-ccb: #957ab0;
  ---cg-cs: none;
}

body[data-board="ic"] .is2d cg-board:before {
  background-image: url("../hashed/ic.87d2f16a.png");
}

body[data-board="ic"] .is2d coords {
  ---cg-ccw: #ececec;
  ---cg-ccb: #c1c18e;
  ---cg-cs: none;
}

body[data-board="horsey"] .is2d cg-board:before {
  background-image: url("../hashed/horsey.22419a7d.jpg");
}

body[data-board="horsey"] .is2d coords {
  ---cg-ccw: #f0d9b5;
  ---cg-ccb: #946f51;
  ---cg-cs: none;
}

body[data-board="wood-worn"] .is2d cg-board:before {
  background-image: url("../images/board/wood-worn.webp");
}

body[data-board="wood-worn"] .is2d coords {
  ---cg-ccw: #bd938b;
  ---cg-ccb: #7e4f3b;
  ---cg-cs: none;
}

body[data-board="putt-putt"] .is2d cg-board:before {
  background-image: url("../images/board/putt-putt.webp");
}

body[data-board="putt-putt"] .is2d coords {
  ---cg-ccw: #d8d1c5;
  ---cg-ccb: #6d8b44;
  ---cg-cs: none;
}

body[data-board="cocoa"] .is2d cg-board:before {
  background-image: url("../images/board/cocoa.webp");
}

body[data-board="cocoa"] .is2d coords {
  ---cg-ccw: #d8d1c5;
  ---cg-ccb: #a1806b;
  ---cg-cs: none;
}

body[data-board="parchment"] .is2d cg-board:before {
  background-image: url("../images/board/parchment.webp");
}

body[data-board="parchment"] .is2d coords {
  ---cg-ccw: #c0b19d;
  ---cg-ccb: #946d46;
  ---cg-cs: none;
}

.is2d cg-board:before {
  height: 100%;
  top: 0;
}

.is2d piece {
  width: 12.5%;
  height: 12.5%;
  top: 0;
  left: 0;
}

cg-board {
  -webkit-user-select: none;
  user-select: none;
  line-height: 0;
  top: 0;
  left: 0;
}

.manipulable cg-board {
  cursor: pointer;
}

:where(html.transp) body:not(.simple-board) cg-board, :where(html.transp) .is3d .main-board cg-board {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

cg-board:before {
  content: "";
  border-radius: inherit;
  width: 100%;
  box-shadow: inherit;
  background-size: cover;
  position: absolute;
  left: 0;
}

body:not(.simple-board) cg-board:before {
  filter: brightness(calc(var(---board-brightness) / 100)) contrast(calc(var(---board-contrast) / 100)) hue-rotate(calc(var(---board-hue) * 3.6deg));
}

:where(html.transp) body:not(.simple-board) cg-board:before {
  opacity: calc(var(---board-opacity) / 100);
}

square {
  pointer-events: none;
  width: 12.5%;
  height: 12.5%;
  position: absolute;
  top: 0;
  left: 0;
}

square.move-dest {
  pointer-events: auto;
  background: radial-gradient(#14551e80 19%, #0000 20%);
}

square.premove-dest {
  pointer-events: auto;
  background: radial-gradient(#141e5580 19%, #0000 20%);
}

square.oc.move-dest {
  background: radial-gradient(#0000 0% 79%, #1455004d 80%);
}

square.oc.premove-dest {
  background: radial-gradient(#0000 0% 79%, #141e5533 80%);
}

body[data-board="green"] .is2d square.last-move, body[data-board="green-plastic"] .is2d square.last-move, body[data-board="marble"] .is2d square.last-move {
  background-color: #009bc769;
}

square.last-move {
  will-change: transform;
  background-color: #9bc70069;
}

body[data-board="horsey"] .is2d square.last-move:not(.move-dest) {
  background: url("../hashed/horsey.last-move.9f492946.png") 0 0 / cover;
}

square.check {
  background: radial-gradient(red 0%, #e70000 25%, #a9000000 89%, #9e000000 100%);
}

square.selected {
  background-color: #14551e80;
}

body[data-board="horsey"] .is2d square.selected {
  background: url("../hashed/horsey.selected.71b95327.png") 0 0 / cover;
}

square.current-premove {
  background-color: #141e5580 !important;
}

body[data-board="horsey"] .is2d square.current-premove {
  background: url("../hashed/horsey.current-premove.ec287f25.png") 0 0 / cover;
}

@media (hover: hover) {
  square.move-dest:hover, square.move-dest.hover {
    background: #14551e4d;
  }

  body[data-board="horsey"] .is2d square.move-dest:hover, body[data-board="horsey"] .is2d square.move-dest.hover {
    background: url("../hashed/horsey.move-dest.63e384fe.png") 0 0 / cover;
  }

  square.premove-dest:hover, square.premove-dest.hover {
    background: #141e5533;
  }
}

piece {
  z-index: 2;
  will-change: transform;
  pointer-events: none;
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light only;
  background-size: cover;
  width: 12.5%;
  height: 12.5%;
  position: absolute;
  top: 0;
  left: 0;
}

piece.dragging {
  cursor: move;
  z-index: 204 !important;
}

piece.anim {
  z-index: 3;
}

piece.fading {
  z-index: 1;
  opacity: .5;
}

piece.ghost {
  opacity: .3;
}

cg-container {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
}

cg-container .cg-shapes-below, cg-container .cg-shapes, cg-container .cg-custom-svgs, cg-container .cg-custom-below, cg-auto-pieces {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
}

cg-container .cg-shapes {
  opacity: .6;
  z-index: 2;
  overflow: hidden;
}

cg-container .cg-shapes-below {
  z-index: 1;
  overflow: hidden;
}

cg-container .cg-custom-svgs {
  z-index: 4;
}

cg-container .cg-custom-below {
  z-index: 1;
}

cg-container .cg-custom-svgs svg, cg-container .cg-custom-below svg {
  overflow: visible;
}

cg-auto-pieces {
  z-index: 2;
}

cg-auto-pieces piece {
  opacity: .3;
}

html:not(.transp) body:not(.simple-board).coords-in coord, html:not(.transp) body:not(.simple-board) cg-board piece, html:not(.transp) body:not(.simple-board) cg-board square, html:not(.transp) body:not(.simple-board) .cg-custom-svgs, html:not(.transp) body:not(.simple-board) .cg-custom-below {
  filter: brightness(calc(.35 + .0065 * min(120, var(---board-brightness))));
}

html.transp body:not(.simple-board) cg-board piece, html.transp body:not(.simple-board) cg-board square {
  opacity: min(1, .5 + var(---board-opacity) / 100);
}

coords.squares {
  text-transform: uppercase;
  text-align: right;
  flex-flow: column-reverse;
  width: 12.5%;
  height: 100%;
}

coords.squares.black {
  flex-flow: column;
}

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

coords.squares coord {
  padding: 6% 4%;
}

coords.squares.rank2 {
  transform: translateX(100%);
}

coords.squares.rank3 {
  transform: translateX(200%);
}

coords.squares.rank4 {
  transform: translateX(300%);
}

coords.squares.rank5 {
  transform: translateX(400%);
}

coords.squares.rank6 {
  transform: translateX(500%);
}

coords.squares.rank7 {
  transform: translateX(600%);
}

coords.squares.rank8 {
  transform: translateX(700%);
}

@media (max-width: 799.29px) and (orientation: portrait) {
  body {
    ---display-columns: 1;
  }
}

@media (min-width: 799.3px), (orientation: landscape) {
  body {
    ---display-columns: 2;
  }
}

@media (min-width: 1259.3px) {
  body {
    ---display-columns: 3;
  }
}

html.transp:before {
  content: " ";
  will-change: transform;
  z-index: -1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
  height: 100%;
  position: fixed;
}

.main-board {
  direction: ltr;
}

.main-board__preload {
  position: absolute;
}

cg-board {
  -webkit-tap-highlight-color: transparent;
}

.mini-board cg-board, .mini-game cg-board {
  border-radius: calc(var(---ui-roundness, 7px) / 2);
}

.mini-board:not(.manipulable) cg-board, .mini-game cg-board {
  overflow: hidden;
}

.mini-game {
  display: block;
}

.mini-game, .mini-game:hover {
  color: var(--c-font);
}

.mini-game__player {
  padding: 3px 2px 0;
}

.mini-game__player:first-child {
  padding: 0 2px 2px;
}

.mini-game__user {
  overflow: hidden;
}

.mini-game .pinned-icon {
  aspect-ratio: 1;
  height: .9em;
  margin-inline-start: .5ch;
  transform: rotate(-45deg);
}

.mini-game__flag {
  aspect-ratio: 1;
  vertical-align: middle;
  opacity: .75;
  width: 1.2em;
  margin-inline-end: .75ch;
}

a.mini-game:hover .mini-game__flag, .relay-game--current .mini-game__flag, .mini-game.active .mini-game__flag {
  opacity: 1;
}

.mini-game .rating {
  margin-inline-start: 1ch;
  font-size: .9em;
}

body.no-rating .mini-game .rating {
  display: none;
}

.mini-game__clock {
  padding-inline-start: 1ch;
}

.mini-game__clock.clock--run {
  color: var(--c-accent);
  font-weight: normal;
}

.mini-game__result {
  margin: 0 1ch;
  font-weight: bold;
}

.user-link.online .paco1 {
  color: var(--c-patron-1) !important;
}

.user-link.online .paco2 {
  color: var(--c-patron-2) !important;
}

.user-link.online .paco3 {
  color: var(--c-patron-3) !important;
}

.user-link.online .paco4 {
  color: var(--c-patron-4) !important;
}

.user-link.online .paco5 {
  color: var(--c-patron-5) !important;
}

.user-link.online .paco6 {
  color: var(--c-patron-6) !important;
}

.user-link.online .paco7 {
  color: var(--c-patron-7) !important;
}

.user-link.online .paco8 {
  color: var(--c-patron-8) !important;
}

.user-link.online .paco9 {
  color: var(--c-patron-9) !important;
}

.user-link.online .paco10 {
  color: var(--c-patron-10) !important;
}

.user-link {
  color: var(--c-font);
}

.user-link.online .line {
  opacity: .9;
  color: var(--c-good);
}

.user-link.online .line:before {
  content: "";
}

.user-link.online .line.patron {
  opacity: 1;
}

.user-link .line {
  color: var(--c-font);
  opacity: .5;
  text-align: center;
  vertical-align: text-top;
  width: 1.5em;
  display: inline-block;
}

.user-link .line.patron {
  opacity: .7;
}

html[dir="rtl"] .user-link .line.patron {
  transform: scaleX(-1);
}

.user-link .line:before {
  content: "";
}

.user-link .line.patron:before {
  content: "" !important;
}

.user-link .line.moderator:before {
  content: "";
}

body.no-rating .user-link .rating {
  display: none;
}

@media (hover: hover), (pointer: fine) {
  a.user-link:hover {
    color: var(--c-link);
  }
}

@media (hover: none) and (pointer: coarse) {
  a.user-link:active {
    color: var(--c-link);
  }
}

.utitle {
  color: var(--c-brag);
  font-weight: bold;
}

.utitle[data-bot] {
  color: var(--c-bot);
}

.uflair {
  -webkit-user-select: none;
  user-select: none;
  aspect-ratio: 1;
  vertical-align: middle;
  height: 1.1em;
  margin-left: .5ch;
  transform: translateY(-.1em);
}

body.no-flair .uflair {
  display: none;
}

body {
  background: none;
  overflow: hidden;
}

.embedded {
  background: var(--c-bg-page);
  padding: .3em;
  display: block;
  color: var(--c-font) !important;
}

.embedded cg-board {
  box-shadow: none;
}

.embedded .text {
  text-align: center;
  margin: .3em 0;
  display: block;
}
