@charset "UTF-8";
/* Common imports for all CSS modules */
/*
 * This source is generated by bin/gen/licon.py. Run licon.py after changing public/font/lichess.sfd
 *
 * Constant names and values are pulled from private use characters defined in the sfd file.
 *
 * Character names can be edited in fontforge's "glyph info" dialog, or by editing the StartChar: line that
 * begins each character chunk in lichess.sfd
 *
 * To make these characters visible in your editor, install the lichess.ttf font (which is also generated by
 * licon.py) and then add it to your editor's font list.
 */
/* Uniboard: keep the same page layout across pages */
.engine-error h2, .tview2 glyph, .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;
}

.puzzle__side__theme, .puzzle__side__replay a, .puzzle__side__user__rating__casual, .ceval .engine .cloud,
.ceval .engine .infinite, .tview2 comment .by, .tview2 eval, .pv_box .pv span draw, .tview2 move draw {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

.pv_box .pv span, .tview2 move {
  font-family: "Noto Chess", "Noto Sans";
}

.pv_box .pv span draw, .tview2 move draw {
  margin-inline-start: 1ch;
  font-weight: normal;
}

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

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

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

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

group.radio input:checked + label:not(.disabled):hover, group.radio input:checked + label {
  box-shadow: 0 3px 4px hsla(0, 0%, 0%, 0.15) inset !important;
}

group.radio input:checked + label {
  background: var(--c-accent);
  color: #fff;
  text-shadow: 0 1px 1px black !important;
}
group.radio input:checked + label:not(.disabled):hover {
  background: var(--m-accent--lighten-5);
}

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

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

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

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

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

#ceval-settings .setting select, .pv_box .pv.pv--nowrap, .tview2 comment .by {
  overflow: hidden;
  text-overflow: ellipsis;
}

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

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

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

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

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

.tview2-column, group.radio {
  display: flex;
  flex-flow: row wrap;
}

.puzzle__controls, .ceval .cmn-toggle {
  /* extends %flex-wrap */
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.puzzle__vote__buttons, .puzzle__feedback.after .continue, .puzzle__themes__votes, .puzzle__side__streak__score, .puzzle__side__streak__info h1, .puzzle__side__metas .infos, #ceval-settings .setting, #blindfoldzone, .board-menu .setting {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}

.puzzle__session a, .puzzle__vote .vote, .puzzle__feedback.after .complete, .puzzle__themes__lock, .puzzle__themes__vote, .puzzle__side__replay__bar, .puzzle__side__user__rating strong, group.radio label,
group.radio .label {
  /* extends %flex-center */
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: center;
}

.puzzle__feedback.after .puzzle__more, .puzzle__themes__list__entry {
  /* extends %flex-center */
  display: flex;
  flex-flow: row wrap;
  align-items: center;
  justify-content: space-between;
}

.puzzle__vote, .puzzle--streak .puzzle__feedback.after .complete, .puzzle__feedback, .puzzle__tools, #ceval-settings, .engine-error, .board-menu section, .board-menu > div, .board-menu {
  display: flex;
  flex-flow: column;
}

.puzzle__session a, .puzzle__side__replay__bar::before, .ceval .engine .cloud,
.ceval .engine .infinite, .tview2-inline move, .tview2-column line move, #blindfoldtog, #zentog, .puzzle__side__theme, .puzzle__side__replay, .puzzle__side__config, .puzzle__side__user, group.radio, .puzzle__side__replay__bar, .puzzle__tools, .puzzle__side__metas {
  border-radius: 7px;
}

/* helps with clipping background into border-radius */
.puzzle__side__replay__bar, .puzzle__tools, .puzzle__side__metas {
  overflow: hidden;
}

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

.puzzle__tools, .puzzle__side__metas, .puzzle__side__theme, .puzzle__side__replay, .puzzle__side__config, .puzzle__side__user, group.radio {
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.18), 0 1px 5px 0 rgba(0, 0, 0, 0.1);
}

html.transp .puzzle__side__theme, html.transp .puzzle__side__replay, html.transp .puzzle__side__config, html.transp .puzzle__side__user, html.transp group.radio {
  backdrop-filter: blur(6px);
}

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

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

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

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

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

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

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

body.resizing {
  user-select: none;
}

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

group.radio {
  overflow: hidden;
}
group.radio div {
  flex: 1 1 auto;
  position: relative;
}
group.radio label,
group.radio .label {
  user-select: none;
  padding: 10px;
  height: 100%;
  cursor: pointer;
  border-inline-end: 1px solid var(--c-border);
}
group.radio label.disabled,
group.radio .label.disabled {
  background: var(--c-metal-top);
}
html.light group.radio label.disabled,
html.light group.radio .label.disabled {
  background: var(--c-metal-bottom);
}
@media (hover: hover) {
  group.radio label:not(.disabled):hover,
  group.radio .label:not(.disabled):hover {
    background: linear-gradient(to bottom, var(--c-metal-top-hover), var(--c-metal-bottom-hover));
    text-shadow: 0 1px 0 var(--c-font-shadow);
  }
}
group.radio div:last-child label {
  border-inline-end: 0;
}
group.radio input:focus-visible + label {
  outline: 2px solid var(--c-primary);
  outline-offset: -2px;
}

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

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

@keyframes glowing {
  42% {
    background: none;
  }
  50% {
    background: var(--m-primary_bg--mix-20);
  }
  58% {
    background: none;
  }
}
.glowing {
  animation: glowing 2s ease-in-out infinite;
}

#zenzone {
  position: absolute;
  display: none;
  flex-flow: row nowrap;
  align-items: center;
  z-index: 111;
}
body.zenable.zen #zenzone {
  display: flex;
}
#zenzone .zen-home {
  flex: 0 0 4em;
  height: 4em;
  padding: 1em 1em;
  background: center no-repeat url("../logo/lichess-white.svg");
}
html.light #zenzone .zen-home {
  background-image: url("../logo/lichess.svg");
}
#zenzone .zen-home {
  background-size: 2em;
  opacity: 0.5;
}
#zenzone .zen-home:hover {
  opacity: 1;
}

#zentog {
  flex: 0 0 auto;
  padding: 0.2em 1em;
  opacity: 0.5;
}
#zentog:hover {
  opacity: 1;
}

#blindfoldzone {
  position: fixed;
  bottom: 20px;
  inset-inline-end: 6px;
  height: 4em;
  z-index: 3;
}
@media (max-width: 1019.29px) {
  #blindfoldzone {
    bottom: auto;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
    z-index: 111;
  }
}
@media (max-width: 499.29px) {
  #blindfoldzone {
    bottom: 10px;
    top: auto;
  }
}

#blindfoldtog {
  flex: 0 0 auto;
  padding: 0.2em 1em;
  opacity: 0.9;
  background: var(--c-bad);
  color: var(--c-over);
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.2;
}
#blindfoldtog:hover {
  opacity: 1;
}

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

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

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

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

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

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

.tview2.hidden {
  visibility: hidden;
}

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

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

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

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

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

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

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

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

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

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

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

.tview2 .conceal {
  opacity: 0.4;
}

.tview2 .hide {
  display: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.blindfold.main-board piece,
.blindfold .now-playing piece {
  opacity: 0 !important;
}
.blindfold.main-board .check {
  background-image: none;
}

#promotion-choice piece {
  opacity: 1 !important;
}

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

@media (max-height: 1049.29px) {
  body {
    overflow-y: scroll;
    margin-bottom: 0;
  }
}
.puzzle {
  grid-area: main;
  display: grid;
}
.puzzle--nvui {
  display: block;
  max-width: 800px;
}
.puzzle__side {
  grid-area: side;
}
.puzzle__board {
  grid-area: board;
}
.puzzle__tools {
  grid-area: tools;
}
.puzzle__controls {
  grid-area: controls;
}
.puzzle__session {
  grid-area: session;
  align-self: start;
}
.puzzle .eval-gauge {
  grid-area: gauge;
}
.puzzle .keyboard-move {
  grid-area: kb-move;
}
.puzzle {
  grid-template-areas: "board" "controls" "tools" "session" "side" "kb-move";
  row-gap: var(---block-gap);
}
.puzzle__moves {
  display: none;
}
@media (min-width: 799.3px), (orientation: landscape) {
  .puzzle {
    grid-template-columns: var(---col2-uniboard-width) var(---block-gap) minmax(240px, 400px);
    grid-template-rows: fit-content(0);
    grid-template-areas: "board   gauge tools" "session .     controls" "kb-move .     controls" "side    side  side";
  }
  .puzzle__moves {
    display: block;
  }
}
@media (max-width: 799.29px) and (orientation: landscape) {
  .puzzle {
    grid-template-columns: minmax(55vmin, calc(100vh - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - var(---block-gap))) var(---block-gap) minmax(200px, 240px);
  }
}
@media (min-width: 1259.3px) {
  .puzzle {
    grid-template-areas: "side    . board   gauge tools" "side    . session .     controls" "side    . kb-move .     controls" "side    . .       .     .";
    grid-template-columns: minmax(var(---col3-uniboard-side-min, 250px), 350px) var(---block-gap) var(---col3-uniboard-width) var(---block-gap) minmax(240px, 400px);
  }
}
.puzzle__side {
  display: grid;
  gap: var(---block-gap);
  grid-template-areas: "user" "theme" "metas" "config";
}
.puzzle-replay .puzzle__side {
  grid-template-areas: "replay" "user" "theme" "metas" "config";
}
@media (min-width: 499.3px) {
  .puzzle__side {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "metas user" "metas theme" "config theme" ". theme";
    grid-template-rows: min-content min-content min-content;
  }
  .puzzle-replay .puzzle__side {
    grid-template-areas: "metas replay" "metas user" "config user" "config theme";
  }
}
@media (min-width: 1259.3px) {
  .puzzle__side {
    grid-template-columns: 1fr;
    grid-template-areas: "metas" "user" "theme" "config";
    grid-template-rows: min-content min-content min-content;
    min-width: 250px;
    max-width: 350px;
  }
  .puzzle-replay .puzzle__side {
    grid-template-areas: "metas" "replay" "user" "theme" "config";
  }
}
.puzzle__side__metas {
  grid-area: metas;
}
.puzzle__side__user {
  grid-area: user;
}
.puzzle__side__config {
  grid-area: config;
}
.puzzle__side__theme {
  grid-area: theme;
}
.puzzle__side__replay {
  grid-area: replay;
}

.puzzle__side__metas {
  background: var(--c-bg-box);
  padding: 2vmin;
}
.puzzle__side__metas p {
  margin: 0;
}
.puzzle__side__metas .hidden {
  color: var(--c-font-dimmer);
}
.puzzle__side__metas .infos__angle-img {
  height: 3.5rem;
  margin-inline-end: 1vw;
}
.puzzle__side__metas .infos::before {
  font-size: 3.5rem;
  margin-inline-end: 1vw;
  color: var(--c-font-dim);
}
.puzzle__side__metas .infos.puzzle {
  padding-bottom: 1.2vh;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 1.2vh;
}
.puzzle__side__metas .infos .players {
  margin-top: 0.3rem;
  font-size: 90%;
}
.puzzle__side__user {
  background: var(--c-bg-box);
  padding: 2vmin;
}
.puzzle__side__user__rating strong {
  font-size: 3.5em;
}
.puzzle__side__user__rating__casual {
  font-size: 0.9em;
  margin-top: 1em;
}
.puzzle__side__user .rp {
  font-size: 1.3rem;
  margin-inline-start: 1ch;
}
.puzzle__side__user .rp.up {
  color: var(--c-good);
}
.puzzle__side__user .rp.down {
  color: var(--c-bad);
}
.puzzle__side__streak__info h1 {
  color: var(--c-brag);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.puzzle__side__streak__info h1::before {
  font-size: 1.5em;
}
.puzzle__side__streak__score {
  color: var(--c-brag);
  justify-content: center;
  font-size: 4em;
}
.puzzle__side__streak__score::before {
  font-size: 0.9em;
}
.puzzle__side__config {
  align-self: start;
  background: var(--c-bg-box);
  padding: 2vmin;
  overflow: hidden;
}
.puzzle__side__config__difficulty {
  margin-top: 2vmin;
}
.puzzle__side__config__difficulty label {
  margin-inline-end: 1em;
}
.puzzle__side__config__color {
  margin-top: 1.5vh;
}
.puzzle__side__config__color i {
  display: block;
  width: 24px;
  height: 24px;
  background-size: 24px 24px;
  background-repeat: no-repeat;
  padding: 0;
}
.puzzle__side__config__color .color-white i {
  background-image: url("../hashed/wK.6a015951.svg");
}
.puzzle__side__config__color .color-random i {
  background-image: url("../hashed/wbK.54c731a7.svg");
}
.puzzle__side__config__color .color-black i {
  background-image: url("../hashed/bK.b83f0a15.svg");
}
.puzzle__side__config__color .label.active {
  background: var(--m-primary_bg--mix-50);
}
.puzzle__side__replay {
  background: var(--c-bg-box);
  padding: 2vmin;
}
.puzzle__side__replay a {
  font-size: 1.3em;
  margin-bottom: 1em;
  display: block;
}
.puzzle__side__replay__bar {
  position: relative;
  padding: 0 1em;
  height: 2.5em;
  background: var(--c-bg-zebra2);
  font-weight: bold;
}
.puzzle__side__replay__bar::before {
  z-index: 0;
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
}
html:not([dir=rtl]) .puzzle__side__replay__bar::before {
  left: 0;
}
html[dir=rtl] .puzzle__side__replay__bar::before {
  right: 0;
}
.puzzle__side__replay__bar::before {
  width: var(---p);
  background: var(--m-primary_bg-page--mix-60) linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 35%);
  animation: bar-glider-anim 3s linear infinite;
  transition: width 1s ease;
}
.puzzle__side__replay__bar::after {
  z-index: 1;
  content: attr(data-text);
}
.puzzle__side__theme {
  background: var(--c-bg-box);
  padding: 2vmin;
  font-size: 0.9em;
}
.puzzle__side__theme__back {
  display: block;
  font-size: 1.5em;
  margin-bottom: 0.8rem;
}
.puzzle__side__theme__back.long {
  font-size: 1.3em;
  letter-spacing: 0;
}
.puzzle__side__theme--daily {
  outline: 3px solid var(--m-primary_bg-page--mix-50);
}
.puzzle__side__theme--daily a {
  margin: 0;
  text-align: center;
}

.puzzle__themes {
  padding-top: 1.2vh;
  border-top: 1px solid var(--c-border);
  margin-top: 1.2vh;
}
.puzzle__themes__list__entry {
  align-items: stretch;
  margin-inline-start: -0.5rem;
}
.puzzle__themes__list__entry a {
  margin-inline-start: 0.5rem;
  line-height: 2em;
}
.puzzle__themes__list__entry:hover {
  background: var(--m-primary_bg--mix-10);
}
.puzzle__themes__list__entry.strike a {
  text-decoration: line-through;
}
.puzzle__themes__votes {
  flex: 0 1 7em;
  align-items: stretch;
  text-align: center;
}
.puzzle__themes__vote {
  flex: 0 0 50%;
  cursor: pointer;
  color: var(--c-font-dimmer);
}
.puzzle__themes:hover .puzzle__themes__vote {
  color: var(--c-good);
}
.puzzle__themes:hover .puzzle__themes__vote.vote-down {
  color: var(--c-bad);
}
.puzzle__themes__vote::before {
  content: "\e046";
  font-size: 1.3em;
}
.puzzle__themes__vote.vote-down::before {
  transform: rotate(0.5turn);
}
.puzzle__themes__vote:hover, .puzzle__themes__vote.active {
  background: var(--c-good);
  color: var(--c-over) !important;
}
.puzzle__themes__vote.vote-down:hover, .puzzle__themes__vote.vote-down.active {
  background: var(--c-bad);
}
.puzzle__themes__lock {
  flex: 0 0 100%;
  color: var(--c-font-dimmer);
  opacity: 0.5;
}
.puzzle__themes__selector {
  margin: 1em 0;
}
.puzzle__themes__study {
  display: block;
}

.puzzle__tools {
  background: var(--c-bg-box);
}
.puzzle__tools .ceval-wrap {
  flex: 0 0 38px;
}
.puzzle__tools .ceval {
  height: 38px;
}

.puzzle__moves {
  user-select: none;
  flex: 2 1 auto;
  overflow: auto;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  /* required by line::before */
}
.puzzle__moves .tview2 > move {
  justify-content: space-between;
}
.puzzle__moves .tview2 > move glyph {
  font-size: 1.6em;
}
.puzzle__moves move.fail glyph {
  color: var(--c-bad);
}
.puzzle__moves move.good glyph, .puzzle__moves move.win glyph {
  color: var(--c-good);
}
.puzzle__moves move:hover glyph {
  color: #fff;
}

.puzzle__feedback {
  flex: 1 0 9rem;
}
@media (min-width: 799.3px) and (min-height: 599.3px), (orientation: landscape) and (min-height: 599.3px) {
  .puzzle__feedback {
    flex: 1 0 17rem;
  }
}
.puzzle__feedback {
  background: var(--c-bg-zebra);
  justify-content: center;
}
.puzzle__feedback:not(.after) {
  padding: 2em;
}
.puzzle__feedback .player {
  display: flex;
  align-items: center;
}
.puzzle__feedback .no-square {
  flex: 0 0 64px;
  height: 64px;
  margin-inline-end: 10px;
}
.is3d .puzzle__feedback div.no-square {
  height: 82px;
}
.puzzle__feedback piece {
  position: inherit;
  display: block;
  width: 100%;
  height: 100%;
}
.puzzle__feedback .icon {
  display: block;
  width: 64px;
  height: 64px;
  font-size: 50px;
  line-height: 64px;
  text-align: center;
}
.puzzle__feedback.good .icon,
.puzzle__feedback .win .icon {
  color: var(--c-good);
}
.puzzle__feedback.fail .icon {
  color: var(--c-bad);
}
.puzzle__feedback .instruction > * {
  display: block;
}
.puzzle__feedback .instruction strong {
  font-size: 1.5em;
}
.puzzle__feedback .view_solution {
  margin-top: 1.5em;
  text-align: center;
  visibility: hidden;
  opacity: 0;
}
.puzzle__feedback .view_solution.show {
  visibility: visible;
  opacity: 0.8;
  transition: opacity 1.5s ease;
}

.puzzle__controls {
  position: relative;
  height: 3rem;
  margin-top: calc(0px - var(---block-gap));
}
@media (max-width: 799.29px) and (orientation: portrait) {
  .puzzle__controls {
    height: 5rem;
  }
}
.puzzle__controls .jumps {
  position: relative;
  flex: 1 1 auto;
}
@media (min-width: 799.3px), (orientation: landscape) {
  .puzzle__controls .board-menu {
    border-radius: 7px 7px 0 0;
    bottom: 3rem;
    border-bottom: 2px solid var(--c-secondary);
  }
}
.puzzle__controls .glowing {
  color: var(--c-font-clearer);
}

.puzzle__feedback.after {
  flex-flow: row nowrap;
}
@media (min-width: 799.3px), (orientation: landscape) {
  .puzzle__feedback.after {
    flex-flow: column;
  }
}
.puzzle__feedback.after .continue {
  justify-content: center;
  font-size: 1.3em;
  background: var(--c-primary);
  color: var(--c-over);
  text-transform: uppercase;
  padding: 2em;
}
.puzzle__feedback.after .continue:hover {
  background: var(--m-primary--lighten-10);
}
.puzzle__feedback.after .continue i::before {
  font-size: 2.5em;
  margin-inline-end: 10px;
}
.puzzle__feedback.after .complete {
  flex: 1 1 50%;
  font-size: 1.3em;
  white-space: nowrap;
}
.puzzle__feedback.after .complete .game-over {
  letter-spacing: 0.5ch;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
}
.puzzle__feedback.after .puzzle__more {
  display: none;
  border-top: 1px solid var(--c-border);
  padding: 1em 2em;
}
.puzzle__feedback.after .puzzle__more a {
  color: var(--c-font);
}
.puzzle__feedback.after .puzzle__more a:hover {
  color: var(--c-link);
}
@media (min-width: 799.3px), (orientation: landscape) {
  .puzzle__feedback.after .puzzle__more {
    display: flex;
  }
}

.puzzle__vote {
  flex: 1 1 70%;
}
.puzzle__vote__help {
  margin: 0.5em 1em 0 0;
}
.puzzle__vote__help p {
  display: inline;
}
.puzzle__vote__help p:last-child {
  margin-inline-start: 1ch;
}
@media (min-width: 799.3px), (orientation: landscape) {
  .puzzle__vote__help {
    display: block;
    margin: 0 1em;
  }
}
.puzzle__vote__buttons {
  opacity: 0.1;
}
.puzzle__vote__buttons.enabled {
  opacity: 1;
  transition: opacity 0.5s ease;
}
.puzzle__vote__buttons {
  flex: 1 1 100%;
  align-items: stretch;
  text-align: center;
}
.puzzle__vote .vote {
  flex: 0 0 50%;
  cursor: pointer;
  color: var(--c-good);
}
.puzzle__vote .vote.vote-down {
  color: var(--c-bad);
}
.puzzle__vote .vote::before {
  content: "\e046";
  font-size: 5em;
}
.puzzle__vote .vote.vote-down::before {
  transform: rotate(0.5turn);
}
.puzzle__vote .vote:hover, .puzzle__vote .vote.active {
  background: var(--c-good);
  color: var(--c-over);
}
.puzzle__vote .vote.vote-down:hover, .puzzle__vote .vote.vote-down.active {
  background: var(--c-bad);
}

.puzzle__session {
  display: flex;
  flex-flow: row wrap-reverse;
  margin-top: -0.4em;
}
.puzzle__session a {
  flex: 0 0 2.3em;
  height: 1.6em;
  margin: 0.4em 0.5em 0 0;
  color: #fff;
  opacity: 0.85;
  font-size: 0.85em;
  font-weight: bold;
}
.puzzle__session a.result-empty::before {
  content: "\e023";
  font-size: 0.9em;
}
.puzzle__session a.result-true {
  background: var(--c-good);
}
.puzzle__session a.result-false {
  background: var(--c-bad);
}
.puzzle__session a.result-false.result-empty::before {
  content: "\e02a";
}
.puzzle__session a.current {
  background: var(--c-brag);
}
.puzzle__session a.session-new {
  background: var(--c-link);
}
.puzzle__session a:hover {
  opacity: 1;
}

.zen #friend_box,
.zen .site-title-nav,
.zen .site-buttons, .zen .puzzle__side, .zen .puzzle__controls, .zen .puzzle__session {
  display: none;
}

body.zenable.zen #top {
  justify-content: center;
}
body.zenable.zen .puzzle__moves.areplay {
  display: none;
}

/*# sourceMappingURL=puzzle.css.map */
