@charset "UTF-8";
/* Common imports for all CSS modules */
/*
 * This source is generated by bin/gen/licon.py. Run licon.py after changing public/font/lichess.sfd
 *
 * Constant names and values are pulled from private use characters defined in the sfd file.
 *
 * Character names can be edited in fontforge's "glyph info" dialog, or by editing the StartChar: line that
 * begins each character chunk in lichess.sfd
 *
 * To make these characters visible in your editor, install the lichess.ttf font (which is also generated by
 * licon.py) and then add it to your editor's font list.
 */
/* Uniboard: keep the same page layout across pages */
.analyse__fork glyph, .mselect__list, .engine-error h2, .tview2 glyph, .piece-letter #analyse-cm .title, #analyse-cm .piece-letter .title, .piece-letter .analyse__fork move, .analyse__fork .piece-letter move, .piece-letter .practice-box .comment move san, .practice-box .comment move .piece-letter san, .piece-letter .explorer-box .tablebase td:first-child, .explorer-box .tablebase .piece-letter td:first-child, .piece-letter .explorer-box .moves td:first-child, .explorer-box .moves .piece-letter td:first-child, .piece-letter .pv_box .pv span, .pv_box .pv .piece-letter span, .piece-letter .tview2 move, .tview2 .piece-letter move {
  font-family: "Noto Sans", sans-serif;
}

.material score, .analyse__fork eval, .explorer-box .moves th, .ceval .engine .cloud,
.ceval .engine .infinite, .tview2 comment .by, .tview2 eval, #analyse-cm .title draw, .analyse__fork move draw, .practice-box .comment move san draw, .explorer-box .tablebase td:first-child draw, .explorer-box .moves td:first-child draw, .pv_box .pv span draw, .tview2 move draw {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

#analyse-cm .title, .analyse__fork move, .practice-box .comment move san, .explorer-box .tablebase td:first-child, .explorer-box .moves td:first-child, .pv_box .pv span, .tview2 move {
  font-family: "Noto Chess", "Noto Sans";
}

#analyse-cm .title draw, .analyse__fork move draw, .practice-box .comment move san draw, .explorer-box .tablebase td:first-child draw, .explorer-box .moves td:first-child draw, .pv_box .pv span draw, .tview2 move draw {
  margin-inline-start: 1ch;
  font-weight: normal;
}

/* text printed directly on the page background deserves special treatment (transp theme) */
.analyse__controls .fbt {
  color: var(--c-font-page);
}

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

.analyse__clock, #analyse-cm .title, .analyse__tools .comp-off__hint, .ceval, .cmn-toggle input:disabled + label::before, .cmn-toggle input:disabled + label::after, .crosstable__users, .crosstable__score {
  box-shadow: inset 0 2px 3px -2px hsl(0, 0%, 45%), inset 0 -4px 6px -3px var(--m-body-gradient--lighten-3);
}
html.light .analyse__clock, html.light #analyse-cm .title, #analyse-cm html.light .title, html.light .analyse__tools .comp-off__hint, .analyse__tools html.light .comp-off__hint, html.light .ceval, html.light .cmn-toggle input:disabled + label::before, .cmn-toggle html.light input:disabled + label::before, html.light .cmn-toggle input:disabled + label::after, .cmn-toggle html.light input:disabled + label::after, html.light .crosstable__users, html.light .crosstable__score {
  box-shadow: inset 0 3px 3px -2px #fff, inset 0 -4px 6px -3px var(--m-body-gradient--lighten-5);
}
.analyse__clock, #analyse-cm .title, .analyse__tools .comp-off__hint, .ceval, .cmn-toggle input:disabled + label::before, .cmn-toggle input:disabled + label::after, .crosstable__users, .crosstable__score {
  background-image: linear-gradient(to bottom, var(--c-metal-top), var(--c-metal-bottom));
}

.explorer__config .choices button, .cmn-toggle label::after, .crosstable povs:hover, .mselect__label {
  box-shadow: inset 0 2px 3px -2px hsl(0, 0%, 45%), inset 0 -4px 6px -3px var(--m-body-gradient--lighten-3), 0 1px 3px 0 hsla(0, 0%, 0%, 0.2);
}
html.light .explorer__config .choices button, .explorer__config .choices html.light button, html.light .cmn-toggle label::after, .cmn-toggle html.light label::after, html.light .crosstable povs:hover, .crosstable html.light povs:hover, html.light .mselect__label {
  box-shadow: inset 0 3px 3px -2px #fff, inset 0 -4px 6px -3px var(--m-body-gradient--lighten-5), 0 1px 3px 0 hsla(0, 0%, 0%, 0.18);
}
.explorer__config .choices button, .cmn-toggle label::after, .crosstable povs:hover, .mselect__label {
  background: linear-gradient(to bottom, var(--c-metal-top), var(--c-metal-bottom));
  text-shadow: 0.5px 0.5px 0 var(--m-dimmer--fade-20) !important;
}
.explorer__config .choices button:hover:not(.disabled, :disabled, [disabled]), .cmn-toggle label:hover:not(.disabled, :disabled, [disabled])::after, .crosstable povs:hover:not(.disabled, :disabled, [disabled]), .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 3px 3px -2px var(--c-border-light), inset 0 -5px 8px -3px var(--m-body-gradient--lighten-5), 0 2px 4px 0 hsla(0, 0%, 0%, 0.24);
}
html.light .explorer__config .choices button:hover:not(.disabled, :disabled, [disabled]), .explorer__config .choices html.light button:hover:not(.disabled, :disabled, [disabled]), html.light .cmn-toggle label:hover:not(.disabled, :disabled, [disabled])::after, .cmn-toggle html.light label:hover:not(.disabled, :disabled, [disabled])::after, html.light .crosstable povs:hover:not(.disabled, :disabled, [disabled]), .crosstable html.light povs:hover:not(.disabled, :disabled, [disabled]), html.light .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 4px 3px -2px #fff, inset 0 -5px 8px -3px var(--m-body-gradient--lighten-7), 0 2px 4px 0 hsla(0, 0%, 0%, 0.21);
}
.explorer__config .choices button:hover:not(.disabled, :disabled, [disabled]), .cmn-toggle label:hover:not(.disabled, :disabled, [disabled])::after, .crosstable povs:hover:not(.disabled, :disabled, [disabled]), .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  background: linear-gradient(to bottom, var(--c-metal-top-hover), var(--c-metal-bottom-hover));
}

.mselect__label {
  box-shadow: inset 0 1px 3px -2px hsl(0, 0%, 30%), inset 0 -4px 6px -3px var(--m-body-gradient--lighten-3), 0 1px 3px 0 hsla(0, 0%, 0%, 0.1);
}
html.light .mselect__label {
  box-shadow: inset 0 2px 3px -2px #fff, inset 0 -4px 6px -3px var(--m-body-gradient--lighten-5), 0 1px 3px 0 hsla(0, 0%, 0%, 0.08);
}
.mselect__label {
  border: 1px solid var(--c-border);
}
.mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 2px 3px -2px var(--c-border-light), inset 0 -5px 8px -3px var(--m-body-gradient--lighten-5), 0 2px 4px 0 hsla(0, 0%, 0%, 0.12);
}
html.light .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 3px 3px -2px #fff, inset 0 -5px 8px -3px var(--m-body-gradient--lighten-7), 0 2px 4px 0 hsla(0, 0%, 0%, 0.1);
}

html.transp #ceval-settings::before, html.transp .board-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  backdrop-filter: blur(6px);
}
#ceval-settings, .board-menu {
  box-shadow: -1px 5px 6px rgba(0, 0, 0, 0.3);
}

html.transp #analyse-cm::before, html.transp .mselect__list::before, html.transp .pv_box .pv-board .pv-board-square cg-board::before, .pv_box .pv-board .pv-board-square html.transp cg-board::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  backdrop-filter: blur(6px);
}
#analyse-cm, .mselect__list, .pv_box .pv-board .pv-board-square cg-board {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.ceval .engine, .tview2 move {
  white-space: nowrap;
  overflow: hidden;
}

.pv_box .pv.pv--nowrap, .tview2 comment .by, .copy-me__target {
  white-space: nowrap;
}

.tview2-column > interrupt > comment {
  overflow-wrap: break-word;
  word-break: normal;
}

.explorer-box .games td span, .explorer-box .title, #ceval-settings .setting select, .crosstable__users, .pv_box .pv.pv--nowrap, .tview2 comment .by, .copy-me__target {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pv_box .pv-board .pv-board-square {
  position: relative;
  display: block;
  height: 0;
  padding-bottom: 100%;
  width: 100%;
}

.mselect__label::after, .tview2 shapes::before, .cmn-toggle label::before {
  font-size: 1.2em;
  vertical-align: middle;
  font-family: lichess;
  font-style: normal;
  font-weight: normal;
  text-transform: none;
  speak: none;
  content: attr(data-icon);
  opacity: 0.9;
  unicode-bidi: isolate;
}

.explorer-box .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.pv_box .pv-board .pv-board-square .cg-wrap {
  position: absolute;
  width: 100%;
  height: 100%;
}

.analyse-controls, .cmn-toggle input {
  touch-action: manipulation;
}

.cmn-toggle input {
  position: absolute;
  inset-inline-start: -99999px;
}

.explorer__config__player__choice .previous, .action-menu .autoplay, .tview2-column {
  display: flex;
  flex-flow: row wrap;
}

.copyables .pair, .analyse__fork move, .analyse__fork, .explorer__config .name > div, .action-menu span, .ceval .cmn-toggle {
  /* extends %flex-wrap */
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.mselect label span,
.mselect a, .analyse__persistence__help, .material, #analyse-cm a, .explorer-box .explorer-title .active, .explorer-box .explorer-title, .action-menu .cmn-toggle-wrap, #ceval-settings .setting, .copy-me, .board-menu .setting {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

.training-box .choices {
  /* extends %flex-center */
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
}

.analyse__persistence__actions, .explorer__config .date label, .mselect__label {
  /* extends %flex-center */
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
}

.analyse--wiki .analyse__side, .ceval .practice-mode, .training-box .instruction, .training-box, .explorer-box .message, .action-menu, .analyse__tools, .mselect__list, #ceval-settings, .engine-error, .crosstable povs, .crosstable__users, .crosstable__score, .crosstable__matchup, .continue-with, .board-menu section, .board-menu > div, .board-menu {
  display: flex;
  flex-flow: column;
}

#analyse-cm, .explorer-box .bar span[style*="width: 100%"], .toggle-box legend, .toggle-box, .mselect__list, .mselect__label, .ceval .engine .cloud,
.ceval .engine .infinite, .tview2-inline move, .tview2-column line move, .copy-me, .toggle-box--toggle-off legend:hover, .analyse__tools, .crosstable {
  border-radius: 7px;
}

/* helps with clipping background into border-radius */
.analyse__tools, .crosstable {
  overflow: hidden;
}

.explorer-box .bar span:first-child, .explorer-box .bar span[style="width: 0%"] + span:not(:last-child, [style*="width: 100%"]) {
  border-start-start-radius: 7px;
  border-end-start-radius: 7px;
}

.explorer-box .bar span:last-child, .explorer-box .bar span:not(:first-child):has(+ [style="width: 0%"]) {
  border-start-end-radius: 7px;
  border-end-end-radius: 7px;
}

.explorer__config .choices button:first-child, .copy-me__target:is(a):focus-visible, .copy-me__target, .crosstable .sep {
  border-radius: 7px 0 0 7px;
}

.explorer__config .choices button:last-child, .copy-me__button {
  border-radius: 0 7px 7px 0;
}

.copyables .bottom-action, .analyse-controls .fbt, #ceval-settings {
  border-radius: 0 0 7px 7px;
}

.analyse__tools, .crosstable, .toggle-box--toggle-off legend:hover {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.18), 0 1px 5px 0 rgba(0, 0, 0, 0.1);
}

html.transp .toggle-box--toggle-off legend:hover, .toggle-box--toggle-off html.transp legend:hover {
  backdrop-filter: blur(6px);
}

html.transp .analyse__tools, html.transp .crosstable {
  backdrop-filter: blur(6px);
}

coords {
  font-size: 8px;
}
@media (min-width: 300px) {
  coords {
    font-size: calc(8px + 4 * (100vw - 300px) / 900);
  }
}
@media (min-width: 1200px) {
  coords {
    font-size: 12px;
  }
}
coords {
  user-select: none;
  /* handle inner coords */
  position: absolute;
  display: flex;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  font-weight: bold;
  /* handle hidden coords */
}
.coords-no coords {
  display: none;
}
coords.ranks {
  flex-flow: column-reverse;
  top: 1px;
  right: 0;
  height: 100%;
  width: 0.8em;
}
coords.ranks.black {
  flex-flow: column;
}
coords.files {
  bottom: 0;
  left: 0;
  text-align: left;
  flex-flow: row;
  width: 100%;
  height: 1.4em;
}
coords.files.black {
  flex-flow: row-reverse;
}
coords.files coord {
  padding-left: 4px;
}
coords coord {
  flex: 1 1 auto;
}
coords {
  /* negate inner coords colors */
}
coords .is3d .cg-wrap coords coord {
  color: #fff !important;
  text-shadow: 0 1px 2px #000 !important;
}
coords .is3d .cg-wrap coords.files {
  bottom: calc(1px - 2.5%);
}
coords .is3d .cg-wrap coords.files coord {
  padding-left: 3px;
}

coords {
  text-shadow: var(---cg-cs, 0 1px 2px #000);
}

/** Alternating colors in rank/file/square labels */
coords .coord-light {
  color: var(---cg-ccb, #fff);
}

coords .coord-dark {
  color: var(---cg-ccw, #fff);
}

/* handle outer coords */
@media (min-width: 799.3px), (orientation: landscape) {
  .coords-out coords {
    text-shadow: none;
  }
  .coords-out coords.ranks {
    right: -15px;
    top: 0;
    width: 12px;
  }
  .coords-out coords.ranks coord {
    transform: translateY(42%);
  }
  .coords-out coords.files {
    bottom: -15px;
    left: 0;
    text-align: center;
  }
  .coords-out coords.ranks coord,
  .coords-out .is2d coords.files coord {
    color: var(--c-font-page) !important;
  }
}
body {
  ---board-scale: 1;
}
@media (min-width: 799.3px) and (min-height: 499.3px) {
  body {
    ---board-scale: calc((var(---zoom) / 100) * 0.75 + 0.25);
  }
}
body {
  ---col2-uniboard-width: calc(min(calc(100vw - var(---block-gap) - 240px - 2 * var(---main-margin, 0px) - 20px), calc(100vh - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - 1rem)) * var(---board-scale));
  ---col3-uniboard-width: calc(min(calc(100vw - var(---col3-uniboard-side-min, 250px) - var(---block-gap) - 240px - 2 * var(---main-margin, 0px) - 20px), calc(100vh - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - 1rem)) * var(---board-scale));
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .main-board cg-board {
    border-radius: 0;
  }
}
.board-menu {
  user-select: none;
  background: var(--c-bg-popup);
  padding: 0.5em 1.5em;
}
@media (min-width: 799.3px) {
  .board-menu {
    position: absolute;
    right: 0;
    min-width: 100%;
    z-index: 4;
  }
}
@media (max-width: 799.29px) {
  .board-menu {
    border-radius: 7px;
    position: fixed;
    top: 50% !important;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 108;
    min-width: 80%;
  }
}
.board-menu > div {
  gap: 2em;
  text-align: start;
}
.board-menu section {
  gap: 1.5em;
  padding: 1.2em 0;
}
.board-menu section:not(:last-child) {
  border-bottom: 1px solid var(--c-border);
}
.board-menu .setting {
  flex: 0 0 auto;
}
.board-menu .setting label {
  flex: 4 1 auto;
  cursor: pointer;
}

body.resizing {
  user-select: none;
}

cg-resize {
  display: none;
}
@media (min-width: 799.3px) {
  cg-resize {
    display: block;
    position: absolute;
    right: -9px;
    bottom: -9px;
    width: 22px;
    height: 22px;
    cursor: nwse-resize;
    z-index: 10;
  }
  cg-resize::before, cg-resize::after {
    background: #000;
    content: "";
    position: absolute;
    width: 12px;
    height: 1px;
    left: 0;
  }
  cg-resize::before {
    width: 5px;
    transform: translate(7px, 8px) rotate(-45deg);
  }
  cg-resize::after {
    transform: translate(1px, 6px) rotate(-45deg);
  }
  cg-resize:hover {
    border-radius: 50%;
    background: var(--m-accent--fade-50);
  }
  .resizing cg-resize {
    border-radius: 50%;
    background: var(--m-secondary--fade-50);
  }
}

@media (hover: none) {
  .continue-with {
    padding: 2em;
  }
}
.continue-with > *:not(:first-child) {
  margin-top: 1em;
}

.color-icon.white::before {
  content: "\e028";
}
.color-icon.black::before {
  content: "\e029";
}
html.light .color-icon.white::before {
  content: "\e029";
}
html.light .color-icon.black::before {
  content: "\e028";
}
.color-icon.random::before {
  content: "\e04a";
}

.crosstable__users {
  flex: 1 1 auto;
}

.crosstable {
  width: 100%;
  line-height: 1.9em;
  display: flex;
}
.crosstable fill,
.crosstable povs {
  background: var(--c-bg-box);
  flex: 1 1 auto;
}
.crosstable povs, .crosstable__users, .crosstable__score, .crosstable__matchup {
  text-align: center;
}
.crosstable__users {
  max-width: 40vw;
  text-align: left;
}
.crosstable__users a {
  padding-inline-start: var(---block-gap);
}
.crosstable__score {
  flex: 0 0 auto;
  font-weight: bold;
}
.crosstable__score span {
  padding: 0 var(---block-gap);
}
.crosstable__matchup {
  flex: 1 1 auto;
  font-weight: bold;
  background: var(--m-primary_bg--mix-20);
}
.crosstable povs a {
  color: var(--c-font-dim);
  flex: 0 0 50%;
}
.crosstable povs:hover a {
  opacity: 1 !important;
}
.crosstable povs a.loss {
  opacity: 0.2;
}
.crosstable povs.current a {
  background: var(--m-accent_bg--mix-70);
  color: #fff;
  opacity: 1 !important;
}
.crosstable povs.new {
  border: var(--c-border);
}
@media (max-width: 649.29px) {
  .crosstable povs {
    display: none;
  }
  .crosstable povs:nth-last-child(-n+12) {
    display: flex;
  }
}
.crosstable .sep {
  border-inline-start: 1px solid var(--c-border);
  margin-inline-start: 0.3em;
}
.crosstable .win {
  font-weight: bold;
  color: var(--c-good);
}
.crosstable .loss {
  color: var(--c-bad);
}

.fbt {
  color: var(--c-font);
  text-transform: uppercase;
  line-height: 1.5;
  transition: all 150ms ease;
}
@media (hover: hover) {
  .fbt:hover:not(.disabled, [disabled]) {
    background: var(--m-secondary_bg--mix-75);
    color: #fff;
  }
}
.fbt.active {
  background: var(--c-secondary) !important;
  color: var(--c-over);
}
.fbt.disabled, .fbt[disabled] {
  opacity: 0.5;
  cursor: default;
}

html.transp .copy-me {
  backdrop-filter: blur(6px);
}
.copy-me__target {
  flex: 1 1 auto;
  padding: 0 1em;
  outline: 0;
  background: none;
  border: 1px solid var(--c-border);
  border-right: 0;
  min-height: 44px;
}
.copy-me__target:is(a) {
  line-height: 40px;
}
.copy-me__target:is(a):focus-visible {
  outline-offset: -2px;
}
.copy-me__button {
  flex: 0 0 auto;
  border: 1px solid var(--c-border);
  border-left: 0;
  min-height: 44px;
}

.cmn-toggle-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.8ch;
  cursor: pointer;
  user-select: none;
}

.cmn-toggle label {
  user-select: none;
  transition: background 150ms ease, box-shadow 150ms ease;
  display: block;
  position: relative;
  cursor: pointer;
  outline: none;
  padding: 1px;
  width: 40px;
  height: 24px;
  border: 1px solid var(--c-border);
  border-radius: 24px;
  background-clip: padding-box;
  background-color: var(--c-font-dimmer);
}
.cmn-toggle label::before, .cmn-toggle label::after {
  display: block;
  position: absolute;
  content: "";
  width: 22px;
  height: 22px;
  bottom: 0;
}
html:not([dir=rtl]) .cmn-toggle label::before, html:not([dir=rtl]) .cmn-toggle label::after {
  left: 0;
}
html[dir=rtl] .cmn-toggle label::before, html[dir=rtl] .cmn-toggle label::after {
  right: 0;
}
.cmn-toggle label::before {
  transition: margin 150ms ease, color 150ms ease;
  font-size: 1em;
  z-index: 1;
  text-align: center;
  line-height: 22px;
  content: "\e02a";
  color: var(--c-font-dimmer);
  border-radius: 100%;
}
.cmn-toggle label::after {
  transition: margin 150ms ease, box-shadow 150ms ease;
  border-radius: 100%;
}
html.transp .cmn-toggle label::after {
  background: linear-gradient(to bottom, hsl(37, 7%, 22%), hsl(37, 5%, 19%) 100%);
}

.cmn-toggle input:checked + label {
  background-color: var(--c-good);
}
.cmn-toggle input:checked + label::before, .cmn-toggle input:checked + label::after {
  margin-inline-start: 16px;
}
.cmn-toggle input:checked + label::before {
  content: "\e023";
  color: var(--c-good);
}

.cmn-toggle input:disabled + label {
  opacity: 0.6;
  cursor: not-allowed !important;
}
.cmn-toggle input:disabled + label::before, .cmn-toggle input:disabled + label::after {
  box-shadow: none;
}

.cmn-toggle input:focus-visible:not(:disabled) + label {
  box-shadow: 0 0 12px var(--c-font-dimmer);
  border-color: var(--c-primary);
}

input.range {
  appearance: none;
  background: none;
  border: 0;
}
input.range:focus {
  outline: none;
}
input.range::-webkit-slider-runnable-track {
  width: 100%;
  height: 1em;
  cursor: pointer;
  background: var(--c-shade);
  border-radius: 0.5em;
}
input.range::-webkit-slider-thumb {
  border: 1px solid var(--c-font-dimmer);
  height: 1em;
  width: 1.5em;
  border-radius: 12px;
  background: var(--c-bg-box);
  cursor: pointer;
  appearance: none;
}
input.range::-moz-range-track {
  width: 100%;
  height: 1em;
  cursor: pointer;
  background: var(--c-shade);
  border-radius: 0.5em;
}
input.range::-moz-range-thumb {
  border: 1px solid var(--c-font-dimmer);
  height: 1em;
  width: 1.5em;
  border-radius: 12px;
  background: var(--c-bg-box);
  cursor: pointer;
}
input.range::-ms-track {
  width: 100%;
  height: 1em;
  cursor: pointer;
  background: var(--c-shade);
  border-radius: 0.5em;
}
input.range::-ms-fill-lower {
  background: rgba(191, 191, 191, 0.78);
  border-radius: 11.8px;
}
input.range::-ms-fill-upper {
  background: rgba(214, 214, 214, 0.78);
  border-radius: 11.8px;
}
input.range::-ms-thumb {
  border: 1px solid var(--c-font-dimmer);
  height: 1em;
  width: 1.5em;
  border-radius: 12px;
  background: var(--c-bg-box);
  cursor: pointer;
  border-color: transparent;
  color: transparent;
}
input.range:-moz-focusring::-moz-range-thumb {
  outline: 2px solid var(--c-primary);
}
input.range:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--c-primary);
}

.tview2 {
  white-space: normal;
  --c-base: var(--c-font);
}
.tview2 .active {
  --c-base: var(--c-primary);
}
.tview2 .inaccuracy {
  --c-base: var(--c-inaccuracy);
}
.tview2 .mistake {
  --c-base: var(--c-mistake);
}
.tview2 .blunder {
  --c-base: var(--c-blunder);
}
.tview2 .good {
  --c-base: var(--c-good);
}
.tview2 .brilliant {
  --c-base: var(--c-brilliant);
}
.tview2 .interesting {
  --c-base: var(--c-interesting);
}
.tview2 .anchor {
  position: relative;
}
.tview2 * {
  overflow: visible;
}

.tview2.hidden {
  visibility: hidden;
}

.tview2 move {
  display: inline-block;
  color: var(--c-base);
  padding: 0.25em 0.17em;
  font-size: 1.092em;
  cursor: pointer;
}
@media (hover: none) {
  .tview2 move {
    user-select: none;
  }
}
.tview2 move.active {
  color: white;
  background: var(--m-primary--alpha-85);
}
.tview2 move.active shapes,
.tview2 move.active eval,
.tview2 move.active index {
  color: white;
}
.tview2 move.active .disclosure {
  background-color: var(--c-font-dimmer);
}
.tview2 move.current {
  border: 1px solid var(--c-accent);
}
.tview2 move.nongame {
  font-style: italic;
}
.tview2 move.empty {
  pointer-events: none;
  color: var(--c-font-dimmer);
}
.tview2 move.context-menu {
  border: 0;
  background: var(--c-accent) !important;
  color: var(--c-over) !important;
}
.tview2 move.context-menu index {
  color: var(--c-over);
}
.tview2 move.pending-deletion {
  border-radius: unset;
  background: var(--m-bad--alpha-30) !important;
}
.tview2 move.pending-copy {
  border-radius: unset;
  background: var(--m-good--alpha-30) !important;
}

.tview2 eval {
  margin-inline-start: auto;
  font-size: 0.8em;
  color: var(--c-font-dim);
}

.tview2 glyph {
  margin-inline-start: 0.08em;
  vertical-align: bottom;
}

.tview2 shapes {
  margin-inline-start: 0.4em;
  color: var(--c-good);
}
.tview2 shapes::before {
  vertical-align: baseline;
  font-size: 13px;
  content: "\e029";
}

.tview2 move index {
  font-size: 90%;
  color: var(--c-font-dim);
}

.tview2 interrupt > interrupt {
  display: block;
  margin-inline-start: 9px;
}

.tview2 > interrupt {
  font-size: 95%;
}
.tview2 > interrupt move {
  margin-inline: 2px 0;
}
.tview2 > interrupt inline lines {
  margin-inline-start: 0;
}

.tview2 comment .by {
  display: inline-block;
  vertical-align: middle;
  color: var(--c-font);
  opacity: 0.8;
  max-width: 9em;
}

.tview2 line {
  display: block;
  padding-inline-start: 7px;
  position: relative;
}
.tview2 line comment {
  font-size: 90%;
}
.tview2 line > branch {
  border-inline-start: 2px solid var(--m-font--fade-88);
  margin-inline-start: -9px;
  position: absolute;
  width: 8px;
  height: 100%;
}
.tview2 line > branch::after {
  margin-top: 0.8em;
  content: " ";
  border-top: 2px solid var(--m-font--fade-88);
  position: absolute;
  width: 7px;
  height: 2px;
}
.tview2 line:last-child > branch {
  height: calc(0.8em + 2px) !important;
}

.tview2 lines {
  display: block;
  margin-block: 2px;
  margin-inline-start: 1px;
  padding-inline-start: 2px;
  overflow-x: clip;
}
.tview2 lines.single {
  border-inline-start: none;
}
.tview2 lines:last-child {
  margin-bottom: 0;
}
.tview2 lines lines move {
  font-size: 13px;
}

.tview2 inline {
  display: inline;
  font-style: italic;
  font-size: 0.9em;
  opacity: 0.8;
}
.tview2 inline move {
  margin-inline-start: 0;
}
.tview2 inline::before, .tview2 inline::after {
  vertical-align: 7px;
  opacity: 0.7;
  font-size: 1.1em;
}
.tview2 inline::before {
  content: "(";
  margin-inline: 2px -2px;
}
.tview2 inline::after {
  content: ")";
  margin-inline: -1px 1px;
}

.tview2 .conceal {
  opacity: 0.4;
}

.tview2 .hide {
  display: none;
}

.tview2 .disclosure {
  display: inline-block;
  background-color: var(--m-font--fade-88);
  vertical-align: -2px;
  align-self: center;
  width: calc(15px + var(---button-size-pointer-adjust, 0px));
  height: calc(15px + var(---button-size-pointer-adjust, 0px));
  mask: url("/assets/images/buttons/plus-button-mask.webp") 0 0/contain no-repeat;
}
.tview2 .disclosure + san::before,
.tview2 .disclosure + index::before {
  content: "-";
  color: transparent;
}

.tview2 .disclosure.expanded {
  mask: url("/assets/images/buttons/minus-button-mask.webp") 0 0/contain no-repeat;
}
.tview2 .disclosure.expanded + san::before,
.tview2 .disclosure.expanded + index::before {
  color: var(--m-font--fade-88);
}

.tview2 .disclosure-connector {
  position: absolute;
  pointer-events: none;
  inset-inline-start: 0;
  border-inline-start: 2px solid var(--m-font--fade-88);
  border-top: 2px solid var(--m-font--fade-88);
}

.tview2 .disclosure-connector.riser {
  inset-inline: unset;
  inset-inline-end: 0;
  top: calc(-2px - (10px - var(---button-size-pointer-adjust, 0px)) / 2);
  height: calc((10px - var(---button-size-pointer-adjust, 0px)) / 2);
  width: 2px;
}

.tview2-column move {
  font-size: 1.092em;
  padding: 2px;
}

.tview2-column > move {
  flex: 0 0 43.5%;
  display: flex;
  font-size: 1.185em;
  line-height: 1.75em;
  padding: 0 0.3em 0 0.5em;
}
.tview2-column > move index {
  padding-inline-start: 5px;
}
.tview2-column > move index:first-child {
  padding-inline-start: 0;
}
.tview2-column > move glyph {
  flex: 0 1 auto;
  text-align: center;
  overflow: hidden;
  font-size: 0.82em;
}
.tview2-column > move.active {
  font-weight: bold;
}

.tview2-column > index {
  flex: 0 0 13%;
  display: flex;
  justify-content: center;
  border-inline-end: 1px solid var(--c-border);
  background: var(--c-bg-zebra);
  line-height: 2.07em;
  color: var(--c-font-dimmer);
}
.tview2-column > index + move {
  border-inline-end: var(--m-font--fade-88);
}

.tview2-column line comment {
  display: inline;
  overflow-wrap: break-word;
  padding: 0 5px 0 3px;
  vertical-align: 7px;
}

.tview2-column lines lines > .disclosure-connector + line > branch {
  margin-top: 0;
  height: 100%;
}

.tview2-column > interrupt > lines > line > branch {
  margin-top: -2px;
  height: calc(100% + 2px);
}

.tview2-column > interrupt {
  flex: 0 0 100%;
  max-width: 100%;
  background: var(--c-bg-zebra);
  border-top: 1px solid var(--m-font--fade-88);
  border-bottom: 1px solid var(--m-font--fade-88);
}
.tview2-column > interrupt > comment {
  color: var(--c-base);
  display: block;
  padding: 3px 5px;
  border-inline-start: 2px solid var(--m-font--fade-88);
}

.tview2-inline {
  padding-inline-start: 7px;
  padding-inline-end: 3px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.tview2-inline .mainline {
  font-weight: bold;
  background: color-mix(in srgb, var(--c-clearer) 4%, transparent);
}
.tview2-inline move {
  margin-inline-end: 2px;
  font-size: 13px;
  font-weight: bold;
}
.tview2-inline move index {
  padding-inline-end: 0.2em;
  line-height: 111.11%;
}
.tview2-inline comment {
  vertical-align: 45%;
  overflow-wrap: break-word;
  margin: 0 0.2em 0 0.1em;
  font-size: 0.9em;
}
.tview2-inline inline::before,
.tview2-inline inline::after {
  vertical-align: 0.7em;
}

@media (pointer: coarse) {
  .tview2 {
    ---button-size-pointer-adjust: 4px;
  }
}
@media (hover: hover) {
  .tview2 move:not(.active):hover {
    background: var(--c-bg-zebra2);
    color: var(--c-font-clear);
  }
  .tview2 move:not(.active):hover eval,
  .tview2 move:not(.active):hover index {
    color: var(--c-font);
  }
  .tview2 move:not(.active):hover .disclosure {
    background-color: var(--c-font-dimmer);
  }
  .tview2 move.active:hover {
    cursor: default;
  }
  .tview2 move.active:hover .disclosure:hover {
    background-color: #ddd;
  }
  .tview2 move:hover .disclosure:hover {
    background-color: var(--c-font-dim);
    cursor: pointer;
  }
}
.ceval {
  position: relative;
  display: flex;
  column-gap: 6px;
  align-items: stretch;
  padding-top: 3px;
}
.ceval.enabled .show-threat {
  visibility: visible;
}
.ceval .cmn-toggle {
  flex: 0 0 40px;
  margin-inline-start: 6px;
}
.ceval pearl {
  flex: 1 0 auto;
  line-height: 38px;
  font-size: 1.6em;
  text-align: center;
  font-weight: bold;
}
.ceval .is-red::before {
  vertical-align: -3px;
}
.ceval .engine {
  flex: 2 1 auto;
  font-size: 12px;
  line-height: 16px;
  margin-top: 3px;
  color: var(--c-font-dim);
  user-select: none;
}
.ceval .engine .cloud,
.ceval .engine .infinite {
  margin-inline-start: 4px;
  background: var(--c-secondary-dim);
  color: var(--c-over);
  padding: 1px 3px;
  text-transform: uppercase;
  font-size: 11px;
}
.ceval .engine .info {
  display: block;
  white-space: nowrap;
}
.ceval .engine .deeper {
  color: var(--c-primary);
  margin-inline-end: 4px;
}
.ceval .engine .deeper::before {
  vertical-align: top;
}
.ceval .show-threat {
  flex: 0 0 18px;
  color: var(--c-font-dim);
  font-size: 16px;
  margin-top: -3px;
  overflow: hidden;
  visibility: hidden;
}
.ceval .show-threat:hover:not(.hidden), .ceval .show-threat.active {
  color: var(--c-bad);
}
.ceval .show-threat.hidden {
  opacity: 0.3;
  cursor: default;
}
.ceval .settings-gear {
  color: var(--c-font-dim);
  font-size: 16px;
  padding: 0 6px;
  margin-inline-end: 6px;
  margin-top: -3px;
}
.ceval .settings-gear:hover {
  color: var(--c-font);
}
.ceval .settings-gear.active {
  color: white;
  background-color: var(--c-primary);
}
.ceval .technology {
  margin-inline-start: 5px;
}
.ceval .technology.good {
  color: var(--c-good);
}
.ceval .bar {
  position: absolute;
  width: 100%;
  height: 3px;
  top: 0;
}
@keyframes bar-anim {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100000px 0;
  }
}
.ceval .bar span {
  display: block;
  height: 3px;
  width: 0;
  background: var(--c-good);
  transition: width 1s;
}
.ceval .bar span.threat {
  background: var(--c-bad);
}
.ceval.computing .bar span {
  background-image: url("../hashed/bar-highlight.0b603b17.png");
  animation: bar-anim 1000s linear infinite;
}

.engine-error {
  align-items: center;
  row-gap: 1em;
  padding: 3em;
  text-align: left;
  max-width: 60vw;
}
@media (max-width: 979.29px) {
  .engine-error {
    max-width: 80vw;
  }
}
@media (max-width: 499.29px) {
  .engine-error {
    max-width: unset;
    width: 96vw;
  }
}
.engine-error h2 {
  font-size: 1.3em;
}
.engine-error li {
  margin: 0 2em;
  line-height: 1.5em;
  list-style: disc;
}
.engine-error pre {
  width: 100%;
  border: 1px solid #888;
  box-shadow: inset 0 0 2px var(--c-font-dim);
  padding: 1em;
  margin-bottom: 1em;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.pv_box {
  position: relative;
  background: var(--c-bg-box);
  font-size: 13px;
}
.pv_box .pv {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  line-height: 2em;
  border-top: 1px solid var(--c-border);
  padding-inline-end: 14px;
  min-height: 2em;
}
.pv_box .pv.pv--nowrap {
  display: block;
  flex-wrap: initial;
  height: 2em;
}
.pv_box .pv strong {
  display: inline-block;
  width: 34px;
  text-align: center;
}
.pv_box .pv span {
  margin-inline-start: 4px;
}
html:not([dir=rtl]) .pv_box .pv .pv-wrap-toggle {
  right: 0;
}
html[dir=rtl] .pv_box .pv .pv-wrap-toggle {
  left: 0;
}
.pv_box .pv .pv-wrap-toggle {
  position: absolute;
  top: 0;
  padding: 0 4px;
  margin: 0;
  cursor: pointer;
}
.pv_box .pv .pv-wrap-toggle::before {
  content: "▲";
}
.pv_box .pv.pv--nowrap .pv-wrap-toggle {
  transform: rotate(180deg);
}
html:not([dir=rtl]) .pv_box .pv-board {
  left: 34px;
}
html[dir=rtl] .pv_box .pv-board {
  right: 34px;
}
.pv_box .pv-board {
  position: absolute;
  width: 80%;
  max-width: 240px;
  z-index: 1;
}
@media (hover: hover) and (pointer: fine) {
  .pv_box .pv[data-uci]:hover {
    background: var(--m-secondary_bg--mix-20);
    cursor: pointer;
  }
  .pv_box .pv[data-uci] .pv-san:hover {
    color: var(--c-primary);
  }
  .pv_box .pv .pv-wrap-toggle:hover {
    background: var(--c-secondary);
    color: var(--c-over);
  }
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .pv_box {
    background: var(--m-secondary_bg--mix-20);
    padding-inline: 8px;
  }
  .pv_box .pv {
    font-size: 1.2em;
    padding-inline-end: 20px;
  }
  .pv_box .pv strong {
    padding-inline-end: 8px;
  }
  .pv_box .pv .pv-wrap-toggle {
    padding: 0;
  }
}
#ceval-settings-anchor {
  position: relative;
}

#ceval-settings {
  position: absolute;
  border-top: 2px solid var(--c-primary);
  z-index: 4;
  width: 100%;
  background: var(--c-bg-high);
  gap: 1.5em;
  padding: 1.5em;
}
@media (max-width: 799.29px) {
  #ceval-settings {
    gap: 1em;
  }
  #ceval-settings br {
    display: none;
  }
}
#ceval-settings .setting {
  white-space: nowrap;
}
#ceval-settings .setting input[type=range],
#ceval-settings .setting span {
  cursor: pointer;
  flex: 1 4 auto;
  padding: 0;
  height: 21px;
  width: 100%;
  margin: 0 1ch;
}
#ceval-settings .setting select {
  flex: 1 4 auto;
  min-width: 0;
  margin-inline-start: 1ch;
  padding: 4px;
}
#ceval-settings .setting #select-engine {
  padding: 0.5em;
}
#ceval-settings .setting .range_value {
  direction: ltr;
  flex: 0 0 15%;
  text-align: left;
}
#ceval-settings .setting button.button-red {
  margin-left: 0.6em;
  padding: 0.6em 0.75em;
}
#ceval-settings .setting span {
  position: relative;
}
#ceval-settings .setting span input[type=range] {
  height: 100%;
  margin: 0;
}
#ceval-settings .setting .tick {
  position: absolute;
  top: -12.5px;
  height: 46px;
  border-color: var(--c-primary);
}
#ceval-settings .setting .tick div {
  position: absolute;
  left: -4px;
  width: 9px;
  height: 9px;
  border-left: 3px solid var(--c-primary);
  border-bottom: 3px solid var(--c-primary);
}
#ceval-settings .setting .tick div:hover {
  border-color: var(--m-primary_white--mix-80);
}
#ceval-settings .setting .tick div.arrow-down {
  transform: rotate(-45deg);
  top: 0;
}
#ceval-settings .setting .tick div.arrow-up {
  transform: rotate(135deg);
  bottom: 0;
}
#ceval-settings .setting .tick.recommended div {
  border-color: var(--c-secondary);
}
#ceval-settings .setting .tick.recommended div:hover {
  border-color: var(--m-secondary_white--mix-80);
}

.eval-gauge {
  width: var(---block-gap);
  position: relative;
  background: #c0c0c0;
  overflow: hidden;
}
html.light .eval-gauge {
  background: #fff;
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .eval-gauge {
    display: none;
  }
}
.eval-gauge.empty {
  opacity: 0.5;
}
.eval-gauge.reverse {
  transform: rotateX(180deg);
}
.eval-gauge::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) inset;
}
html:not([dir=rtl]) .eval-gauge tick {
  left: 0;
}
html[dir=rtl] .eval-gauge tick {
  right: 0;
}
.eval-gauge tick {
  position: absolute;
  top: 0;
  width: 100%;
  opacity: 0.4;
  border-bottom: 2px ridge #888;
}
html.light .eval-gauge tick {
  border-bottom-color: #ccc;
}
.eval-gauge tick.zero {
  top: 6px;
  opacity: 1;
  border-bottom: 7px solid var(--m-accent--fade-50) !important;
  margin-top: -3px;
}
.eval-gauge .black {
  width: 100%;
  height: 50%;
  transition: height 1s;
  background: #444;
}
html.light .eval-gauge .black {
  background: #606060;
}

html.transp .analyse-controls {
  backdrop-filter: blur(6px);
}
.analyse-controls {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}
.analyse-controls .fbt {
  user-select: none;
  -webkit-touch-callout: none;
  text-align: center;
}
.analyse-controls .hidden {
  visibility: hidden;
}
.analyse-controls .jumps {
  font-size: 1.3rem;
  display: flex;
  padding: 4px;
}
.analyse-controls .jumps .fbt {
  border-radius: 8px;
  flex: 3;
}
.analyse-controls .jumps .fbt[data-act=first], .analyse-controls .jumps .fbt[data-act=last] {
  font-size: 0.7em;
}
.analyse-controls .jumps .fbt[data-act=line] {
  font-size: 0.9em;
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse-controls .jumps .fbt[data-act=prev],
  .analyse-controls .jumps .fbt[data-act=next] {
    padding-inline: 6px;
    font-size: 1.2em;
  }
}
@media (hover: hover) {
  .analyse-controls .jumps .fbt:hover:not(.disabled, :disabled) {
    background-color: var(--m-primary_bg--mix-30);
  }
}

#promotion-choice {
  background: var(--m-bg--fade-30);
  z-index: 205;
  position: absolute;
  width: var(---cg-width, 100%);
  height: var(---cg-height, 100%);
}
html:not([dir=rtl]) #promotion-choice {
  right: 0;
}
html[dir=rtl] #promotion-choice {
  left: 0;
}
#promotion-choice square {
  cursor: pointer;
  border-radius: 50%;
  background-color: #b0b0b0;
  box-shadow: inset 0 0 25px 3px #808080;
  pointer-events: all;
  transition: all 150ms ease;
}
#promotion-choice piece {
  pointer-events: none;
  opacity: 1;
}
.is2d #promotion-choice piece {
  transition: all 150ms ease;
  width: 100%;
  height: 100%;
  transform: scale(0.8);
}
#promotion-choice square:hover {
  box-shadow: inset 0 0 48px 8px var(--c-accent);
  border-radius: 0;
}
.is2d #promotion-choice square:hover piece {
  transform: none;
}

html:not([dir=rtl]) .variant-racingKings .cg-wrap.cg-wrap cg-container::before {
  left: 0;
}
html[dir=rtl] .variant-racingKings .cg-wrap.cg-wrap cg-container::before {
  right: 0;
}
.variant-racingKings .cg-wrap.cg-wrap cg-container::before {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
  background: hsla(0, 0%, 90%, 0.2);
  width: 100%;
  height: 12.5%;
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.variant-racingKings .cg-wrap.orientation-white cg-container::before {
  top: 0;
}
.variant-racingKings .cg-wrap.orientation-black cg-container::before {
  bottom: 0;
}

html:not([dir=rtl]) .variant-kingOfTheHill cg-container::before {
  left: 37.5%;
}
html[dir=rtl] .variant-kingOfTheHill cg-container::before {
  right: 37.5%;
}
.variant-kingOfTheHill cg-container::before {
  width: 25%;
  height: 25%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
  background: hsla(0, 0%, 90%, 0.2);
  content: "";
  position: absolute;
  top: 37.5%;
  z-index: 1;
  pointer-events: none;
}

.mselect {
  position: relative;
  white-space: nowrap;
}
.mselect__toggle {
  position: absolute;
  z-index: -1;
  opacity: 0;
}
html.transp .mselect__label {
  backdrop-filter: blur(6px);
}
.mselect__label {
  padding-inline-start: 1rem;
  padding-inline-end: 0.6rem;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  gap: 1ch;
  cursor: pointer;
}
.mselect__label::after {
  content: "\e053";
  font-size: 70%;
  color: var(--c-primary);
  margin-inline: 0.4em 0;
}
.mselect__label:focus-visible {
  outline: 2px solid var(--c-primary);
}
.mselect__toggle:checked ~ .mselect__label {
  transition: opacity 150ms ease;
  opacity: 0;
}
.mselect__toggle:focus-visible ~ .mselect__label {
  outline: 2px solid var(--c-primary);
}
html:not([dir=rtl]) .mselect__list {
  left: 0;
}
html[dir=rtl] .mselect__list {
  right: 0;
}
.mselect__list {
  transition: transform 150ms ease;
  position: absolute;
  top: 0;
  min-width: 100%;
  max-height: 60vh;
  overflow-y: auto;
  z-index: 111;
  background: var(--c-bg-popup);
  transform: scale(1, 0);
  transform-origin: top;
}
.mselect__toggle:checked ~ .mselect__list {
  transform: scale(1, 1);
}
@media (width <= 800px) {
  .mselect__toggle:checked ~ .mselect__list {
    position: fixed;
    top: 50%;
    transform: translateY(-50%) scale(1, 1);
  }
  dialog .mselect__toggle:checked ~ .mselect__list {
    position: absolute;
    top: 0;
    transform: scale(1, 1);
  }
}
.mselect__toggle:checked ~ .mselect__list * {
  opacity: 1;
  visibility: visible;
  transition: opacity 125ms ease-in-out 125ms;
}
.mselect__item {
  white-space: nowrap;
  display: block;
  padding: 0.3em 1em;
  visibility: hidden;
  opacity: 0;
  color: var(--c-primary);
  border-left: 3px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.mselect__item.current {
  background: var(--c-bg-zebra);
  border-color: var(--c-primary);
}
.mselect__item:hover {
  background: var(--c-primary);
  color: var(--c-over);
}
.mselect__item:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
}
.mselect__item::before {
  margin-inline-end: 0.4em;
}

.toggle-box {
  border: 1px solid var(--c-border);
  background: var(--c-bg-zebra);
  margin: 1rem 0 3rem 0;
  padding: 2rem var(---box-padding) 0;
}
.toggle-box legend {
  user-select: none;
  background: var(--c-bg-zebra);
  padding: 0.5em 1.5em;
  text-align: right;
  font-size: 1.2em;
  line-height: 26px;
}
.toggle-box legend:focus-visible {
  outline: 2px solid var(--c-primary);
}

.toggle-box--toggle legend {
  border: 1px solid transparent;
  border-top-color: var(--c-border);
  cursor: pointer;
}
.toggle-box--toggle legend::after {
  content: "▲";
  margin-left: 1ch;
}

.toggle-box--toggle-off {
  background: none;
  border-color: transparent;
  border-top-color: var(--c-border);
  border-radius: 0;
  padding-top: 0;
}
.toggle-box--toggle-off legend {
  border: 1px solid var(--c-border);
  background: none;
}
.toggle-box--toggle-off legend:hover {
  background: var(--c-bg-zebra);
}
.toggle-box--toggle-off legend::after {
  content: "▼";
}
.toggle-box--toggle-off > *:not(legend) {
  display: none;
}

/* free analysis on /analysis */
.action-menu, .analyse__tools .sub-box {
  border-bottom: 1px solid var(--c-border);
}
@media (min-width: 799.3px), (orientation: landscape) {
  .action-menu, .analyse__tools .sub-box {
    border-bottom: 3px solid var(--c-secondary);
  }
}

body {
  /* prevents scroll bar flicker on page height changes */
  overflow-y: scroll;
}

#main-wrap {
  ---main-max-width: calc(100vh - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - 5rem);
}
@media (min-width: 799.3px), (orientation: landscape) {
  #main-wrap {
    ---main-max-width: auto;
  }
}

.analyse {
  grid-area: main;
  display: grid;
}
.analyse__side {
  grid-area: side;
  justify-content: start;
}
.analyse__board {
  grid-area: board;
}
html:not([dir=rtl]) .analyse__board cg-container {
  right: 0;
}
html[dir=rtl] .analyse__board cg-container {
  left: 0;
}
.analyse__tools {
  grid-area: tools;
}
.analyse__controls {
  grid-area: controls;
}
.analyse__underboard {
  grid-area: under;
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse__underboard {
    overflow: hidden;
  }
}
.analyse__round-training {
  grid-area: round-training;
}
.analyse__puzzle {
  grid-area: puzzle;
}
.analyse .chat__members {
  grid-area: uchat;
}
.analyse .eval-gauge {
  grid-area: gauge;
  display: none;
}
.analyse .keyboard-move {
  display: none;
}
.analyse {
  ---chat-height: fit-content(0);
}
.analyse--wiki {
  ---chat-height: 0;
}
.analyse .mchat {
  margin: var(---block-gap) 0 0 0;
}
.analyse {
  grid-template-rows: auto auto auto minmax(20em, 40vh);
  grid-template-areas: "board" "controls" "kb-move" "tools" "side" "round-training" "under" "chat" "uchat";
}
@media (min-width: 799.3px), (orientation: landscape) {
  .analyse {
    grid-template-columns: var(---col2-uniboard-width) var(---block-gap) minmax(240px, 400px);
    grid-template-rows: fit-content(0);
    grid-template-areas: "board      gauge tools" "kb-move    .     controls" "under      .     controls" "under      .     round-training" "under      .     side" "chat       .     side" "uchat      .     side";
    row-gap: 0;
  }
  .analyse__side {
    margin: var(---block-gap) 0 0 0;
  }
  .analyse .chat__members {
    margin: calc(var(---block-gap) / 2) 0 0 0;
  }
  .analyse__underboard {
    margin-top: var(---block-gap);
  }
  .analyse .eval-gauge {
    display: block;
  }
  .analyse .keyboard-move {
    display: block;
    grid-area: kb-move;
    margin: var(---block-gap);
    margin: calc(var(---block-gap) / 2) 0 0 0;
  }
}
@media (max-width: 799.29px) and (orientation: landscape) {
  .analyse {
    grid-template-columns: minmax(55vmin, calc(100vh - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - var(---block-gap))) var(---block-gap) minmax(200px, 240px);
  }
}
@media (min-width: 1259.3px) {
  .analyse {
    grid-template-columns: minmax(var(---col3-uniboard-side-min, 250px), 350px) var(---block-gap) var(---col3-uniboard-width) var(---block-gap) minmax(240px, 400px);
    grid-template-rows: auto var(---chat-height) auto 2.5em 1fr;
    grid-template-areas: "side    . board   gauge tools" "chat    . board   gauge tools" "uchat   . kb-move .     controls" "uchat   . under   .     controls" "uchat   . under   .     round-training";
  }
  .analyse__side {
    margin-top: 0;
  }
  .analyse .mchat {
    margin-top: 0;
    min-height: 10em;
  }
  .analyse .crosstable__users {
    flex: 7 1 auto;
  }
}

.blind-mode .analyse {
  display: block;
}

.analyse__tools {
  position: relative;
  background: var(--c-bg-box);
}
.analyse__tools .ceval {
  flex: 0 0 44px;
}
.analyse__tools .sub-box {
  user-select: none;
}
.analyse__tools .sub-box .title {
  font-size: 0.9rem;
  line-height: 1.9em;
  background: var(--m-secondary_bg--mix-40);
  padding: 0 7px;
}
.analyse__tools .sub-box .title a {
  font-weight: bold;
}
.analyse__tools .comp-off__hint {
  opacity: 0.8;
  padding: 0.3em 1em;
  text-align: center;
}
.analyse__tools .comp-off__hint button {
  margin-inline-start: 1em;
  color: var(--c-link);
}
.analyse__tools .comp-off__hint button:hover {
  color: var(--c-link-hover);
}

.analyse__moves {
  user-select: none;
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  /* required so line::before scrolls along the moves! */
}
.analyse__moves .result,
.analyse__moves .status {
  background: var(--c-bg-zebra);
  text-align: center;
}
.analyse__moves .result {
  border-top: 1px solid var(--c-border);
  font-weight: bold;
  font-size: 1.2em;
  padding: 5px 0 3px 0;
}
.analyse__moves .status {
  font-size: 1em;
  font-style: italic;
  padding-bottom: 7px;
}
.analyse__moves button.next {
  border: 0;
  background: var(--c-bg-box);
  color: var(--c-link);
  padding: 0.5em;
  width: 100%;
  transition: all 150ms ease;
}
.analyse__moves button.next:hover {
  color: var(--c-link-hover);
}
.analyse__moves button.next::before {
  margin-inline-end: 0.3em;
}
.analyse__moves button.next.highlighted {
  background: var(--m-primary_bg--mix-80);
  color: var(--c-over);
}
.analyse__moves button.next.highlighted:hover {
  background: var(--c-primary);
}

.analyse__controls {
  height: 3rem;
  align-items: stretch;
}
.analyse__controls .cmn-toggle {
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
}
.analyse__controls .jumps {
  flex: 3 1 auto;
}
.analyse__controls .fbt {
  flex: 0 0 2.5rem;
  transition: visibility 0s;
}
.analyse__controls .active {
  margin-top: -3px;
  padding-top: 3px;
  color: var(--c-over);
}
.analyse__controls .fbt.latent {
  background-color: var(--m-secondary--fade-50);
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse__tools .sub-box {
    order: 0;
  }
  .analyse__tools .ceval,
  .analyse__tools .pv_box,
  .analyse__tools .analyse__fork,
  .analyse__tools .gamebook-edit {
    order: 1;
  }
  .analyse__tools .analyse__moves {
    order: 2;
  }
  .analyse__tools .ceval .engine {
    margin-inline-start: 12px;
  }
  .analyse__tools .ceval .cmn-toggle,
  .analyse__tools .ceval pearl {
    display: none;
  }
  .analyse__controls {
    padding-top: 6px;
    height: 5rem;
    touch-action: pan-y;
  }
  .analyse__controls .jumps {
    order: 1;
  }
  .analyse__controls [data-act=opening-explorer] {
    order: 2;
  }
  .analyse__controls [data-act=menu] {
    order: 3;
  }
  .analyse__controls .fbt {
    flex: 3;
    margin: 3px 2px 0;
    border: 1px solid var(--m-clearer--fade-95);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    background: var(--m-bg_bg-page--mix-50);
  }
  .analyse__controls .scrub-help {
    margin-inline: 3px;
    align-self: center;
    font-family: lichess;
    font-size: 1.1em;
    color: var(--c-border);
  }
  .analyse__controls .jumps {
    flex: 40%;
  }
  .analyse__controls .jumps:has([data-act=first]) {
    padding-inline: 8px;
    flex: 50%;
  }
  .analyse__controls .jumps .fbt {
    margin: 5px 2px;
    background: var(--m-bg_bg-page--mix-50);
    border: 1px solid var(--m-clearer--fade-95);
  }
  .analyse__controls .jumps .fbt[data-act=first],
  .analyse__controls .jumps .fbt[data-act=last] {
    flex: 1.6;
  }
  .analyse__controls .fbt.active {
    padding-top: 0;
    border-bottom: none;
  }
  .analyse__controls eval {
    pointer-events: none;
  }
}
@media (max-width: 799.29px) and (orientation: portrait) and (min-width: 499.3px) {
  .analyse__controls eval {
    font-size: 1.2em;
  }
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse__controls [data-mode] {
    position: relative;
    overflow-x: hidden;
    min-width: max(24vw, 80px);
    display: flex;
    align-items: center;
    text-shadow: none;
  }
  .analyse__controls [data-mode] .cmn-toggle {
    margin-inline-start: 10px;
  }
}
@media (max-width: 799.29px) and (orientation: portrait) and (max-width: 399.29px) {
  .analyse__controls [data-mode] .cmn-toggle {
    transform: scale(0.7);
    margin-inline-start: 0;
  }
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse__controls [data-mode] .cmn-toggle label {
    background-color: var(--c-font-dimmer) !important;
  }
  .analyse__controls [data-mode]::before,
  .analyse__controls [data-mode]::after {
    font-size: 1.3em;
    font-family: lichess;
  }
  .analyse__controls [data-mode=practice]::before {
    content: "\e05c";
    padding-inline-end: 8px;
  }
  .analyse__controls [data-mode=retro]::before {
    font-size: 1.5em;
    content: "\e018";
  }
  .analyse__controls [data-mode=practice].active::after,
  .analyse__controls [data-mode=retro].active::after {
    position: absolute;
    top: -2px;
    right: 1px;
    font-size: 0.9em;
    color: var(--m-bg_secondary--mix-50);
    content: "\e02a";
  }
  .analyse__controls [data-mode=ceval]::after {
    content: "\e04c";
    color: var(--c-font-dimmer);
    padding-inline-end: 10px;
  }
  .analyse__controls [data-mode=ceval]:has(eval)::after {
    content: "";
  }
  .analyse__controls [data-mode] .bar {
    display: none;
  }
  .analyse__controls [data-mode]:not(.active) .bar {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    top: 0;
    height: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in, opacity 0.6s ease-out;
    animation: computing 1.6s linear reverse infinite paused;
    background: linear-gradient(to bottom, var(--m-good--fade-90), var(--m-good--fade-30), var(--m-good--fade-90)) 0 0/100% 100% no-repeat, linear-gradient(45deg, transparent, var(--m-good--fade-30), transparent) -100% 0/200% 100% no-repeat;
  }
  .analyse__controls [data-mode].computing:not([data-mode=ceval].active) .bar {
    opacity: 1;
    animation-play-state: running;
  }
  @keyframes computing {
    to {
      background-position: 0 0, 200% 0;
    }
  }
  .analyse[data-active-tool] .analyse__tools,
  .analyse[data-active-mode] .analyse__tools {
    border-radius: 0 0 7px 7px;
  }
  .analyse[data-active-tool] .analyse__tools,
  .analyse[data-active-mode=retro] .analyse__tools {
    border-top: 3px solid var(--c-secondary);
  }
  .analyse[data-active-mode=practice] .analyse__tools .ceval {
    order: 0;
  }
  .analyse[data-active-mode=practice] .analyse__fork,
  .analyse[data-active-mode=retro] .analyse__fork {
    display: none;
  }
}
.analyse__tools:has(.action-menu) {
  box-shadow: none;
}

.action-menu {
  position: absolute;
  z-index: 99;
  inset: 0;
  background: var(--c-bg-opaque);
  overflow: auto;
  padding: var(---block-gap);
  gap: var(---block-gap);
}
.action-menu h2 {
  font-size: 1em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  display: table;
}
.action-menu h2::before, .action-menu h2::after {
  border-top: 1px solid var(--c-border);
  content: "";
  display: table-cell;
  position: relative;
  top: 0.5em;
  width: 45%;
}
html:not([dir=rtl]) .action-menu h2::before {
  right: 8px;
}
html[dir=rtl] .action-menu h2::before {
  left: 8px;
}
html:not([dir=rtl]) .action-menu h2::after {
  left: 8px;
}
html[dir=rtl] .action-menu h2::after {
  right: 8px;
}
.action-menu__tools {
  display: grid;
  gap: 0 1em;
  grid-template-columns: repeat(auto-fill, minmax(15ch, 1fr));
}
.action-menu__tools button,
.action-menu__tools > a {
  color: var(--c-font);
  display: flex;
  align-items: center;
  line-height: 1.2em;
  min-height: 3em;
}
.action-menu__tools button::before,
.action-menu__tools > a::before {
  padding-inline-end: 8px;
  font-size: 1.7em;
}
.action-menu__tools button:hover,
.action-menu__tools > a:hover {
  color: var(--c-primary);
}
.action-menu .autoplay .button {
  font-size: 0.9em;
  flex: 1 1 auto;
  padding: 7px 0;
  text-align: center;
}
.action-menu .autoplay .button-empty {
  color: var(--c-font-dim);
}
.action-menu form.delete {
  text-align: right;
  margin-top: 6px;
}
.action-menu form.delete .button::before {
  font-size: 1.2em;
}
.action-menu .cmn-toggle-wrap {
  flex: 0 0 auto;
}
.action-menu .cmn-toggle-wrap label {
  flex: 4 1 auto;
  cursor: pointer;
  white-space: nowrap;
}
.action-menu .cmn-toggle-wrap input[type=range] {
  flex: 1 4 auto;
  height: 1.6em;
  width: 100%;
  margin: 0 1ch;
  padding: 0;
}
.action-menu .cmn-toggle-wrap .range_value {
  direction: ltr;
  flex: 0 0 auto;
  display: block;
  text-align: right;
}
.action-menu span {
  justify-content: start;
  gap: 0.6em;
}

.explorer__config section {
  margin: 0.4em var(---block-gap) 0 var(---block-gap);
}
.explorer__config section.save {
  text-align: center;
  padding: 1em 0 0.7em 0;
}
.explorer__config label {
  font-weight: bold;
  display: block;
  line-height: 2em;
}
.explorer__config .choices {
  display: flex;
}
.explorer__config .choices button {
  transition: all 150ms ease;
  flex-grow: 1;
  padding: 5px 0;
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--c-border);
  border-width: 1px 0 1px 1px;
  text-transform: capitalize;
}
.explorer__config .choices button:last-child {
  border-right-width: 1px;
}
.explorer__config .choices button[aria-pressed=true], .explorer__config .choices button.active {
  background: var(--c-secondary);
  color: var(--c-over);
  text-shadow: 1px 0 0 rgba(0, 0, 0, 0.5);
  font-weight: bold;
}
.explorer__config .choices button[aria-pressed=true] {
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2) inset;
}
.explorer__config .name .player-name {
  border-radius: 7px !important;
  font-weight: bold;
  padding-left: 1em;
  padding-right: 1em;
  text-transform: none;
  margin-inline-end: 0.5em;
}
.explorer__config .name .player-name.active:hover {
  background: var(--m-secondary_white--mix-80);
}
.explorer__config .name .color {
  margin-inline-start: 1ch;
}
.explorer__config .toggle {
  font-weight: bold;
  display: block;
  line-height: 2em;
}
.explorer__config .date input {
  border: none;
  background: none;
  padding: 0.1em 0.5em;
}
.explorer__config .date input:invalid {
  background: var(--m-bad_bg--mix-30);
}
.explorer__config__player__choice {
  max-width: 70ch !important;
}
.explorer__config__player__choice > div {
  overflow: visible !important;
}
.explorer__config__player__choice .input-wrapper {
  overflow: visible !important;
  position: relative;
  display: inline-block;
  padding-top: 2em;
  margin-bottom: 2em;
}
.explorer__config__player__choice .previous {
  gap: 0.4em;
}
.explorer__config__player__choice .previous .button {
  margin: 0.3em 0.2em;
  text-transform: none;
}
html:not([dir=rtl]) .explorer__config__player__choice .previous .remove {
  right: -0.65em;
}
html[dir=rtl] .explorer__config__player__choice .previous .remove {
  left: -0.65em;
}
.explorer__config__player__choice .previous .remove {
  margin-inline-start: -1.75em;
  width: 1.75em;
  height: 1.75em;
  top: -1.5em;
  background-color: var(--c-bg-popup);
  position: relative;
  border-radius: 50%;
}
.explorer__config__player__choice .previous .remove:hover {
  background-color: var(--c-error);
}

.explorer-box {
  transition: all 150ms ease;
  position: relative;
  flex: 3 1 0;
  white-space: nowrap;
  transition-delay: 0.3s;
  overflow-x: hidden;
  overflow-y: auto;
  font-size: 0.9em;
}
.explorer-box.reduced {
  flex: 0.3 3 0;
}
.explorer-box.reduced:hover {
  flex: 1 2 0;
}
.explorer-box .overlay {
  display: none;
}
.explorer-box.loading .overlay {
  display: block;
}
.explorer-box tbody {
  transition: all 150ms ease;
}
.explorer-box.loading tbody {
  opacity: 0.4;
}
.explorer-box .title {
  user-select: text;
}
.explorer-box .explorer-title {
  align-items: stretch;
  font-size: 0.9rem;
  line-height: 1.9em;
  padding: 0;
  background: var(--m-secondary_bg--mix-30);
}
.explorer-box .explorer-title .ddloader {
  padding-inline-start: 7px;
}
.explorer-box .explorer-title .active {
  direction: ltr;
  padding: 0 7px;
  color: var(--c-font-clear);
  background: var(--m-secondary_bg--mix-40);
}
.explorer-box .explorer-title .active strong {
  margin-inline-end: 0.5ch;
}
.explorer-box .explorer-title .active.player {
  cursor: pointer;
}
.explorer-box .explorer-title .long {
  letter-spacing: -0.1ch;
}
.explorer-box .explorer-title button {
  display: inline-block;
  padding: 0 0.5ch;
  margin-inline-start: 1px;
  color: var(--c-font-dim);
}
.explorer-box .explorer-title button:hover {
  color: var(--c-font-clear);
  background: var(--m-secondary_bg--mix-50);
}
.explorer-box .empty {
  display: flex;
  flex-flow: column;
  height: 100%;
}
.explorer-box .empty .message {
  text-align: center;
}
.explorer-box tr:nth-child(even) {
  background: var(--c-bg-zebra);
}
.explorer-box tr:hover {
  background: var(--m-secondary_bg--mix-20);
}
.explorer-box td {
  cursor: pointer;
  padding-inline-start: 7px;
}
.explorer-box .moves {
  will-change: transform, opacity; /* Prevents flicker in Safari */
}
.explorer-box .moves th {
  font-size: 0.8rem;
  line-height: 1.8em;
  background: var(--m-secondary_bg--mix-40);
  padding-inline-start: 7px;
}
.explorer-box .moves td:first-child {
  line-height: 30px;
  padding-inline-start: 7px;
}
.explorer-box .moves td:nth-child(2),
.explorer-box .moves td:nth-child(3) {
  font-size: 0.75em;
  text-align: right;
}
.explorer-box .moves td:last-child {
  width: 100%;
  padding-inline-end: 7px;
}
.explorer-box .moves tbody tr.sum {
  /* sum row */
  background: var(--m-primary_bg--mix-25);
  font-weight: bold;
}
@media (min-width: 799.3px) and (min-width: 399.3px), (orientation: landscape) and (min-width: 399.3px) {
  .explorer-box .moves tbody tr.sum {
    position: sticky;
    bottom: 0;
  }
}
.explorer-box .moves tbody tr.sum td {
  cursor: default;
}
.explorer-box .bar span {
  text-align: center;
  display: inline-block;
  overflow: hidden;
  vertical-align: middle;
  background-clip: padding-box;
  border-width: 1px 0;
  border-style: solid;
  border-color: var(--m-font--fade-83);
  height: 16px;
  line-height: 14px;
  font-size: 0.9em;
  transition: width 1s;
}
.explorer-box .white {
  background: #ccc;
  box-shadow: 0 -5px 7px rgba(0, 0, 0, 0.25) inset;
}
html.light .explorer-box .white {
  background: #fff;
  box-shadow: 0 -5px 7px rgba(0, 0, 0, 0.1) inset;
}
html:not(.light) .explorer-box .white {
  color: #222;
}
.explorer-box .draws,
.explorer-box .black {
  color: #ddd;
  box-shadow: 0 5px 7px rgba(255, 255, 255, 0.1) inset;
}
html.light .explorer-box .draws,
html.light .explorer-box .black {
  color: #fff;
  box-shadow: 0 5px 7px rgba(255, 255, 255, 0.2) inset;
}
.explorer-box .draws {
  background: #666;
}
html.light .explorer-box .draws {
  background: #a0a0a0;
}
.explorer-box .black {
  background: #333;
}
html.light .explorer-box .black {
  background: #555;
}
.explorer-box .black {
  color: #ddd;
}
.explorer-box .games {
  width: 100%;
}
.explorer-box .games td {
  padding-inline-start: 7px;
  padding-inline-end: 0;
  padding-top: 5px;
  padding-bottom: 5px;
  max-width: 110px;
}
.explorer-box .games td:nth-child(2) {
  max-width: none;
}
.explorer-box .games td span {
  display: block;
}
.explorer-box .games result {
  display: block;
  text-align: center;
  padding: 3px 5px;
  border-radius: 3px;
  font-size: 0.9em;
}
.explorer-box .game_menu {
  background: var(--c-secondary);
  cursor: default;
  padding: 0;
}
.explorer-box .game_menu .game_title {
  text-align: center;
  color: var(--c-over);
  margin: 3px 0 1px 0;
}
.explorer-box .game_menu .menu {
  display: flex;
  justify-content: space-between;
  text-transform: uppercase;
}
.explorer-box .game_menu .menu a {
  color: #fff;
  padding: 4px 8px;
}
.explorer-box .game_menu .menu a:hover {
  background: rgba(255, 255, 255, 0.2);
}
.explorer-box .tablebase {
  width: 100%;
}
.explorer-box .tablebase td:first-child {
  font-size: 14px;
  line-height: 30px;
  padding-inline-start: 7px;
}
.explorer-box .tablebase td:last-child {
  padding-inline-end: 7px;
  text-align: right;
}
.explorer-box .tablebase result {
  padding: 3px 5px;
  margin-inline-start: 5px;
  border-radius: 3px;
  font-size: 0.9em;
}
html:not([dir=rtl]) .explorer-box .toconf {
  right: 0;
}
html[dir=rtl] .explorer-box .toconf {
  left: 0;
}
.explorer-box .toconf {
  position: absolute;
  top: 0;
  cursor: pointer;
  display: block;
  font-size: 1.2em;
  width: 1.5em;
  line-height: 1.5em;
  text-align: center;
  opacity: 0.8;
}
.explorer-box .toconf:hover {
  opacity: 1;
}
.explorer-box .message {
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
  font-style: italic;
}
.explorer-box .message strong {
  font-weight: bold;
  margin: 1em 0;
}
.explorer-box:not(.reduced) .message h3, .explorer-box.reduced:hover .message h3 {
  font-weight: bold;
}
.explorer-box .message p {
  white-space: normal;
  padding: 0 8px;
  margin: 0 0 8px 0;
}
.explorer-box.reduced .message p, .explorer-box.reduced .message button {
  display: none;
}
.explorer-box.reduced:hover .message p, .explorer-box.reduced:hover .message button {
  display: block;
}
.explorer-box .message .button {
  margin: 0 2em;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .explorer-box .explorer-title {
    line-height: 3em;
  }
  .explorer-box button.toconf {
    font-size: 1.5em;
    margin-top: 2px;
    margin-inline-end: 8px;
  }
}
.training-box {
  flex: 1.5 1 0px;
}
.training-box .feedback {
  flex: 1 1 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .training-box .feedback.view, .training-box .feedback.win {
    flex-flow: row;
  }
}
.training-box .feedback .find,
.training-box .feedback .fail {
  padding-top: 5px;
  padding-bottom: 8px;
}
.training-box .progress {
  margin-top: 5px;
  opacity: 0.8;
  width: 100%;
  height: 4px;
  background: var(--c-shade);
}
.training-box .progress div {
  background: var(--c-good);
  height: 4px;
  transition: width 0.5s;
  max-width: 100%;
}
.training-box .player {
  display: flex;
  align-items: center;
  margin: 0 1em;
}
.training-box .no-square {
  width: 64px;
  height: 64px;
  margin-inline-end: 10px;
}
.is3d .training-box div.no-square {
  height: 82px;
}
.training-box piece {
  position: inherit;
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.training-box .icon {
  display: block;
  width: 64px;
  height: 64px;
  margin-inline-end: 10px;
  font-size: 64px;
  line-height: 64px;
  text-align: center;
}
.training-box .instruction {
  flex: 1;
}
.training-box .instruction > strong {
  font-weight: normal;
  font-size: 1.2em;
}
.training-box .choices {
  line-height: 1.6em;
  margin: 5px 0 -5px 0;
}
.training-box .choices a {
  display: block;
}

.practice-box {
  user-select: none;
  flex: 0 0 135px;
}
.practice-box .comment {
  flex: 0 0 30px;
  display: flex;
  align-items: stretch;
  background: var(--c-bg-zebra);
  white-space: nowrap;
  line-height: 30px;
}
.practice-box .comment move {
  cursor: pointer;
  margin-inline-start: 5px;
  color: var(--c-link);
  transition: 0.3s;
}
.practice-box .comment .next {
  border: 0;
  background: var(--m-primary_bg--mix-80);
  color: var(--c-over);
  width: 100%;
  transition: all 150ms ease;
}
.practice-box .comment .next:hover {
  background: var(--c-primary);
}
.practice-box .progress div {
  background: var(--c-shade);
}
.practice-box.goodMove .progress div {
  background: var(--c-good);
  color: #fff;
}
.practice-box.inaccuracy .title, .practice-box.inaccuracy .progress div {
  background: var(--c-brag);
  color: #fff;
}
.practice-box.mistake .title, .practice-box.blunder .title, .practice-box.mistake .progress div, .practice-box.blunder .progress div {
  background: var(--c-bad);
  color: #fff;
}
.practice-box .comment .wait {
  padding-inline-start: 15px;
}
.practice-box .verdict {
  font-weight: bold;
  margin-inline-end: 10px;
  display: flex;
}
.practice-box .verdict::before {
  width: 30px;
  height: 100%;
  color: #fff;
  margin-inline-end: 7px;
  text-align: center;
  font-size: 1.4em;
  font-weight: normal;
}
.practice-box.goodMove .verdict {
  color: var(--c-good);
}
.practice-box.goodMove .verdict::before {
  background: var(--c-good);
  content: "✓";
  font-size: 1.7em;
}
.practice-box.inaccuracy .verdict {
  color: var(--c-brag);
}
.practice-box.inaccuracy .verdict::before {
  background: var(--c-brag);
  content: "?";
}
.practice-box.mistake .verdict, .practice-box.blunder .verdict {
  color: var(--c-bad);
}
.practice-box.mistake .verdict::before, .practice-box.blunder .verdict::before {
  background: var(--c-bad);
  content: "✗";
}

.ceval .practice-mode {
  justify-content: center;
  flex: 1 0 auto;
  height: 38px;
  width: 64px;
  text-align: center;
  font-weight: bold;
}
.ceval .practice-mode p {
  margin: 0;
  font-size: 1rem;
}
.ceval .practice-mode p.secondary {
  font-size: 0.9rem;
  opacity: 0.6;
}

.ceval p.status {
  margin: 0;
  color: var(--c-primary);
}

.analyse__fork {
  flex: 0 0 auto;
}
.analyse__fork move {
  user-select: none;
  background: var(--m-primary_bg--mix-25);
  color: var(--c-font-clear);
  flex: 0 0 50%;
  cursor: pointer;
  padding: 0.2em 1em;
  border-bottom: 1px solid var(--c-bg-box);
  -webkit-touch-callout: none;
}
.analyse__fork move:nth-child(odd) {
  border-inline-end: 1px solid var(--c-bg-box);
}
.analyse__fork move.correct {
  background: var(--m-secondary_bg--mix-25);
}
.analyse__fork move.wrong {
  background: var(--m-bad_bg--mix-25);
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse__fork move {
    justify-content: center;
    padding-block: 0.5em;
    font-size: 1.5em;
    border: 1px solid var(--c-bg-box);
    flex: 1 1 auto;
  }
  .analyse__fork move index,
  .analyse__fork move eval {
    display: none;
  }
}
.analyse__fork glyph {
  margin-inline-start: 2px;
}
.analyse__fork eval {
  flex: 3 0 auto;
  text-align: right;
  font-size: 0.9em;
}
@media (hover: hover) {
  .analyse__fork move:hover, .analyse__fork:not(:hover) move.selected {
    background: var(--c-primary);
    color: #fff;
  }
  .analyse__fork move:hover.correct, .analyse__fork:not(:hover) move.selected.correct {
    background: var(--c-secondary);
  }
  .analyse__fork move:hover.wrong, .analyse__fork:not(:hover) move.selected.wrong {
    background: var(--c-bad);
  }
}

.analyse__side {
  align-self: start;
}
.analyse__side .back-to-game {
  text-align: center;
  margin-top: 2em;
}
@media (min-width: 1259.3px) {
  .analyse__side .back-to-game {
    margin-top: 10vh;
  }
}
.analyse__side .back-to-game .button {
  margin: 0 auto;
}
.analyse__side .analyse__wiki {
  margin: 2vh 0;
  flex: 1 1 auto;
}
@media (min-width: 1259.3px) {
  .analyse__side .analyse__wiki {
    flex: 1 1 0;
  }
}
.analyse__side .analyse__wiki.empty {
  visibility: hidden;
}
.analyse--wiki .analyse__side {
  align-self: auto;
}
.analyse__wiki {
  overflow-y: auto;
  padding: 1rem 1rem 0 1rem;
  scrollbar-gutter: stable both-edges;
}
.analyse__wiki p {
  text-align: justify;
  line-height: 1.4;
}
.analyse__wiki ul,
.analyse__wiki ol {
  line-height: 1.4;
  margin-bottom: 1rem;
  padding-left: 1rem;
}
.analyse__wiki ul li {
  list-style: disc;
}
.analyse__wiki ol li {
  list-style: decimal;
}
.analyse__wiki h1,
.analyse__wiki h2 {
  font-size: 17px;
}
@media (min-width: 300px) {
  .analyse__wiki h1,
  .analyse__wiki h2 {
    font-size: calc(17px + 6 * (100vw - 300px) / 900);
  }
}
@media (min-width: 1200px) {
  .analyse__wiki h1,
  .analyse__wiki h2 {
    font-size: 23px;
  }
}
.analyse__wiki h1,
.analyse__wiki h2 {
  margin-bottom: 1rem;
}
.analyse__wiki h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 0.7rem;
}

#analyse-cm {
  user-select: none;
  background: var(--c-bg-box);
  position: absolute;
  display: none;
  z-index: 108;
  cursor: default;
  overflow: hidden;
}
#analyse-cm.visible {
  display: block;
}
#analyse-cm .title {
  padding: 0.4em;
  text-align: center;
  font-size: 1.2em;
  border-bottom: 1px solid var(--c-border);
  margin: 0;
}
#analyse-cm a {
  padding-inline-start: 0.3em;
  padding-inline-end: 0.6em;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  color: var(--c-font);
}
#analyse-cm a::before {
  width: 2em;
  text-align: center;
}
#analyse-cm a:hover {
  background: var(--m-primary--fade-70);
}
#analyse-cm.transparent {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.material div {
  display: inline-block;
  margin-inline-start: 10px;
}
.material mpiece {
  margin-inline-start: -10px;
  background-size: cover;
  display: inline-block;
}
.material mpiece.pawn {
  background-image: url("../hashed/P.cac5d269.svg");
}
.material mpiece.bishop {
  background-image: url("../hashed/B.ee21cafb.svg");
}
.material mpiece.knight {
  background-image: url("../hashed/N.a9af3b45.svg");
}
.material mpiece.rook {
  background-image: url("../hashed/R.49e9b3ca.svg");
}
.material mpiece.queen {
  background-image: url("../hashed/Q.b1cb605d.svg");
}
.material mpiece.king {
  background-image: url("../hashed/K.f31af407.svg");
}
html.transp .material mpiece {
  filter: brightness(1.3) drop-shadow(0 1px 1px #000);
}
html:not([dir=rtl]) .analyse__player_strip {
  right: 0;
}
html[dir=rtl] .analyse__player_strip {
  left: 0;
}
.analyse__player_strip {
  position: absolute;
  display: flex;
}
.analyse__player_strip.top {
  top: -20px;
  z-index: 107;
}
.is3d .analyse__player_strip.top {
  top: -55px;
}
.analyse__player_strip.bottom {
  top: var(---cg-height, 100%);
  z-index: 1;
}
.is3d .analyse__player_strip.bottom {
  top: calc(var(---cg-height, 100%) + 15px);
}
.analyse__player_strip {
  /* Where to put them in col1 layout? It moves the entire board and controls down for little benefit */
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse__player_strip {
    display: none;
  }
}

.analyse__clock {
  padding: 0 0.5em;
  margin-inline-start: 12px;
  height: 20px;
  font-weight: bold;
  text-align: center;
}
.analyse__clock.active {
  background: var(--m-primary_bg--mix-30);
  box-shadow: none;
}
.analyse__clock tenths {
  font-size: 80%;
}
.analyse__clock i {
  font-size: 0.7em;
  margin-inline-end: 0.4em;
  color: var(--c-accent);
}

.material {
  padding-inline-end: 1px;
}
.material mpiece {
  width: 20px;
  height: 20px;
}
.material mpiece.pawn {
  margin-inline-start: -10px;
}
.material score {
  margin-top: -2px;
}

.material-top {
  margin-top: -1px;
}

.material-bottom {
  margin-top: 1px;
}

.analyse__persistence__help {
  font-size: 0.9em;
  background: var(--c-bg-zebra);
  padding: 0.4em 0.8em;
  margin: 0;
}
.analyse__persistence__help i {
  font-size: 1.5em;
  margin-right: 0.4em;
}
.analyse__persistence__actions {
  font-size: 0.9em;
}
.analyse__persistence__actions .button::before {
  margin-right: 0.4em;
}

.keyboard-help td.mouse li {
  list-style: disc inside;
  margin-inline-start: 1em;
}

.copyables .pair {
  position: relative;
}
.copyables .name {
  flex: 0 0 5ch;
  font-weight: bold;
  color: var(--c-font-dim);
}
.copyables .copyable {
  flex: 1 1 auto;
}
.copyables .pgn {
  margin: 1em 0;
}
.copyables .pgn textarea {
  min-height: 6em;
  white-space: pre-wrap;
  overflow-x: hidden;
}
.copyables .pgn textarea.is-error {
  background: var(--m-bad_bg--mix-20);
  box-shadow: 0 0 13px 2px var(--m-bad_bg--mix-20);
}
.copyables .bottom-item {
  position: absolute;
  top: 100%;
  visibility: hidden;
  opacity: 0;
  transition: all 150ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .copyables .bottom-item {
    transition: all 1ms !important;
  }
}
.copyables .bottom-error {
  left: 6ch;
  margin-top: 0.5em;
  font-size: 90%;
  color: var(--c-bad);
}
.copyables .bottom-error::before {
  margin-right: 0.4em;
}
.copyables .bottom-error.is-error {
  visibility: visible;
  opacity: 1;
}
html:not([dir=rtl]) .copyables .bottom-action {
  right: 0;
}
html[dir=rtl] .copyables .bottom-action {
  left: 0;
}
.copyables .bottom-action {
  text-align: right;
}
.copyables textarea:focus ~ .bottom-action,
.copyables .bottom-action:active,
.copyables .bottom-action:focus-visible {
  visibility: visible;
  opacity: 1;
}

.mselect {
  font-size: 1.5em;
}
.mselect label span::before,
.mselect a::before {
  line-height: 0;
}

.jump-960 {
  margin-top: 1em;
  margin-bottom: 1em;
}
.jump-960 .control-960 {
  margin-top: 0.7em;
}
.jump-960 .control-960 button {
  margin-left: 1em;
}

/*# sourceMappingURL=analyse.free.css.map */
