.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;
}

.analysis-settings-view fieldset legend, .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;
}

.analyse__controls .fbt:not(.active, :hover) {
  color: var(--c-font-page);
  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 1px 3px -2px #737373, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 3)/.8);
}

:where(html.light) .analyse__clock, :where(html.light) #analyse-cm .title, #analyse-cm :where(html.light) .title, :where(html.light) .analyse__tools .comp-off__hint, .analyse__tools :where(html.light) .comp-off__hint, :where(html.light) .ceval, :where(html.light) .cmn-toggle input:disabled + label:before, .cmn-toggle :where(html.light) input:disabled + label:before, :where(html.light) .cmn-toggle input:disabled + label:after, .cmn-toggle :where(html.light) input:disabled + label:after, :where(html.light) .crosstable__users, :where(html.light) .crosstable__score {
  box-shadow: inset 0 3px 3px -2px #fff6, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8);
}

.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 1px 3px -2px #737373, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 3)/.8), 0 1px 3px 0 #0003;
}

:where(html.light) .explorer__config .choices button, .explorer__config .choices :where(html.light) button, :where(html.light) .cmn-toggle label:after, .cmn-toggle :where(html.light) label:after, :where(html.light) .crosstable povs:hover, .crosstable :where(html.light) povs:hover, :where(html.light) .mselect__label {
  box-shadow: inset 0 3px 3px -2px #fff6, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8), 0 1px 3px 0 #0000002e;
}

.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: .5px .5px 0 rgb(from var(--c-dimmer) r g b/calc(alpha * .8)) !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 1px 3px -2px var(--c-border-light), inset 0 -5px 16px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8), 0 2px 4px 0 #0000003d;
}

:where(html.light) .explorer__config .choices button:hover:not(.disabled, :disabled, [disabled]), .explorer__config .choices :where(html.light) button:hover:not(.disabled, :disabled, [disabled]), :where(html.light) .cmn-toggle label:hover:not(.disabled, :disabled, [disabled]):after, .cmn-toggle :where(html.light) label:hover:not(.disabled, :disabled, [disabled]):after, :where(html.light) .crosstable povs:hover:not(.disabled, :disabled, [disabled]), .crosstable :where(html.light) povs:hover:not(.disabled, :disabled, [disabled]), :where(html.light) .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 4px 3px -2px #fff6, inset 0 -5px 8 16px -3px hsl(from var(--c-body-gradient) h s calc(l + 7)/.8), 0 2px 4px 0 #00000036;
}

.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));
}

:where(html.transp) .explorer__config .choices button:hover:not(.disabled, :disabled, [disabled]), .explorer__config .choices :where(html.transp) button:hover:not(.disabled, :disabled, [disabled]), :where(html.transp) .cmn-toggle label:hover:not(.disabled, :disabled, [disabled]):after, .cmn-toggle :where(html.transp) label:hover:not(.disabled, :disabled, [disabled]):after, :where(html.transp) .crosstable povs:hover:not(.disabled, :disabled, [disabled]), .crosstable :where(html.transp) povs:hover:not(.disabled, :disabled, [disabled]), :where(html.transp) .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 1px 3px -2px var(--c-border-light), inset 0 -5px 16px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8), 0 2px 4px 0 #00000026;
}

:where(html.light) :where(html.transp) .explorer__config .choices button:hover:not(.disabled, :disabled, [disabled]), .explorer__config .choices :where(html.light) :where(html.transp) button:hover:not(.disabled, :disabled, [disabled]), :where(html.light) :where(html.transp) .cmn-toggle label:hover:not(.disabled, :disabled, [disabled]):after, .cmn-toggle :where(html.light) :where(html.transp) label:hover:not(.disabled, :disabled, [disabled]):after, :where(html.light) :where(html.transp) .crosstable povs:hover:not(.disabled, :disabled, [disabled]), .crosstable :where(html.light) :where(html.transp) povs:hover:not(.disabled, :disabled, [disabled]), :where(html.light) :where(html.transp) .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 4px 3px -2px #fff6, inset 0 -5px 8 16px -3px hsl(from var(--c-body-gradient) h s calc(l + 7)/.8), 0 2px 4px 0 #0000001f;
}

.mselect__label {
  box-shadow: inset 0 1px 3px -2px #737373, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 3)/.8), 0 1px 3px 0 #0000001a;
}

:where(html.light) .mselect__label {
  box-shadow: inset 0 2px 3px -2px #fff6, inset 0 -4px 8px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8), 0 1px 3px 0 #00000014;
}

.mselect__label {
  border: 1px solid var(--c-border);
}

.mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 1px 3px -2px var(--c-border-light), inset 0 -5px 16px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8), 0 2px 4px 0 #0000001f;
}

:where(html.light) .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 4px 3px -2px #fff6, inset 0 -5px 8 16px -3px hsl(from var(--c-body-gradient) h s calc(l + 7)/.8), 0 2px 4px 0 #0000001a;
}

:where(html.transp) .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 1px 3px -2px var(--c-border-light), inset 0 -5px 16px -3px hsl(from var(--c-body-gradient) h s calc(l + 5)/.8), 0 2px 4px 0 #0000000f;
}

:where(html.light) :where(html.transp) .mselect__label:hover:not(.disabled, :disabled, [disabled]) {
  box-shadow: inset 0 4px 3px -2px #fff6, inset 0 -5px 8 16px -3px hsl(from var(--c-body-gradient) h s calc(l + 7)/.8), 0 2px 4px 0 #0000000d;
}

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

#ceval-settings, .board-menu {
  box-shadow: -1px 5px 6px #0000004d;
}

:where(html.transp) #analyse-cm, :where(html.transp) .mselect__list, :where(html.transp) .pv_box .pv-board .pv-board-square cg-board, .pv_box .pv-board .pv-board-square :where(html.transp) cg-board {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

#analyse-cm, .mselect__list, .pv_box .pv-board .pv-board-square cg-board {
  box-shadow: 0 14px 28px #00000026, 0 10px 10px #0000001f;
}

.form-check__input input:not(:disabled):focus-visible + .form-check__label {
  box-shadow: 0 0 12px var(--c-font-dimmer);
}

.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 {
  text-overflow: ellipsis;
  overflow: hidden;
}

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

.toggle-box--toggle legend:after, .mselect__label:after, .tview2 shapes:before, .cmn-toggle label:before {
  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;
}

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

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

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

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

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

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

.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, .form-check__container, .copy-me, .board-menu .setting {
  flex-flow: row;
  align-items: center;
  display: flex;
}

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

.analyse__persistence__actions, .explorer__config .date label, .mselect__label, .engine-info-popup li {
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.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 {
  flex-flow: column;
  display: flex;
}

.setting-popup, .help-container img, .help-container video, .setting-popup img, .setting-popup video, #analyse-cm, .explorer-box .games result, .explorer-box .bar span[style*="width: 100%"], .toggle-box legend, .toggle-box, .mselect__list, .mselect__label, .eval-gauge:after, .eval-gauge, .ceval .engine .cloud, .ceval .engine .infinite, .cmn-toggle label:before, .cmn-toggle label, .form-check__label, .copy-me, .analyse__tools, .crosstable {
  border-radius: var(---ui-roundness, 7px);
}

.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: var(---ui-roundness, 7px);
  border-end-start-radius: var(---ui-roundness, 7px);
}

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

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

.explorer__config .choices button:last-child, .copy-me__button {
  border-radius: 0 var(---ui-roundness, 7px) var(---ui-roundness, 7px) 0;
}

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

.analyse__tools, .crosstable {
  box-shadow: 0 2px 2px #00000014, 0 3px 1px -2px #0000002e, 0 1px 5px #0000001a;
}

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

coords {
  font-size: 8px;
}

@media (min-width: 300px) {
  coords {
    font-size: calc(.444444vw + 6.66667px);
  }
}

@media (min-width: 1200px) {
  coords {
    font-size: 12px;
  }
}

coords {
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 1px 2px #000;
  font-weight: bold;
  display: flex;
  position: absolute;
}

.coords-no coords {
  display: none;
}

coords.ranks {
  flex-flow: column-reverse;
  width: .8em;
  height: 100%;
  top: 1px;
  right: 0;
}

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

coords.files {
  text-align: left;
  flex-flow: row;
  width: 100%;
  height: 1.4em;
  bottom: 0;
  left: 0;
}

coords.files.black {
  flex-flow: row-reverse;
}

coords.files coord {
  padding-left: 4px;
}

coords coord {
  flex: auto;
}

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);
}

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

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

@media (min-width: 799.3px), (orientation: landscape) {
  .coords-out coords {
    text-shadow: none;
  }

  .coords-out coords.ranks {
    width: 12px;
    top: 0;
    right: -15px;
  }

  .coords-out coords.ranks coord {
    transform: translateY(42%);
  }

  .coords-out coords.files {
    text-align: center;
    bottom: -15px;
    left: 0;
  }

  .coords-out coords.ranks coord, .coords-out .is2d coords.files coord {
    color: var(--c-font-page) !important;
  }

  .coords-out .main-board {
    margin-bottom: 12px;
  }
}

body {
  ---board-scale: 1;
}

@media (min-width: 799.3px) and (min-height: 499.3px) {
  body {
    ---board-scale: calc((var(---zoom) / 100) * .75 + .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));
}

@supports not (width: min(1px, 2px)) {
  body {
    ---col2-uniboard-width: minmax(calc(70vmin * var(---board-scale)), calc(100vh * var(---board-scale) - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - 3rem));
    ---col3-uniboard-width: minmax(calc(70vmin * var(---board-scale)), calc(100vh * var(---board-scale) - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - 3rem));
  }
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .main-board cg-board {
    border-radius: 0;
  }
}

.board-menu {
  -webkit-user-select: none;
  user-select: none;
  background: var(--c-bg-popup);
  padding: .5em 1.5em;
}

@media (min-width: 799.3px) {
  .board-menu {
    z-index: 4;
    min-width: 100%;
    position: absolute;
    right: 0;
  }
}

@media (max-width: 799.29px) {
  .board-menu {
    border-radius: var(---ui-roundness, 7px);
    z-index: 108;
    min-width: 80%;
    position: fixed;
    left: 50%;
    transform: translate(-50%, -50%);
    top: 50% !important;
  }
}

.board-menu > div {
  text-align: start;
  gap: 2em;
}

.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: none;
}

.board-menu .setting label {
  cursor: pointer;
  flex: 4 auto;
}

body.resizing {
  -webkit-user-select: none;
  user-select: none;
}

cg-resize {
  display: none;
}

@media (min-width: 799.3px) {
  cg-resize {
    cursor: nwse-resize;
    z-index: 10;
    width: 22px;
    height: 22px;
    display: block;
    position: absolute;
    bottom: -9px;
    right: -9px;
  }

  cg-resize:before, cg-resize:after {
    content: "";
    background: #000;
    width: 12px;
    height: 1px;
    position: absolute;
    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 {
    background: var(--c-accent-cloud);
    border-radius: 50%;
  }

  .resizing cg-resize {
    background: rgb(from var(--c-secondary) r g b/calc(alpha * .5));
    border-radius: 50%;
  }
}

@media (hover: none) {
  .continue-with {
    padding: 2em;
  }
}

.continue-with > :not(:first-child) {
  margin-top: 1em;
}

.color-icon.white:before {
  content: "";
}

.color-icon.black:before, :where(html.light) .color-icon.white:before {
  content: "";
}

:where(html.light) .color-icon.black:before {
  content: "";
}

.color-icon.random:before {
  content: "";
}

.crosstable__users {
  flex: auto;
}

.crosstable {
  width: 100%;
  line-height: 1.9em;
  display: flex;
}

.crosstable fill, .crosstable povs {
  background: var(--c-bg-box);
  flex: auto;
}

.crosstable povs, .crosstable__users, .crosstable__score, .crosstable__matchup {
  text-align: center;
}

.crosstable__users {
  text-align: left;
  max-width: 40vw;
}

.crosstable__users a {
  padding-inline-start: var(---block-gap);
}

.crosstable__score {
  flex: none;
  font-weight: bold;
}

.crosstable__score span {
  padding: 0 var(---block-gap);
}

.crosstable__matchup {
  background: color-mix(in oklab, var(--c-primary) 20%, var(--c-bg));
  flex: auto;
  font-weight: bold;
}

.crosstable povs a {
  color: var(--c-font-dim);
  flex: 0 0 50%;
}

.crosstable povs:hover a {
  opacity: 1 !important;
}

.crosstable povs a.loss {
  opacity: .2;
}

.crosstable povs.current a {
  background: color-mix(in oklab, var(--c-accent) 70%, var(--c-bg));
  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: .3em;
}

.crosstable .win {
  color: var(--c-good);
  font-weight: bold;
}

.crosstable .loss {
  color: var(--c-bad);
}

.fbt {
  color: var(--c-font);
  text-transform: uppercase;
  line-height: 1.5;
  transition: all .15s;
}

@media (hover: hover) {
  .fbt:hover:not(.disabled, [disabled]) {
    background: color-mix(in oklab, var(--c-secondary) 75%, var(--c-bg));
    color: #fff;
  }
}

.fbt.active {
  color: var(--c-over);
  background: var(--c-secondary) !important;
}

.fbt.disabled, .fbt[disabled] {
  opacity: .5;
  cursor: default;
}

:where(html.transp) .copy-me {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.copy-me {
  background: var(--c-bg-input);
}

.copy-me__target {
  border: 1px solid var(--c-border);
  background: none;
  border-right: 0;
  outline: 0;
  flex: auto;
  min-height: 44px;
  padding: 0 1em;
}

.copy-me__target:is(a) {
  line-height: 40px;
}

.copy-me__target:is(a):focus-visible {
  outline-offset: -2px;
}

.copy-me__button {
  border: 1px solid var(--c-border);
  border-left: 0;
  flex: none;
  min-height: 44px;
  padding: 0 1em;
}

.form-check__container {
  -webkit-user-select: none;
  user-select: none;
}

.form-check__container .form-label {
  cursor: pointer;
  margin-bottom: 0;
}

.form-check__container:has(.form-label:hover) .form-check__label {
  border-color: var(--c-good);
}

.form-check__input {
  cursor: pointer;
  position: relative;
}

.form-check__input + .form-label {
  margin-inline-start: .75rem;
}

.form-check__label {
  background-color: var(--c-bg-input);
  border: 1px solid var(--c-border);
  cursor: pointer;
  width: 24px;
  height: 24px;
  transition: background-color .1s ease-in-out ease, border-color .1s ease-in-out ease;
  margin-bottom: 0;
  display: block;
  position: relative;
}

.form-check__label:hover {
  border-color: var(--c-good);
}

.form-check__label:after {
  content: "";
  opacity: 0;
  border-top: none;
  border-bottom: 2.5px solid #fff;
  border-left: 2.5px solid #fff;
  border-right: none;
  width: 12px;
  height: 6px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%) rotate(-45deg);
}

.form-check__input input {
  position: absolute;
}

.form-check__input input:disabled + .form-check__label {
  opacity: .6;
  cursor: not-allowed !important;
}

.form-check__input input:not(:disabled):focus-visible + .form-check__label {
  border-color: var(--c-font);
}

.form-check__input input:checked + .form-check__label {
  background-color: var(--c-good);
  border-color: var(--c-good);
}

.form-check__input input:checked:hover + .form-check__label {
  background-color: rgb(from var(--c-good) r g b/calc(alpha * .8));
}

.form-check__input input:checked + .form-check__label:after {
  opacity: 1;
}

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

.cmn-toggle label {
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  border: 1px solid var(--c-border);
  background-clip: padding-box;
  background-color: var(--c-font-dimmer);
  outline: none;
  width: 40px;
  height: 24px;
  padding: 1px;
  transition: background .15s, box-shadow .15s;
  display: block;
  position: relative;
}

.cmn-toggle label:before, .cmn-toggle label:after {
  content: "";
  width: 23px;
  height: 23px;
  display: block;
  position: absolute;
  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 {
  z-index: 1;
  text-align: center;
  content: "";
  color: var(--c-font-dimmer);
  font-size: 1em;
  line-height: 23px;
  transition: margin .15s, color .15s;
}

.cmn-toggle label:after {
  border-radius: calc(var(---ui-roundness, 7px) - 1px);
  transition: margin .15s, box-shadow .15s;
}

:where(html.transp) .cmn-toggle label:after {
  background: linear-gradient(to bottom, hsl(var(---site-hue), 7%, 22%), hsl(var(---site-hue), 5%, 19%) 100%);
}

:where(html.transp.light) .cmn-toggle label:after {
  background: linear-gradient(to bottom, hsl(var(---site-hue), 7%, 88%), hsl(var(---site-hue), 5%, 91%) 100%);
}

:where(html.transp) .cmn-toggle label:hover:after {
  background: linear-gradient(to bottom, hsl(var(---site-hue), 7%, 26%), hsl(var(---site-hue), 5%, 23%) 100%);
}

:where(html.transp.light) .cmn-toggle label:hover:after {
  background: linear-gradient(to bottom, hsl(var(---site-hue), 7%, 90%), hsl(var(---site-hue), 5%, 93%) 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: "";
  color: var(--c-good);
}

.cmn-toggle input:disabled + label {
  opacity: .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 {
  cursor: pointer;
  background: var(--c-shade);
  border-radius: var(---ui-roundness, 7px);
  width: 100%;
  height: 1em;
}

input.range::-webkit-slider-thumb {
  border: 1px solid var(--c-font-dimmer);
  border-radius: var(---ui-roundness, 7px);
  background: var(--c-bg-box);
  cursor: pointer;
  appearance: none;
  width: 1.5em;
  height: 1em;
}

input.range::-moz-range-track {
  cursor: pointer;
  background: var(--c-shade);
  border-radius: var(---ui-roundness, 7px);
  width: 100%;
  height: 1em;
}

input.range::-moz-range-thumb {
  border: 1px solid var(--c-font-dimmer);
  border-radius: var(---ui-roundness, 7px);
  background: var(--c-bg-box);
  cursor: pointer;
  width: 1.5em;
  height: 1em;
}

input.range::-ms-track {
  cursor: pointer;
  background: var(--c-shade);
  border-radius: var(---ui-roundness, 7px);
  width: 100%;
  height: 1em;
}

input.range::-ms-fill-lower {
  background: #bfbfbfc7;
}

input.range::-ms-fill-upper {
  background: #d6d6d6c7;
}

input.range::-ms-thumb {
  border: 1px solid var(--c-font-dimmer);
  border-radius: var(---ui-roundness, 7px);
  background: var(--c-bg-box);
  cursor: pointer;
  color: #0000;
  border-color: #0000;
  width: 1.5em;
  height: 1em;
}

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 .inaccuracy, .tview2 .inaccuracy + lines:not(lines lines) > branch {
  --c-annotation-border: rgb(from var(--c-inaccuracy) r g b / calc(alpha * .6));
}

.tview2-inline .inaccuracy + interrupt:not(:has(interrupt)) {
  --c-annotation-border: rgb(from var(--c-inaccuracy) r g b / calc(alpha * .6));
}

.tview2 .inaccuracy interrupt, .tview2 .inaccuracy + lines:not(lines lines) > branch interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2-inline .inaccuracy + interrupt:not(:has(interrupt)) interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2 .inaccuracy.active {
  --c-annotation-border: var(--c-inaccuracy);
}

.tview2 .mistake {
  --c-base: var(--c-mistake);
}

.tview2 .mistake, .tview2 .mistake + lines:not(lines lines) > branch {
  --c-annotation-border: rgb(from var(--c-mistake) r g b / calc(alpha * .6));
}

.tview2-inline .mistake + interrupt:not(:has(interrupt)) {
  --c-annotation-border: rgb(from var(--c-mistake) r g b / calc(alpha * .6));
}

.tview2 .mistake interrupt, .tview2 .mistake + lines:not(lines lines) > branch interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2-inline .mistake + interrupt:not(:has(interrupt)) interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2 .mistake.active {
  --c-annotation-border: var(--c-mistake);
}

.tview2 .blunder {
  --c-base: var(--c-blunder);
}

.tview2 .blunder, .tview2 .blunder + lines:not(lines lines) > branch {
  --c-annotation-border: rgb(from var(--c-blunder) r g b / calc(alpha * .6));
}

.tview2-inline .blunder + interrupt:not(:has(interrupt)) {
  --c-annotation-border: rgb(from var(--c-blunder) r g b / calc(alpha * .6));
}

.tview2 .blunder interrupt, .tview2 .blunder + lines:not(lines lines) > branch interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2-inline .blunder + interrupt:not(:has(interrupt)) interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2 .blunder.active {
  --c-annotation-border: var(--c-blunder);
}

.tview2 .good {
  --c-base: var(--c-good);
}

.tview2 .good, .tview2 .good + lines:not(lines lines) > branch {
  --c-annotation-border: rgb(from var(--c-good) r g b / calc(alpha * .6));
}

.tview2-inline .good + interrupt:not(:has(interrupt)) {
  --c-annotation-border: rgb(from var(--c-good) r g b / calc(alpha * .6));
}

.tview2 .good interrupt, .tview2 .good + lines:not(lines lines) > branch interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2-inline .good + interrupt:not(:has(interrupt)) interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2 .good.active {
  --c-annotation-border: var(--c-good);
}

.tview2 .brilliant {
  --c-base: var(--c-brilliant);
}

.tview2 .brilliant, .tview2 .brilliant + lines:not(lines lines) > branch {
  --c-annotation-border: rgb(from var(--c-brilliant) r g b / calc(alpha * .6));
}

.tview2-inline .brilliant + interrupt:not(:has(interrupt)) {
  --c-annotation-border: rgb(from var(--c-brilliant) r g b / calc(alpha * .6));
}

.tview2 .brilliant interrupt, .tview2 .brilliant + lines:not(lines lines) > branch interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2-inline .brilliant + interrupt:not(:has(interrupt)) interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2 .brilliant.active {
  --c-annotation-border: var(--c-brilliant);
}

.tview2 .interesting {
  --c-base: var(--c-interesting);
}

.tview2 .interesting, .tview2 .interesting + lines:not(lines lines) > branch {
  --c-annotation-border: rgb(from var(--c-interesting) r g b / calc(alpha * .6));
}

.tview2-inline .interesting + interrupt:not(:has(interrupt)) {
  --c-annotation-border: rgb(from var(--c-interesting) r g b / calc(alpha * .6));
}

.tview2 .interesting interrupt, .tview2 .interesting + lines:not(lines lines) > branch interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2-inline .interesting + interrupt:not(:has(interrupt)) interrupt {
  --c-annotation-border: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2 .interesting.active {
  --c-annotation-border: var(--c-interesting);
}

.tview2 .anchor {
  position: relative;
}

.tview2 * {
  overflow: visible;
}

.tview2.hidden {
  visibility: hidden;
}

.tview2 move {
  color: var(--c-base);
  cursor: pointer;
  padding: .25em .17em;
  font-size: 1.092em;
  display: inline-block;
}

@media (hover: none) {
  .tview2 move {
    -webkit-user-select: none;
    user-select: none;
  }
}

.tview2 move.active {
  color: #fff;
  background: color-mix(in oklab, var(--c-base) 85%, transparent);
}

.tview2 move.active shapes, .tview2 move.active eval, .tview2 move.active index {
  color: #fff;
}

.tview2 move.active .disclosure {
  background-color: #fff;
}

.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: color-mix(in oklab, var(--c-bad) 30%, transparent) !important;
}

.tview2 move.pending-copy {
  border-radius: unset;
  background: color-mix(in oklab, var(--c-good) 30%, transparent) !important;
}

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

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

.tview2 shapes {
  color: var(--c-good);
  margin-inline-start: .4em;
}

.tview2 shapes:before {
  vertical-align: baseline;
  content: "";
  font-size: 13px;
}

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

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

.tview2 > interrupt {
  font-size: 95%;
}

.tview2 > interrupt move {
  margin-inline: 2px 0;
}

.tview2 > interrupt inline lines {
  margin-inline-start: 0;
}

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

.tview2 line {
  padding-inline-start: 7px;
  display: block;
  position: relative;
}

.tview2 line comment {
  font-size: 90%;
}

.tview2 line > branch {
  border-inline-start: 2px solid var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
  width: 8px;
  height: 100%;
  margin-inline-start: -9px;
  position: absolute;
}

.tview2 line > branch:after {
  content: " ";
  border-top: 2px solid var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
  width: 7px;
  height: 2px;
  margin-top: calc(1.15em - 2px);
  position: absolute;
}

.tview2 line:last-child > branch {
  height: 1.15em;
}

.tview2 lines {
  margin-block: 2px;
  padding-inline-start: 2px;
  display: block;
  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 {
  opacity: .8;
  font-size: .9em;
  font-style: italic;
  display: inline;
}

.tview2 inline move {
  margin-inline-start: 0;
}

.tview2 inline:before, .tview2 inline:after {
  vertical-align: 7px;
  opacity: .7;
  font-size: 1.1em;
}

.tview2 inline:before {
  content: "(";
  margin-inline: 2px -2px;
}

.tview2 inline:after {
  content: ")";
  margin-inline: -1px 1px;
}

.tview2 .conceal {
  opacity: .4;
}

.tview2 .hide {
  display: none;
}

.tview2 .disclosure {
  background-color: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
  vertical-align: -2px;
  width: calc(15px + var(---button-size-pointer-adjust, 0px));
  height: calc(15px + var(---button-size-pointer-adjust, 0px));
  align-self: center;
  display: inline-block;
  -webkit-mask: url("/assets/images/buttons/plus-button-mask.webp") 0 0 / contain no-repeat;
  mask: url("/assets/images/buttons/plus-button-mask.webp") 0 0 / contain no-repeat;
}

.tview2 .disclosure + san:before, .tview2 .disclosure + index:before {
  content: "-";
  color: #0000;
}

.tview2 .disclosure.expanded {
  -webkit-mask: url("/assets/images/buttons/minus-button-mask.webp") 0 0 / contain no-repeat;
  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(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2 .disclosure-connector {
  pointer-events: none;
  border-inline-start: 2px solid var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
  border-top: 2px solid var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
  position: absolute;
  inset-inline-start: 0;
}

.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 {
  padding: 2px;
  font-size: 1.092em;
}

.tview2-column > move {
  flex: 0 0 43.5%;
  padding: 0 .3em 0 .5em;
  font-size: 1.185em;
  line-height: 1.75em;
  display: flex;
}

.tview2-column > move index {
  padding-inline-start: 5px;
}

.tview2-column > move index:first-child {
  padding-inline-start: 0;
}

.tview2-column > move glyph {
  text-align: center;
  flex: 0 auto;
  font-size: .82em;
  overflow: hidden;
}

.tview2-column > move.active {
  font-weight: bold;
}

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

.tview2-column > index + move {
  border-inline-end: var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
}

.tview2-column line move {
  border-radius: calc(var(---ui-roundness, 7px) / 2);
}

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

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

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

.tview2-column > interrupt {
  background: var(--c-bg-zebra);
  border-top: 1px solid var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
  border-bottom: 1px solid var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
  flex: 0 0 100%;
  max-width: 100%;
}

.tview2-column > interrupt > comment {
  color: var(--c-base);
  border-inline-start: 2px solid var(--c-annotation-border, rgb(from var(--c-font) r g b/calc(alpha * .2)));
  padding: 3px 5px;
  display: block;
}

.tview2-inline {
  padding-inline: 7px 3px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.tview2-inline .mainline {
  background: color-mix(in oklab, var(--c-clearer) 4%, transparent);
  font-weight: bold;
}

.tview2-inline move {
  border-radius: calc(var(---ui-roundness, 7px) / 2);
  margin-inline-end: 2px;
  font-size: 13px;
  font-weight: bold;
}

.tview2-inline move index {
  padding-inline-end: .2em;
  line-height: 111.11%;
}

.tview2-inline comment {
  vertical-align: 45%;
  overflow-wrap: break-word;
  color: var(--c-base);
  margin: 0 .2em 0 .1em;
  font-size: .9em;
}

.tview2-inline inline:before, .tview2-inline inline:after {
  vertical-align: .7em;
}

.tview2-inline .disclosure {
  width: 13px;
  height: 13px;
  margin-inline-start: 2px;
}

@media (pointer: coarse) {
  .tview2 {
    ---button-size-pointer-adjust: 4px;
  }
}

@media (hover: hover) {
  .tview2 move:not(.active):hover {
    background: var(--c-bg-zebra2);
    background: color-mix(in oklab, var(--c-base) 15%, transparent);
    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;
  }
}

@supports not (color: color-mix(in oklab, red, blue)) {
  .tview2 move.active {
    background: var(--c-primary);
  }
}

.ceval {
  align-items: stretch;
  column-gap: 6px;
  padding-top: 3px;
  display: flex;
  position: relative;
}

.ceval.enabled .show-threat {
  visibility: visible;
}

.ceval .cmn-toggle {
  flex: 0 0 40px;
  margin-inline-start: 6px;
}

.ceval pearl {
  text-align: center;
  flex: 1 0 auto;
  font-size: 1.6em;
  font-weight: bold;
  line-height: 38px;
}

.ceval .is-red:before {
  vertical-align: -3px;
}

.ceval .engine {
  color: var(--c-font-dim);
  -webkit-user-select: none;
  user-select: none;
  flex: 2 auto;
  margin-top: 3px;
  font-size: 12px;
  line-height: 16px;
}

.ceval .engine .cloud, .ceval .engine .infinite {
  background: var(--c-secondary-dim);
  color: var(--c-over);
  text-transform: uppercase;
  margin-inline-start: 4px;
  padding: 1px 3px;
  font-size: 11px;
}

.ceval .engine .info {
  white-space: nowrap;
  display: block;
}

.ceval .engine .deeper {
  color: var(--c-primary);
  margin-inline-end: 4px;
}

.ceval .engine .deeper:before {
  vertical-align: top;
}

.ceval .show-threat {
  color: var(--c-font-dim);
  visibility: hidden;
  flex: 0 0 18px;
  margin-top: -3px;
  font-size: 16px;
  overflow: hidden;
}

.ceval .show-threat:hover:not(.hidden), .ceval .show-threat.active {
  color: var(--c-bad);
}

.ceval .show-threat.hidden {
  opacity: .3;
  cursor: default;
}

.ceval .settings-gear {
  color: var(--c-font-dim);
  margin-inline-end: 6px;
  margin-top: -3px;
  padding: 0 6px;
  font-size: 16px;
}

.ceval .settings-gear:hover {
  color: var(--c-font);
}

.ceval .settings-gear.active {
  color: #fff;
  background-color: var(--c-primary);
}

.ceval .technology {
  margin-inline-start: 5px;
}

.ceval .technology.good {
  color: var(--c-good);
}

.ceval .bar {
  width: 100%;
  height: 3px;
  position: absolute;
  top: 0;
}

@keyframes bar-anim {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 100000px 0;
  }
}

.ceval .bar span {
  background: var(--c-good);
  width: 0;
  height: 3px;
  transition: width 1s;
  display: block;
}

.ceval .bar span.threat {
  background: var(--c-bad);
}

.ceval.computing .bar span {
  background-image: url("../hashed/bar-highlight.0b603b17.png");
  animation: 1000s linear infinite bar-anim;
}

.engine-error {
  text-align: left;
  align-items: center;
  row-gap: 1em;
  max-width: 60vw;
  padding: 3em;
}

@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 {
  text-align: start;
  margin: 0 2em;
  line-height: 1.5em;
  list-style: outside;
}

.engine-error pre {
  width: 100%;
  box-shadow: inset 0 0 2px var(--c-font-dim);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  border: 1px solid #888;
  margin-bottom: 1em;
  padding: 1em;
}

.pv_box {
  background: var(--c-bg-box);
  font-size: 13px;
  position: relative;
}

.pv_box .pv {
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
  min-height: 2em;
  padding-inline-end: 14px;
  line-height: 2em;
  display: flex;
  position: relative;
}

.pv_box .pv.pv--nowrap {
  flex-wrap: initial;
  height: 2em;
  display: block;
}

.pv_box .pv strong {
  text-align: center;
  width: 34px;
  display: inline-block;
}

.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 {
  cursor: pointer;
  margin: 0;
  padding: 0 4px;
  position: absolute;
  top: 0;
}

.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 {
  z-index: 5;
  width: min(80%, 240px, 40vmin);
  margin-block-start: 4px;
  position: absolute;
  inset-block-start: 100%;
}

@media (hover: hover) and (pointer: fine) {
  .pv_box .pv[data-uci]:hover {
    background: color-mix(in oklab, var(--c-secondary) 20%, var(--c-bg));
    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: color-mix(in oklab, var(--c-secondary) 20%, var(--c-bg));
    padding-inline: 8px;
  }

  .pv_box .pv {
    padding-inline-end: 20px;
    font-size: 1.2em;
  }

  .pv_box .pv strong {
    padding-inline-end: 8px;
  }

  .pv_box .pv .pv-wrap-toggle {
    padding: 0;
  }
}

#ceval-settings-anchor {
  position: relative;
}

#ceval-settings {
  border-top: 2px solid var(--c-primary);
  z-index: 4;
  background: var(--c-bg-high);
  gap: 1.5em;
  width: 100%;
  padding: 1.5em;
  position: absolute;
}

@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;
  width: 100%;
  height: 21px;
  margin: 0 1ch;
  padding: 0;
}

#ceval-settings .setting select {
  flex: 1 4 auto;
  min-width: 0;
  margin-inline-start: 1ch;
  padding: 4px;
}

#ceval-settings .setting #select-engine {
  padding: .5em;
}

#ceval-settings .setting .range_value {
  text-align: left;
  direction: ltr;
  flex: 0 0 15%;
}

#ceval-settings .setting button.button-red {
  margin-left: .6em;
  padding: .6em .75em;
}

#ceval-settings .setting span {
  position: relative;
}

#ceval-settings .setting span input[type="range"] {
  height: 100%;
  margin: 0;
}

#ceval-settings .setting .tick {
  border-color: var(--c-primary);
  height: 46px;
  position: absolute;
  top: -12.5px;
}

#ceval-settings .setting .tick div {
  border-left: 3px solid var(--c-primary);
  border-bottom: 3px solid var(--c-primary);
  width: 9px;
  height: 9px;
  position: absolute;
  left: -4px;
}

#ceval-settings .setting .tick div:hover {
  border-color: color-mix(in oklab, var(--c-primary) 80%, white);
}

#ceval-settings .setting .tick div.arrow-down {
  top: 0;
  transform: rotate(-45deg);
}

#ceval-settings .setting .tick div.arrow-up {
  bottom: 0;
  transform: rotate(135deg);
}

#ceval-settings .setting .tick.recommended div {
  border-color: var(--c-secondary);
}

#ceval-settings .setting .tick.recommended div:hover {
  border-color: color-mix(in oklab, var(--c-secondary) 80%, white);
}

#ceval-settings .engine-info-button {
  color: var(--c-font-dim);
  margin-inline-start: 1em;
}

#ceval-settings .engine-info-button:hover {
  color: var(--c-primary);
}

.engine-info-popup a {
  font-size: .9em;
}

.engine-info-popup ol {
  text-align: start;
}

.engine-info-popup li {
  list-style: inside decimal;
}

@property --eval-percent {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 50%;
}

.eval-gauge {
  width: var(---block-gap);
  height: var(---cg-height, 100%);
  background: linear-gradient(to bottom, #444 var(--eval-percent), silver var(--eval-percent));
  transition: --eval-percent 1s;
  position: relative;
  overflow: hidden;
}

:where(html.light) .eval-gauge {
  background: linear-gradient(to bottom, #606060 var(--eval-percent), #fff var(--eval-percent));
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .eval-gauge {
    display: none;
  }
}

.eval-gauge.empty {
  opacity: .5;
}

.eval-gauge.reverse {
  transform: rotateX(180deg);
}

.eval-gauge:after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 5px #00000080;
}

html:not([dir="rtl"]) .eval-gauge tick {
  left: 0;
}

html[dir="rtl"] .eval-gauge tick {
  right: 0;
}

.eval-gauge tick {
  opacity: .4;
  border-bottom: 2px ridge #888;
  width: 100%;
  position: absolute;
  top: 0;
}

:where(html.light) .eval-gauge tick {
  border-bottom-color: #ccc;
}

.eval-gauge tick.zero {
  opacity: 1;
  margin-top: -3px;
  top: 6px;
  border-bottom: 7px solid var(--c-accent-cloud) !important;
}

:where(html.transp) .analyse-controls {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.analyse-controls {
  justify-content: space-between;
  align-items: stretch;
  display: flex;
}

.analyse-controls .fbt {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  text-align: center;
}

.analyse-controls [data-act="opening-explorer"], .analyse-controls [data-act="engine-mode"] {
  order: 1;
}

.analyse-controls [data-act="menu"] {
  order: 3;
}

.analyse-controls .hidden {
  visibility: hidden;
}

.analyse-controls .jumps {
  order: 2;
  padding: 4px;
  font-size: 1.3rem;
  display: flex;
}

.analyse-controls .jumps .fbt {
  border-radius: var(---ui-roundness, 7px);
  flex: 3;
}

.analyse-controls .jumps .fbt[data-act="first"], .analyse-controls .jumps .fbt[data-act="last"] {
  font-size: .75em;
}

.analyse-controls .jumps .fbt[data-act="line"] {
  font-size: .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: color-mix(in oklab, var(--c-primary) 30%, var(--c-bg));
  }
}

html:not([dir="rtl"]) #promotion-choice {
  right: 0;
}

html[dir="rtl"] #promotion-choice {
  left: 0;
}

#promotion-choice {
  background: rgb(from var(--c-bg) r g b/calc(alpha * .7));
  z-index: 205;
  width: var(---cg-width, 100%);
  height: var(---cg-height, 100%);
  position: absolute;
}

#promotion-choice square {
  cursor: pointer;
  pointer-events: all;
  background-color: #b0b0b0;
  border-radius: 50%;
  transition: all .15s;
  box-shadow: inset 0 0 25px 3px gray;
}

#promotion-choice square:hover {
  box-shadow: inset 0 0 48px 8px var(--c-accent);
  border-radius: 0;
}

#promotion-choice piece {
  pointer-events: none;
  opacity: 1;
}

.is2d #promotion-choice piece {
  width: 100%;
  height: 100%;
  transition: all .15s;
  transform: scale(.8);
}

.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 {
  content: "";
  z-index: 1;
  pointer-events: none;
  background: #e6e6e633;
  width: 100%;
  height: 12.5%;
  position: absolute;
  box-shadow: 0 14px 28px #00000040, 0 10px 10px #00000038;
}

.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 {
  content: "";
  z-index: 1;
  pointer-events: none;
  background: #e6e6e633;
  width: 25%;
  height: 25%;
  position: absolute;
  top: 37.5%;
  box-shadow: 0 0 10px #000000b3;
}

.mselect {
  white-space: nowrap;
  position: relative;
}

.mselect__toggle {
  z-index: -1;
  opacity: 0;
  position: absolute;
}

:where(html.transp) .mselect__label {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.mselect__label {
  padding-inline: 1rem .6rem;
  cursor: pointer;
  gap: 1ch;
  padding-top: .3rem;
  padding-bottom: .3rem;
}

.mselect__label:after {
  content: "";
  color: var(--c-primary);
  margin-inline: .4em 0;
  font-size: 70%;
}

.mselect__label:focus-visible, .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 {
  z-index: 111;
  background: var(--c-bg-popup);
  transform-origin: top;
  min-width: 100%;
  max-height: 60vh;
  transition: transform .15s;
  position: absolute;
  top: 0;
  overflow-y: auto;
  transform: scale(1, 0);
}

.mselect__toggle:checked ~ .mselect__list {
  transform: scale(1);
}

@media (max-width: 800px) {
  .mselect__toggle:checked ~ .mselect__list {
    top: calc(50vh - var(---site-header-height));
    position: fixed;
    transform: translateY(-50%) scale(1);
  }

  dialog .mselect__toggle:checked ~ .mselect__list {
    position: absolute;
    top: 0;
    transform: scale(1);
  }
}

.mselect__toggle:checked ~ .mselect__list * {
  opacity: 1;
  visibility: visible;
  transition: opacity .125s ease-in-out .125s;
}

.mselect__item {
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  color: var(--c-primary);
  border-left: 3px solid #0000;
  padding: .3em 1em;
  transition: background-color .15s, border-color .15s;
  display: block;
}

.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: .4em;
}

.toggle-box {
  border: 1px solid var(--c-border);
  background: var(--c-bg-zebra);
  padding: 2rem var(---box-padding) 0;
  margin: 1rem 0 3rem;
}

.toggle-box legend {
  -webkit-user-select: none;
  user-select: none;
  background: var(--c-bg-zebra);
  text-align: right;
  border: 1px solid #0000;
  border-top-color: var(--c-border);
  padding: .5em 1.5em;
  font-size: 1.2em;
  line-height: 26px;
}

.toggle-box legend:focus-visible {
  outline: 2px solid var(--c-primary);
}

:where(html.transp) .toggle-box--toggle legend {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.toggle-box--toggle legend {
  cursor: pointer;
  padding: .5em 2.5em .5em 1.5em;
  position: relative;
}

.toggle-box--toggle legend:after {
  content: "";
  opacity: .66;
  margin-left: .5em;
  font-size: 14px;
  transition: transform .2s ease-in-out;
  position: absolute;
  transform: rotate(-90deg);
}

.toggle-box--toggle legend:hover {
  color: var(--c-primary);
}

.toggle-box--toggle-off {
  border-color: #0000;
  border-top-color: var(--c-border);
  background: none;
  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 {
  transform: rotate(90deg);
}

.toggle-box--toggle-off > :not(legend) {
  display: none;
}

.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 {
  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 {
  ---analyse-gauge-col: var(---block-gap);
  ---analyse-gauge-offset: calc(var(---analyse-gauge-col) - 4px);
  grid-area: main;
  display: grid;
}

.analyse.gauge-on {
  ---analyse-gauge-col: calc(var(---block-gap) + 4px * 2);
}

.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;
  margin: 0 4px;
  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(---analyse-gauge-col) minmax(calc(240px - var(---analyse-gauge-offset)), calc(400px - var(---analyse-gauge-offset)));
    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__tools {
    height: var(---cg-height, 100%);
  }

  .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 {
    margin: var(---block-gap) 0;
    grid-area: kb-move;
    display: block;
  }
}

@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(---analyse-gauge-col) minmax(calc(200px - var(---analyse-gauge-offset)), calc(240px - var(---analyse-gauge-offset)));
  }
}

@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(---analyse-gauge-col) minmax(calc(240px - var(---analyse-gauge-offset)), calc(400px - var(---analyse-gauge-offset)));
    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 {
    min-height: 10em;
    margin-top: 0;
  }

  .analyse .crosstable__users {
    flex: 7 auto;
  }
}

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

.analyse__tools {
  background: var(--c-bg-box);
  position: relative;
}

.analyse__tools .ceval {
  flex: 0 0 44px;
}

.analyse__tools .sub-box {
  -webkit-user-select: none;
  user-select: none;
}

.analyse__tools .sub-box .title {
  background: color-mix(in oklab, var(--c-secondary) 40%, var(--c-bg));
  padding: 0 1rem;
  font-size: .9rem;
  line-height: 1.9em;
}

.analyse__tools .sub-box .title a {
  font-weight: bold;
}

.analyse__tools .comp-off__hint {
  opacity: .8;
  text-align: center;
  padding: .3em 1em;
}

.analyse__tools .comp-off__hint button {
  color: var(--c-link);
  margin-inline-start: 1em;
}

.analyse__tools .comp-off__hint button:hover {
  color: var(--c-link-hover);
}

.analyse__moves {
  -webkit-user-select: none;
  user-select: none;
  flex-direction: column;
  flex: 2 1 0;
  justify-content: space-between;
  display: flex;
  position: relative;
  overflow: hidden auto;
}

.analyse__moves .result, .analyse__moves .status {
  background: var(--c-bg-zebra);
  text-align: center;
}

.analyse__moves .result {
  border-top: 1px solid var(--c-border);
  padding: 5px 0 3px;
  font-size: 1.2em;
  font-weight: bold;
}

.analyse__moves .status {
  padding-bottom: 7px;
  font-size: 1em;
  font-style: italic;
}

.analyse__moves button.next {
  background: var(--c-bg-box);
  color: var(--c-link);
  border: 0;
  width: 100%;
  padding: .5em;
  transition: all .15s;
}

.analyse__moves button.next:hover {
  color: var(--c-link-hover);
}

.analyse__moves button.next:before {
  margin-inline-end: .3em;
}

.analyse__moves button.next.highlighted {
  background: color-mix(in oklab, var(--c-primary) 80%, var(--c-bg));
  color: var(--c-over);
}

.analyse__moves button.next.highlighted:hover {
  background: var(--c-primary);
}

.analyse__controls {
  align-items: stretch;
  height: 3rem;
}

.analyse__controls .cmn-toggle {
  flex: auto;
  align-items: stretch;
  display: flex;
}

.analyse__controls .jumps {
  flex: 3 auto;
}

.analyse__controls .fbt {
  flex: 0 0 2.5rem;
  transition: visibility;
}

.analyse__controls .active {
  color: var(--c-over);
  margin-top: -3px;
  padding-top: 3px;
}

.analyse__controls .fbt.latent {
  background-color: rgb(from var(--c-secondary) r g b/calc(alpha * .5));
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse__tools {
    border-radius: 0;
  }

  .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 {
    touch-action: pan-y;
    flex-wrap: wrap;
    height: auto;
  }

  .analyse__controls .fbt {
    border: 1px solid rgb(from var(--c-clearer) r g b/calc(alpha * .05));
    border-radius: var(---ui-roundness, 7px) var(---ui-roundness, 7px) 0 0;
    background: color-mix(in oklab, var(--c-bg) 50%, var(--c-bg-page));
    border-bottom: none;
    flex: 1;
    margin: 3px 2px 0;
  }

  .analyse__controls .fbt:not(.move) {
    min-height: 3em;
  }

  .analyse__controls .fbt.active {
    border-bottom: none;
    padding-top: 0;
  }

  .analyse__controls .jumps {
    order: 1;
    width: 100%;
    height: 3em;
    margin-bottom: 2px;
    padding: 2px;
  }

  .analyse__controls .jumps .move {
    background: color-mix(in oklab, var(--c-bg) 50%, var(--c-bg-page));
    border: 1px solid rgb(from var(--c-clearer) r g b/calc(alpha * .05));
  }

  .analyse__controls .jumps .move[data-act="first"], .analyse__controls .jumps .move[data-act="last"] {
    flex: 2;
  }

  .analyse__controls eval {
    font-variant-numeric: tabular-nums;
    pointer-events: none;
    font-size: 1.25em;
    font-weight: bold;
  }

  .analyse__controls [data-mode] {
    min-width: max(24vw, 80px);
    text-shadow: none;
    justify-content: center;
    align-items: center;
    display: flex;
    position: relative;
    overflow-x: hidden;
  }

  .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 {
    margin-inline-start: 0;
    transform: scale(.8);
  }
}

@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-family: lichess;
    font-size: 1.3em;
  }

  .analyse__controls [data-mode="practice"]:before {
    content: "";
    padding-inline-end: 8px;
  }

  .analyse__controls [data-mode="retro"]:before {
    content: "";
    font-size: 1.5em;
  }

  .analyse__controls [data-mode="practice"].active:after, .analyse__controls [data-mode="retro"].active:after {
    color: color-mix(in oklab, var(--c-bg) 50%, var(--c-secondary));
    content: "";
    font-size: .9em;
    position: absolute;
    top: -2px;
    right: 1px;
  }

  .analyse__controls [data-mode="ceval"]:after {
    content: "";
    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 {
    opacity: 0;
    background: linear-gradient(to bottom, rgb(from var(--c-good) r g b/.1), rgb(from var(--c-good) r g b/.7), rgb(from var(--c-good) r g b/.1)) 0 0/100% 100% no-repeat, linear-gradient(45deg, transparent, rgb(from var(--c-good) r g b/.7), transparent) -100% 0/200% 100% no-repeat;
    height: 5px;
    transition: opacity .3s ease-in;
    animation: 1.6s linear infinite reverse paused computing;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  .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 var(---ui-roundness, 7px) var(---ui-roundness, 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 {
  background: var(--c-bg-opaque);
}

.action-menu .inner {
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem 1rem;
  display: flex;
}

.action-menu h2 {
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  font-size: 1em;
  display: table;
}

.action-menu h2:before, .action-menu h2:after {
  border-top: 1px solid var(--c-border);
  content: "";
  width: 45%;
  display: table-cell;
  position: relative;
  top: .5em;
}

html:not([dir="rtl"]) .action-menu h2:before {
  right: 8px;
}

html[dir="rtl"] .action-menu h2:before, html:not([dir="rtl"]) .action-menu h2:after {
  left: 8px;
}

html[dir="rtl"] .action-menu h2:after {
  right: 8px;
}

.action-menu__tools {
  grid-template-columns: repeat(auto-fill, minmax(15ch, 1fr));
  gap: 0 1em;
  display: grid;
}

.action-menu__tools button, .action-menu__tools > a {
  color: var(--c-font);
  align-items: center;
  min-height: 4em;
  display: flex;
}

.action-menu__tools button:before, .action-menu__tools > a:before {
  color: var(--c-font-dim);
  padding-inline-end: 8px;
  font-size: 1.5em;
}

.action-menu__tools button:hover, .action-menu__tools > a:hover {
  color: var(--c-primary);
}

.action-menu__tools button:hover:before, .action-menu__tools > a:hover:before {
  color: var(--c-primary-dim);
}

.action-menu .autoplay .button {
  text-align: center;
  flex: auto;
  padding: 7px 0;
  font-size: .9em;
}

.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: none;
}

.action-menu .cmn-toggle-wrap label {
  cursor: pointer;
  white-space: nowrap;
  flex: 4 auto;
}

.action-menu .cmn-toggle-wrap input[type="range"] {
  flex: 1 4 auto;
  width: 100%;
  height: 1.6em;
  margin: 0 1ch;
  padding: 0;
}

.action-menu .cmn-toggle-wrap .range_value {
  text-align: right;
  direction: ltr;
  flex: none;
  display: block;
}

.action-menu span {
  justify-content: start;
  gap: .6em;
}

.explorer__config section {
  margin: .4em var(---block-gap) 0 var(---block-gap);
}

.explorer__config section.save {
  text-align: center;
  padding: 1em 0 .7em;
}

.explorer__config label {
  font-weight: bold;
  line-height: 2em;
  display: block;
}

.explorer__config .choices {
  display: flex;
}

.explorer__config .choices button {
  text-align: center;
  cursor: pointer;
  border: 1px solid var(--c-border);
  text-transform: capitalize;
  text-shadow: 0 1px 0 var(--c-font-shadow);
  border-width: 1px 0 1px 1px;
  flex-grow: 1;
  padding: 5px 0;
  transition: all .15s;
}

.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);
  font-weight: bold;
  box-shadow: inset 0 3px 5px #0003 !important;
}

:where(html.light) .explorer__config .choices button[aria-pressed="true"], :where(html.light) .explorer__config .choices button.active {
  text-shadow: 0 1px 0 var(--c-font) !important;
}

.explorer__config .choices button[aria-pressed="true"]:hover, .explorer__config .choices button.active:hover {
  background: hsl(from var(--c-secondary) h s calc(l + 5));
}

.explorer__config .name .player-name {
  text-transform: none;
  margin-inline-end: .5em;
  padding-left: 1em;
  padding-right: 1em;
  font-weight: bold;
  border-radius: var(---ui-roundness, 7px) !important;
}

.explorer__config .name .player-name.active:hover {
  background: color-mix(in oklab, var(--c-secondary) 80%, white);
}

.explorer__config .name .color {
  margin-inline-start: 1ch;
}

.explorer__config .toggle {
  font-weight: bold;
  line-height: 2em;
  display: block;
}

.explorer__config .date input {
  background: none;
  border: none;
  padding: .1em .5em;
}

.explorer__config .date input:invalid {
  background: color-mix(in oklab, var(--c-bad) 30%, var(--c-bg));
}

.explorer__config__player__choice {
  max-width: 70ch !important;
}

.explorer__config__player__choice > div {
  overflow: visible !important;
}

.explorer__config__player__choice .input-wrapper {
  margin-bottom: 2em;
  padding-top: 2em;
  display: inline-block;
  position: relative;
  overflow: visible !important;
}

.explorer__config__player__choice .previous {
  gap: .4em;
}

.explorer__config__player__choice .previous .button {
  text-transform: none;
  margin: .3em .2em;
}

html:not([dir="rtl"]) .explorer__config__player__choice .previous .remove {
  right: -.65em;
}

html[dir="rtl"] .explorer__config__player__choice .previous .remove {
  left: -.65em;
}

.explorer__config__player__choice .previous .remove {
  background-color: var(--c-bg-popup);
  border-radius: 50%;
  width: 1.75em;
  height: 1.75em;
  margin-inline-start: -1.75em;
  position: relative;
  top: -1.5em;
}

.explorer__config__player__choice .previous .remove:hover {
  background-color: var(--c-error);
}

.explorer-box {
  white-space: nowrap;
  flex: 3 1 0;
  font-size: .9em;
  transition: all .15s .3s;
  position: relative;
  overflow: hidden auto;
}

.explorer-box.reduced {
  flex: .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 .15s;
}

.explorer-box.loading tbody {
  opacity: .4;
}

.explorer-box .title {
  -webkit-user-select: text;
  user-select: text;
}

:where(html.transp) .explorer-box .explorer-title {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.explorer-box .explorer-title {
  background: color-mix(in oklab, var(--c-secondary) 30%, var(--c-bg));
  z-index: 2;
  align-items: stretch;
  padding: 0;
  font-size: .9rem;
  line-height: 1.9em;
  position: sticky;
  top: 0;
}

.explorer-box .explorer-title .ddloader {
  padding-inline-start: 7px;
}

.explorer-box .explorer-title .active {
  color: var(--c-font-clear);
  background: color-mix(in oklab, var(--c-secondary) 40%, var(--c-bg));
  direction: ltr;
  padding: 0 7px;
}

.explorer-box .explorer-title .active strong {
  margin-inline-end: .5ch;
}

.explorer-box .explorer-title .active.player {
  cursor: pointer;
}

.explorer-box .explorer-title .long {
  letter-spacing: -.1ch;
}

.explorer-box .explorer-title button {
  color: var(--c-font-dim);
  margin-inline-start: 1px;
  padding: 0 .5ch;
  display: inline-block;
}

.explorer-box .explorer-title button:hover {
  color: var(--c-font-clear);
  background: color-mix(in oklab, var(--c-secondary) 50%, var(--c-bg));
}

.explorer-box .empty {
  flex-flow: column;
  height: 100%;
  display: flex;
}

.explorer-box .empty .message {
  text-align: center;
}

.explorer-box tr:nth-child(2n) {
  background: var(--c-bg-zebra);
}

.explorer-box tr:hover {
  background: color-mix(in oklab, var(--c-secondary) 20%, var(--c-bg));
}

.explorer-box td {
  cursor: pointer;
  padding-inline-start: 7px;
}

.explorer-box .moves {
  will-change: transform, opacity;
}

.explorer-box .moves th {
  background: color-mix(in oklab, var(--c-secondary) 40%, var(--c-bg));
  padding-inline-start: 7px;
  font-size: .8rem;
  line-height: 1.8em;
}

.explorer-box .moves td:first-child {
  padding-inline-start: 7px;
  line-height: 30px;
}

.explorer-box .moves td:nth-child(2), .explorer-box .moves td:nth-child(3) {
  text-align: right;
  font-size: .75em;
}

.explorer-box .moves td:last-child {
  width: 100%;
  padding-inline-end: 7px;
}

.explorer-box .moves tbody tr.sum {
  background: color-mix(in oklab, var(--c-primary) 25%, var(--c-bg));
  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;
  }
}

:where(html.transp) .explorer-box .moves tbody tr.sum td {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.explorer-box .moves tbody tr.sum td {
  cursor: default;
}

.explorer-box .bar span {
  text-align: center;
  vertical-align: middle;
  border-style: solid;
  border-width: 1px 0;
  border-color: rgb(from var(--c-font) r g b/calc(alpha * .17));
  background-clip: padding-box;
  height: 16px;
  font-size: .9em;
  line-height: 14px;
  transition: width 1s;
  display: inline-block;
  overflow: hidden;
}

.explorer-box .white {
  background: #ccc;
  box-shadow: inset 0 -5px 7px #00000040;
}

:where(html.light) .explorer-box .white {
  background: #fff;
  box-shadow: inset 0 -5px 7px #0000001a;
}

:where(html:not(.light)) .explorer-box .white {
  color: #222;
}

.explorer-box .draws, .explorer-box .black {
  color: #ddd;
  box-shadow: inset 0 5px 7px #ffffff1a;
}

:where(html.light) .explorer-box .draws, :where(html.light) .explorer-box .black {
  color: #fff;
  box-shadow: inset 0 5px 7px #fff3;
}

.explorer-box .draws {
  background: #666;
}

:where(html.light) .explorer-box .draws {
  background: #a0a0a0;
}

.explorer-box .black {
  background: #333;
}

:where(html.light) .explorer-box .black {
  background: #555;
}

.explorer-box .black {
  color: #ddd;
}

.explorer-box .games {
  width: 100%;
}

.explorer-box .games td {
  padding-inline: 7px 0;
  padding-top: 5px;
  padding-bottom: 5px;
}

.explorer-box .games td span {
  display: block;
}

.explorer-box .games td.game-rating {
  width: 40px;
}

.explorer-box .games td.game-type {
  width: 28px;
}

.explorer-box .games td.game-date {
  width: 60px;
}

.explorer-box .games result {
  text-align: center;
  padding: 3px 5px;
  font-size: .9em;
  display: block;
}

.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;
}

.explorer-box .game_menu .menu {
  text-transform: uppercase;
  justify-content: space-between;
  display: flex;
}

.explorer-box .game_menu .menu a {
  color: #fff;
  padding: 4px 8px;
}

.explorer-box .game_menu .menu a:hover {
  background: #fff3;
}

.explorer-box .tablebase {
  width: 100%;
}

.explorer-box .tablebase td:first-child {
  padding-inline-start: 7px;
  font-size: 14px;
  line-height: 30px;
}

.explorer-box .tablebase td:last-child {
  text-align: right;
  padding-inline-end: 7px;
}

.explorer-box .tablebase result {
  border-radius: 3px;
  margin-inline-start: 5px;
  padding: 3px 5px;
  font-size: .9em;
}

html:not([dir="rtl"]) .explorer-box .toconf {
  right: 0;
}

html[dir="rtl"] .explorer-box .toconf {
  left: 0;
}

.explorer-box .toconf {
  cursor: pointer;
  text-align: center;
  opacity: .8;
  z-index: 3;
  width: 1.5em;
  height: 100%;
  font-size: 1.2em;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
}

.explorer-box .toconf:hover {
  opacity: 1;
}

.explorer-box .toconf:before {
  margin: 0 0 0 -2px;
  position: relative;
  top: -1px;
}

html[dir="rtl"] .explorer-box .toconf:before {
  margin: 0 -2px 0 0;
}

.explorer-box .message {
  text-align: center;
  flex: auto;
  justify-content: center;
  font-style: italic;
}

.explorer-box .message strong {
  margin: 1em 0;
  font-weight: bold;
}

.explorer-box:not(.reduced) .message h3, .explorer-box.reduced:hover .message h3 {
  font-weight: bold;
}

.explorer-box .message p {
  white-space: normal;
  margin: 0 0 8px;
  padding: 0 8px;
}

.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 {
    margin-inline-end: 8px;
    font-size: 1.5em;
  }
}

.training-box {
  flex: 1.5 1 0;
}

.training-box .feedback {
  flex-flow: column;
  flex: 100%;
  justify-content: center;
  display: flex;
}

@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 {
  opacity: .8;
  background: var(--c-shade);
  width: 100%;
  height: 4px;
  margin-top: 5px;
}

.training-box .progress div {
  background: var(--c-good);
  max-width: 100%;
  height: 4px;
  transition: width .5s;
}

.training-box .player {
  align-items: center;
  margin: 0 1em;
  display: flex;
}

.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 {
  text-align: center;
  width: 64px;
  height: 64px;
  margin-inline-end: 10px;
  font-size: 64px;
  line-height: 64px;
  display: block;
}

.training-box .instruction {
  flex: 1;
}

.training-box .instruction > strong {
  font-size: 1.2em;
  font-weight: normal;
}

.training-box .choices {
  margin: 5px 0 -5px;
  line-height: 1.6em;
}

.training-box .choices a {
  display: block;
}

.practice-box {
  -webkit-user-select: none;
  user-select: none;
  flex: 0 0 135px;
}

.practice-box .comment {
  background: var(--c-bg-zebra);
  white-space: nowrap;
  flex: 0 0 30px;
  align-items: stretch;
  line-height: 30px;
  display: flex;
}

.practice-box .comment move {
  cursor: pointer;
  color: var(--c-link);
  margin-inline-start: 5px;
  transition: all .3s;
}

.practice-box .comment .next {
  background: color-mix(in oklab, var(--c-primary) 80%, var(--c-bg));
  color: var(--c-over);
  border: 0;
  width: 100%;
  transition: all .15s;
}

.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 {
  margin-inline-end: 10px;
  font-weight: bold;
  display: flex;
}

.practice-box .verdict:before {
  color: #fff;
  text-align: center;
  width: 30px;
  height: 100%;
  margin-inline-end: 7px;
  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 {
  text-align: center;
  flex: 1 0 auto;
  justify-content: center;
  width: 64px;
  height: 38px;
  font-weight: bold;
}

.ceval .practice-mode p {
  margin: 0;
  font-size: 1rem;
}

.ceval .practice-mode p.secondary {
  opacity: .6;
  font-size: .9rem;
}

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

.analyse__fork {
  flex: none;
}

.analyse__fork move {
  -webkit-user-select: none;
  user-select: none;
  background: color-mix(in oklab, var(--c-primary) 25%, var(--c-bg));
  color: var(--c-font-clear);
  cursor: pointer;
  border-bottom: 1px solid var(--c-bg-box);
  -webkit-touch-callout: none;
  flex: 0 0 50%;
  padding: .2em 1em;
}

.analyse__fork move:nth-child(odd) {
  border-inline-end: 1px solid var(--c-bg-box);
}

.analyse__fork move.correct {
  background: color-mix(in oklab, var(--c-secondary) 25%, var(--c-bg));
}

.analyse__fork move.wrong {
  background: color-mix(in oklab, var(--c-bad) 25%, var(--c-bg));
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse__fork move {
    border: 1px solid var(--c-bg-box);
    flex: auto;
    justify-content: center;
    padding-block: .5em;
    font-size: 1.5em;
  }

  .analyse__fork move index, .analyse__fork move eval {
    display: none;
  }
}

.analyse__fork glyph {
  margin-inline-start: 2px;
}

.analyse__fork eval {
  text-align: right;
  flex: 3 0 auto;
  font-size: .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 {
  flex: auto;
  margin: 2vh 0;
}

@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 {
  scrollbar-gutter: stable both-edges;
  padding: 1rem 1rem 0;
  overflow-y: auto;
}

.analyse__wiki p {
  text-align: justify;
  line-height: 1.4;
}

.analyse__wiki ul, .analyse__wiki ol {
  margin-bottom: 1rem;
  padding-left: 1rem;
  line-height: 1.4;
}

.analyse__wiki ul li {
  list-style: outside;
}

.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(.666667vw + 15px);
  }
}

@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 {
  margin-bottom: .7rem;
  font-size: 1.2em;
  font-weight: bold;
}

#analyse-cm {
  -webkit-user-select: none;
  user-select: none;
  background: var(--c-bg-box);
  z-index: 108;
  cursor: default;
  display: none;
  position: absolute;
  overflow: hidden;
}

#analyse-cm.visible {
  display: block;
}

#analyse-cm .title {
  text-align: center;
  border-bottom: 1px solid var(--c-border);
  margin: 0;
  padding: .4em;
  font-size: 1.2em;
}

#analyse-cm a {
  padding-inline: .3em .6em;
  color: var(--c-font);
  padding-top: .5em;
  padding-bottom: .5em;
}

#analyse-cm a:before {
  text-align: center;
  width: 2em;
}

#analyse-cm a:hover {
  background: rgb(from var(--c-primary) r g b/calc(alpha * .3));
}

#analyse-cm.transparent {
  opacity: .7;
  transition: opacity .2s;
}

.material {
  pointer-events: none;
}

.material div {
  margin-inline-start: 10px;
  display: inline-block;
}

.material mpiece {
  background-size: cover;
  margin-inline-start: -10px;
  display: inline-block;
}

.material mpiece.pawn {
  background-image: url("../hashed/P.5a64255c.svg");
}

.material mpiece.bishop {
  background-image: url("../hashed/B.281c4aa6.svg");
}

.material mpiece.knight {
  background-image: url("../hashed/N.45b215f3.svg");
}

.material mpiece.rook {
  background-image: url("../hashed/R.67b1f3c8.svg");
}

.material mpiece.queen {
  background-image: url("../hashed/Q.51aefe6c.svg");
}

.material mpiece.king {
  background-image: url("../hashed/K.d5e9bd73.svg");
}

:where(html.transp) .material mpiece {
  filter: brightness(1.3) drop-shadow(0 1px 1px var(--c-font-shadow));
}

:where(html.transp.light) .material mpiece {
  filter: brightness(.7) drop-shadow(0 1px 1px var(--c-font-shadow));
}

html:not([dir="rtl"]) .analyse__player_strip {
  right: 0;
}

html[dir="rtl"] .analyse__player_strip {
  left: 0;
}

.analyse__player_strip {
  display: flex;
  position: absolute;
}

.analyse__player_strip.top {
  z-index: 107;
  top: -20px;
}

.is3d .analyse__player_strip.top {
  top: -55px;
}

.analyse__player_strip.bottom {
  top: var(---cg-height, 100%);
  z-index: 1;
}

.coords-out .is2d .analyse__player_strip.bottom, .is3d .analyse__player_strip.bottom {
  top: calc(var(---cg-height, 100%) + 15px);
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .analyse__player_strip {
    display: none;
  }
}

:where(html.transp) .analyse__clock {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.analyse__clock {
  text-align: center;
  height: 20px;
  margin-inline-start: 12px;
  padding: 0 .5em;
  font-weight: bold;
}

.analyse__clock.active {
  background: color-mix(in oklab, var(--c-primary) 30%, var(--c-bg));
  box-shadow: none;
}

.analyse__clock tenths {
  font-size: 80%;
}

.analyse__clock icon {
  color: var(--c-accent);
  margin-inline-end: .4em;
  font-size: .7em;
}

.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 {
  background: var(--c-bg-zebra);
  margin: 0;
  padding: .4em .8em;
  font-size: .9em;
}

.analyse__persistence__help icon {
  margin-right: .4em;
  font-size: 1.5em;
}

.analyse__persistence__actions {
  font-size: .9em;
}

.analyse__persistence__actions .button:before {
  margin-right: .4em;
}

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

.analysis-settings-dialog {
  flex-direction: column;
  gap: 1em;
  width: min(96vw, 720px);
  display: flex;
}

.analysis-settings-dialog h2 {
  display: none;
}

@media (max-width: 599.29px) {
  .analysis-settings-dialog h2 {
    display: block;
  }
}

.analysis-settings-dialog .analysis-settings-view {
  gap: 1.5em;
}

.analysis-settings-dialog .analysis-settings-view * {
  gap: 1em;
}

.analysis-settings-dialog .analysis-settings-view fieldset legend {
  font-weight: 500;
}

.analysis-settings-dialog .analysis-settings-view .setting {
  color: var(--c-font-dim);
  font-size: 1em;
}

.analysis-settings-view {
  touch-action: pan-x pan-y;
  -webkit-tap-highlight-color: transparent;
  text-align: start;
  flex-wrap: wrap;
  justify-content: stretch;
  gap: 2em;
  height: 100%;
  display: flex;
}

@media (max-width: 599.29px) {
  .analysis-settings-view {
    flex-direction: column;
  }
}

.analysis-settings-view * {
  gap: 1.5em;
}

.analysis-settings-view div, .analysis-settings-view fieldset {
  flex-direction: column;
  display: flex;
}

.analysis-settings-view fieldset {
  flex: initial;
  border: 1px solid var(--c-border);
  border-radius: var(---ui-roundness, 7px);
  background: var(--c-bg-mid);
  padding: 1em;
}

.analysis-settings-view fieldset legend {
  color: var(--c-font-dim);
  padding: 6px 6px 0;
  font-size: 1.3em;
}

.analysis-settings-view .column {
  flex: 1;
  justify-content: space-between;
}

.analysis-settings-view .setting {
  cursor: pointer;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1em;
  display: flex;
}

.analysis-settings-view .setting.inert {
  cursor: default;
}

.analysis-settings-view .help-container {
  align-items: stretch;
  display: none;
  overflow: hidden;
}

@media (min-width: 599.3px) {
  .analysis-settings-view .help-container {
    display: flex;
  }
}

.analysis-settings-view .help-container fieldset {
  gap: 1em;
}

.analysis-settings-view .help-button {
  color: var(--c-font-dim);
  outline: none;
  font-size: 1.2em;
}

.analysis-settings-view .help-button:before {
  vertical-align: sub;
  margin-inline-end: .5em;
  font-size: 18px;
}

.analysis-settings-view .show-all {
  margin-inline: auto;
}

.analysis-settings-view .hover-hint {
  color: var(--c-font-dim);
  display: none;
}

@media (hover: hover) and (pointer: fine) and (min-width: 599.3px) {
  .analysis-settings-view :has(.help-pane[data-key="keyboardShortcuts"]) .hover-hint {
    display: block;
  }
}

@media (hover: none) or (pointer: coarse) {
  .analysis-settings-view legend {
    display: none;
  }
}

:is(.help-container fieldset:has(video, img), .setting-popup fieldset:has(video, img)) {
  align-items: center;
}

.help-container img, .help-container video, .setting-popup img, .setting-popup video {
  border: 1px solid var(--c-border);
  min-width: 0;
  max-width: 248px;
  min-height: 0;
  max-height: 248px;
}

.help-pane {
  max-height: 300px;
}

.setting-popup {
  touch-action: none;
  background: var(--c-bg-zebra2);
  display: block;
}

.copyables .pair {
  position: relative;
}

.copyables .name {
  color: var(--c-font-dim);
  flex: 0 0 5ch;
  font-weight: bold;
}

:where(html.transp) .copyables .copyable {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.copyables .copyable {
  flex: auto;
}

.copyables .pgn {
  margin: 1em 0;
}

.copyables .pgn textarea {
  white-space: pre-wrap;
  min-height: 6em;
  overflow-x: hidden;
}

.copyables .pgn textarea.is-error {
  background: color-mix(in oklab, var(--c-bad) 20%, var(--c-bg));
  box-shadow: 0 0 13px 2px color-mix(in oklab, var(--c-bad) 20%, var(--c-bg));
}

.copyables .bottom-item {
  visibility: hidden;
  opacity: 0;
  transition: all .15s;
  position: absolute;
  top: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .copyables .bottom-item {
    transition: all 1ms !important;
  }
}

.copyables .bottom-error {
  color: var(--c-bad);
  margin-top: .5em;
  font-size: 90%;
  left: 6ch;
}

.copyables .bottom-error:before {
  margin-right: .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: .7em;
}

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