.piece-letter Z7yx {
  font-family: Noto Sans, sans-serif;
}

qZM, .material score, .rclock .time, .game__tournament .clock, .mchat__messages a:not(.user-link), .mchat__tab, Z7yx draw {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

Z7yx {
  font-family: Noto Chess, Noto Sans;
}

Z7yx draw {
  margin-inline-start: 1ch;
  font-weight: normal;
}

.round__now-playing .now-playing, .rclock .tour-rank, .chat__members {
  color: var(--c-font-page);
  text-shadow: 0 1px 0 var(--c-font-shadow);
}

#powerTip .forecast-info .title, .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) #powerTip .forecast-info .title, #powerTip .forecast-info :where(html.light) .title, :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);
}

#powerTip .forecast-info .title, .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));
}

.rcontrols .rematch.fbt, .cmn-toggle label:after, .crosstable povs:hover {
  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) .rcontrols .rematch.fbt, .rcontrols :where(html.light) .rematch.fbt, :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 {
  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;
}

.rcontrols .rematch.fbt, .cmn-toggle label:after, .crosstable povs:hover {
  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;
}

.rcontrols .rematch.fbt:hover:not(.disabled, :disabled, [disabled]), .cmn-toggle label:hover:not(.disabled, :disabled, [disabled]):after, .crosstable povs: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) .rcontrols .rematch.fbt:hover:not(.disabled, :disabled, [disabled]), .rcontrols :where(html.light) .rematch.fbt: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]) {
  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;
}

.rcontrols .rematch.fbt:hover:not(.disabled, :disabled, [disabled]), .cmn-toggle label:hover:not(.disabled, :disabled, [disabled]):after, .crosstable povs:hover:not(.disabled, :disabled, [disabled]) {
  background: linear-gradient(to bottom, var(--c-metal-top-hover), var(--c-metal-bottom-hover));
}

:where(html.transp) .rcontrols .rematch.fbt:hover:not(.disabled, :disabled, [disabled]), .rcontrols :where(html.transp) .rematch.fbt: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]) {
  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) .rcontrols .rematch.fbt:hover:not(.disabled, :disabled, [disabled]), .rcontrols :where(html.light) :where(html.transp) .rematch.fbt: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]) {
  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;
}

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

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

.mchat__tab, .context-streamer {
  white-space: nowrap;
  overflow: hidden;
}

.game__meta .user-tv, .mchat__tab span {
  white-space: nowrap;
}

.mchat__messages {
  overflow-wrap: break-word;
  word-break: normal;
}

.ruser a, .crosstable__users, .game__meta .user-tv, .mchat__tab span {
  text-overflow: ellipsis;
  overflow: hidden;
}

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

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

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

.rcontrols .suggestion, .rclock .tour-rank, .rclock .moretime, .rclock .berserked {
  flex-flow: wrap;
  align-items: center;
  display: flex;
}

.rcontrols .rematch-decline, .rcontrols .question, .rcontrols .pending, .material, .ruser .line, .game__meta__infos, .chat__members__number, #blindfoldzone, .context-streamer, .board-menu .setting {
  flex-flow: row;
  align-items: center;
  display: flex;
}

.expiration {
  flex-flow: wrap;
  justify-content: center;
  align-items: center;
  display: flex;
}

.round__now-playing h3 {
  flex-flow: wrap;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.rcontrols .follow-up, i5d, .round__side, .mchat__content, .mchat, .crosstable povs, .crosstable__users, .crosstable__score, .crosstable__matchup, .board-menu section, .board-menu > div, .board-menu {
  flex-flow: column;
  display: flex;
}

.rcontrols button, .rcontrols a.fbt, .cmn-toggle label:before, .cmn-toggle label, #blindfoldtog, #zentog, .context-streamer, .crosstable, .game__meta, .mchat {
  border-radius: var(---ui-roundness, 7px);
}

.game__meta, .mchat {
  overflow: hidden;
}

.crosstable .sep {
  border-radius: var(---ui-roundness, 7px) 0 0 var(---ui-roundness, 7px);
}

.rcontrols .rematch-decline, .round__app__table {
  border-radius: 0 var(---ui-roundness, 7px) var(---ui-roundness, 7px) 0;
}

.rclock-top .time, .mchat__tab {
  border-radius: var(---ui-roundness, 7px) var(---ui-roundness, 7px) 0 0;
}

.rclock-bottom .time, .mchat__say {
  border-radius: 0 0 var(---ui-roundness, 7px) var(---ui-roundness, 7px);
}

.rcontrols .rematch-decline, i5d bo3, .rclock .time, .round__app__table, .game__meta, .mchat {
  box-shadow: 0 2px 2px #00000014, 0 3px 1px -2px #0000002e, 0 1px 5px #0000001a;
}

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

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

:where(html.transp) .game__meta, :where(html.transp) .mchat {
  -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%;
  }
}

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

.crosstable fill, .crosstable povs {
  background: var(--c-bg-zebra);
  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;
}

@keyframes glowing {
  42% {
    background: none;
  }

  50% {
    background: color-mix(in oklab, var(--c-primary) 20%, var(--c-bg));
  }

  58% {
    background: none;
  }
}

.glowing {
  animation: 2s ease-in-out infinite glowing;
}

@keyframes bar-glider-anim {
  0% {
    transform: translateX(-1300px);
  }

  100% {
    transform: translateX(2100px);
  }
}

.bar-glider {
  position: relative;
  overflow: hidden;
}

html:not([dir="rtl"]) .bar-glider:after {
  left: 0;
}

html[dir="rtl"] .bar-glider:after {
  right: 0;
}

.bar-glider:after {
  content: "";
  background: linear-gradient(to right, #fff0, #ffffff4d);
  width: 70px;
  animation: 3s linear infinite bar-glider-anim;
  position: absolute;
  top: 0;
  bottom: 0;
}

html[dir="rtl"] .bar-glider:after {
  background: linear-gradient(to left, #fff0, #ffffff4d);
}

@media (prefers-reduced-motion: reduce) {
  .bar-glider:after {
    display: none;
  }
}

.now-playing {
  ---np-min-width: 200px;
  display: grid;
}

@media (max-width: 499.29px) {
  .now-playing {
    ---np-min-width: 50%;
  }
}

.now-playing {
  grid-template-columns: repeat(auto-fill, minmax(var(---np-min-width), 1fr));
}

.now-playing > a {
  color: var(--c-font);
  padding: .3em;
}

.now-playing > a:focus-visible {
  outline-offset: -2px;
}

.now-playing .indicator {
  color: var(--c-accent);
  margin-top: -3px;
  display: block;
}

.now-playing cg-board {
  box-shadow: none;
}

.context-streamers {
  max-height: 20vh;
  overflow-y: auto;
}

.context-streamer {
  background: var(--c-bg-box);
  height: 2em;
  color: var(--c-font-dim);
  margin-top: 2px;
  padding-inline-start: .2em;
  transition: all .15s;
}

.context-streamer strong {
  color: var(--c-brag);
  padding-inline-end: .7ch;
  font-weight: normal;
}

.context-streamer:before {
  color: var(--c-brag);
  font-size: 1.3em;
}

.context-streamer:hover {
  color: var(--c-font-dim);
  background: var(--c-bg-zebra);
}

#zenzone {
  z-index: 111;
  flex-flow: row;
  align-items: center;
  display: none;
  position: absolute;
}

body.zenable.zen #zenzone {
  display: flex;
}

#zenzone .zen-home {
  background: url("../logo/lichess-white.svg") center no-repeat;
  flex: 0 0 4em;
  height: 4em;
  padding: 1em;
}

:where(html.light) #zenzone .zen-home {
  background-image: url("../logo/lichess.svg");
}

#zenzone .zen-home {
  opacity: .5;
  background-size: 2em;
}

#zenzone .zen-home:hover {
  opacity: 1;
}

#zentog {
  opacity: .5;
  flex: none;
  padding: .2em 1em;
}

#zentog:hover {
  opacity: 1;
}

#blindfoldzone {
  bottom: 20px;
  z-index: 3;
  height: 4em;
  position: fixed;
  inset-inline-end: 6px;
}

@media (max-width: 1019.29px) {
  #blindfoldzone {
    z-index: 111;
    justify-content: center;
    top: 0;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 499.29px) {
  #blindfoldzone {
    top: auto;
    bottom: 10px;
  }
}

#blindfoldtog {
  opacity: .9;
  background: var(--c-bad);
  color: var(--c-over);
  text-transform: uppercase;
  flex: none;
  padding: .2em 1em;
  font-weight: bold;
  line-height: 1.2;
}

#blindfoldtog:hover {
  opacity: 1;
}

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

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

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

.blindfold.main-board .check {
  background-image: none;
}

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

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

.mchat__tabs {
  flex: none;
  display: flex;
}

.mchat__tab {
  text-align: center;
  cursor: pointer;
  color: var(--c-font-page);
  flex: auto;
  padding: .4em 10px;
  transition: all .15s;
}

.mchat__tab:hover {
  background: color-mix(in oklab, var(--c-accent) 15%, var(--c-bg));
}

.mchat__tab-active {
  color: var(--c-font);
  background: var(--c-bg-box) !important;
}

.mchat__tab:last-child {
  border-inline-end: none;
}

.mchat-optional .mchat__tab.discussion {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.chat__members {
  height: 100%;
  font-size: .9em;
  overflow: hidden;
}

.chat__members__inner {
  align-items: flex-start;
  display: flex;
}

.chat__members__number {
  margin-inline-end: 1ch;
}

.chat__members__number:before {
  color: var(--c-font-dim);
  margin-inline-end: .2ch;
  font-size: 1em;
}

.mchat__messages {
  flex: auto;
  max-height: 50vh;
}

@media (min-width: 1259.3px) {
  .mchat__messages {
    max-height: none;
  }
}

.mchat__messages {
  cursor: initial;
  font-size: .9em;
  overflow: hidden auto;
}

.mchat__messages li {
  padding-inline: 10px 5px;
  -webkit-user-select: text;
  user-select: text;
  overflow-wrap: anywhere;
  padding-top: .5em;
  padding-bottom: .5em;
  line-height: 1.2em;
  position: relative;
  overflow-y: hidden;
}

.mchat__messages li.me {
  border-inline-start: 3px solid var(--c-secondary-dim);
  padding-inline-start: 7px;
}

.mchat__messages li.host {
  background-color: var(--c-chat-host-bg);
}

.mchat__messages li.mentioned {
  background-color: var(--c-chat-mention-bg);
}

.mchat__messages .deleted {
  opacity: .5;
}

.mchat__messages .system {
  opacity: .8;
  text-align: center;
  margin-inline-start: 0;
  font-size: .9em;
  font-style: italic;
  display: block;
}

.mchat__messages .color, .mchat__messages .user-link {
  color: var(--c-font-dim);
  letter-spacing: -1px;
  text-overflow: ellipsis;
  vertical-align: bottom;
  padding: 0;
  padding-inline-end: .4em;
  font-weight: bold;
  display: inline-block;
}

.mchat__messages .patron {
  text-align: left;
  width: 1.2em;
  font-size: 1.1em;
}

.mchat__messages .utitle {
  margin-right: 3px;
}

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

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

.mchat__messages action {
  cursor: pointer;
  opacity: .7;
  color: var(--c-accent);
  margin-inline-end: 3px;
  padding: 1px 5px;
  display: none;
  position: absolute;
  top: 5px;
}

.mchat__messages action:hover {
  opacity: 1;
}

html:not([dir="rtl"]) .mchat__messages action.reply {
  right: 25px;
}

html[dir="rtl"] .mchat__messages action.reply {
  left: 25px;
}

.mchat__messages li:hover action {
  text-shadow: 0 0 2px var(--c-bg-box), 0 0 5px var(--c-bg-box), 0 0 10px var(--c-bg-box);
  display: block;
}

.mchat__messages li.me action {
  display: none !important;
}

.mchat__messages.as-mod li:hover {
  background: color-mix(in oklab, var(--c-accent) 10%, var(--c-bg));
}

.mchat__messages::-webkit-scrollbar {
  background: unset;
}

.mchat__messages::-webkit-scrollbar-corner {
  background: unset;
}

.mchat__say {
  padding-inline: 4px 20px;
  padding-top: 3px;
  padding-bottom: 3px;
  border: 0;
  border-top: 1px solid var(--c-border);
  flex: none;
  padding-inline: 6px;
}

.mchat__say:focus {
  outline: 1px solid var(--c-primary);
}

.mchat__say.whisper {
  color: var(--c-good);
  font-style: italic;
  font-weight: bold;
}

.mchat {
  grid-area: chat;
  justify-content: stretch;
}

.mchat__content {
  background: var(--c-bg-box);
  flex: auto;
  overflow: hidden;
}

.mchat__content.note textarea {
  resize: none;
  background-color: #0000;
  border: 1px solid #0000;
  outline: none;
  flex-grow: 1;
  font-size: .9em;
  line-height: 1.7em;
}

.mchat__content.note textarea:focus {
  border-color: var(--c-primary);
}

.mchat {
  min-height: 15em;
}

.mchat__presets {
  -webkit-user-select: none;
  user-select: none;
  flex-flow: row;
  flex: none;
  align-items: center;
  line-height: 1.4em;
  display: flex;
}

.mchat__presets span {
  text-align: center;
  opacity: .8;
  border: 1px solid var(--c-border);
  text-transform: uppercase;
  cursor: pointer;
  border-width: 1px 1px 0 0;
  flex: auto;
  font-size: .9em;
  transition: all .15s;
  display: block;
}

.mchat__presets span.disabled {
  background: color-mix(in oklab, var(--c-accent) 15%, var(--c-bg));
  color: #0000;
  cursor: default;
}

.mchat__presets span:not(.disabled):hover {
  background: var(--c-accent);
  color: var(--c-over);
  opacity: 1;
}

#main-wrap {
  ---main-max-width: auto;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  #main-wrap {
    ---main-max-width: calc(100vh - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - 100px - 4em);
  }
}

.round {
  gap: var(---block-gap);
  grid-area: main;
  display: grid;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .round {
    gap: 0;
  }

  .round .game__meta__players {
    display: none;
  }
}

.round__app {
  grid-area: app;
}

.round__side {
  grid-area: side;
}

.round__underboard {
  grid-area: under;
}

.round__underchat {
  grid-area: uchat;
}

.round {
  grid-template-areas: "app"
                       "under"
                       "side"
                       "uchat";
}

@media (min-width: 799.3px), (orientation: landscape) {
  .round {
    grid-template: "app app"
                   "under side" fit-content(0)
                   "under uchat" fit-content(0)
                   / 1fr 1fr;
  }

  .round__app {
    justify-self: center;
  }
}

@media (min-width: 1259.3px) {
  .round {
    grid-template-columns: minmax(var(---col3-uniboard-side-min, 250px), 350px) var(---col3-uniboard-width) minmax(240px, 400px);
    grid-template-rows: fit-content(0);
    grid-template-areas: "side app app"
                         "uchat under .";
  }

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

@media (max-width: 799.29px) and (orientation: landscape) {
  .round .crosstable {
    display: none;
  }
}

.rcontrols {
  grid-area: controls;
}

.material-top {
  grid-area: mat-top;
}

.material-bottom {
  grid-area: mat-bot;
}

.expiration-top {
  grid-area: expi-top;
}

.expiration-bottom {
  grid-area: expi-bot;
}

.ruser-top {
  grid-area: user-top;
}

.ruser-bottom {
  grid-area: user-bot;
}

.rclock-top {
  grid-area: clock-top;
}

.rclock-bottom {
  grid-area: clock-bot;
}

i5d, .col1-rmoves-preload {
  grid-area: moves;
}

.keyboard-move {
  grid-area: kb-move;
}

.round__app {
  display: grid;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .round__app {
    grid-template-rows: auto 30px 20px auto auto 20px 30px auto auto auto auto 0;
    grid-template-areas: "pocket-top"
                         "user-top"
                         "mat-top"
                         "board"
                         "expi-bot"
                         "mat-bot"
                         "user-bot"
                         "pocket-bot"
                         "controls"
                         "moves"
                         "voice"
                         "kb-move";
  }

  .round__app .rclock-top {
    grid-area: 2 / 1 / 4 / 2;
  }

  .round__app .rclock-bottom {
    grid-area: 6 / 1 / 8 / 2;
  }

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

  .round__app.swap-clock .ruser {
    justify-content: end;
  }

  .round__app.swap-clock .rclock {
    justify-self: start;
  }

  .round__app.swap-clock .material {
    justify-self: end;
    margin-inline-end: 6px;
  }

  .round__app .ricons {
    margin: .5em 0;
  }

  .round__app .ricons.empty {
    margin-bottom: 0;
  }

  .round__app__table, .round__app .expiration-top, .round__app .keyboard-move {
    display: none;
  }
}

@media (min-width: 799.3px), (orientation: landscape) {
  .round__app {
    grid-template-areas: "board voice"
                         "board ."
                         "board mat-top"
                         "board clock-top"
                         "board expi-top"
                         "board user-top"
                         "board moves"
                         "board controls"
                         "board user-bot"
                         "board expi-bot"
                         "board clock-bot"
                         "board mat-bot"
                         "board ."
                         "kb-move .";
    grid-template-columns: var(---col2-uniboard-width) minmax(240px, 400px);
    column-gap: var(---block-gap);
    grid-template-rows: minmax(0, 1fr) 0 repeat(10, auto) minmax(0, 1fr);
  }

  .round__app__table {
    grid-area: 5 / 2 / 11 / 3;
  }

  .round__app #voice-bar {
    margin-block-end: 2px;
  }

  .round__app .expiration-top {
    z-index: 1;
    display: flex;
  }

  .round__app i5d {
    margin-bottom: 1px;
  }

  .round__app aPp {
    background: none;
    display: none;
  }

  .round__app .keyboard-move {
    margin-top: var(---block-gap);
  }
}

@media (min-width: 799.3px) and (min-height: 499.3px), (orientation: landscape) and (min-height: 499.3px) {
  .round__app aPp {
    display: flex;
  }
}

@media (min-width: 1259.3px) {
  .round__app {
    grid-template-columns: var(---col3-uniboard-width) minmax(240px, 400px);
  }
}

@media (max-width: 799.29px) and (orientation: landscape) {
  .round__app {
    grid-template-columns: minmax(55vmin, calc(100vh - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - var(---block-gap))) minmax(200px, 240px);
  }
}

.round__app__board {
  grid-area: board;
}

body.zenable.zen Z7yx, body.zenable.zen qZM, body.zenable.zen .rclock .tour-rank, .rclock body.zenable.zen .tour-rank, body.zenable.zen .rclock .moretime, .rclock body.zenable.zen .moretime, body.zenable.zen .rclock .berserked, .rclock body.zenable.zen .berserked, body.zenable.zen .ruser, body.zenable.zen .mchat, body.zenable.zen .round__side, body.zenable.zen #friend_box, body.zenable.zen .site-title-nav, body.zenable.zen .site-buttons, body.zenable.zen .opponent-left-counter, body.zenable.zen .round__underboard, body.zenable.zen .round__underchat {
  display: none;
}

body.zenable.zen .ricons {
  margin: .5em 0 1em;
}

body.zenable.zen #top {
  justify-content: center;
}

.round__side .game__meta {
  flex: none;
}

.round__side .game__meta__players .team {
  margin-inline-start: 1.7em;
}

.mchat {
  margin-top: var(---block-gap);
  flex: 1 1 0;
}

.game__meta {
  background: var(--c-bg-box);
  padding: 1.25em 1.5em;
}

.game__meta section:not(:last-child) {
  border-bottom: 1px solid var(--c-border);
  margin-bottom: .8rem;
  padding-bottom: .8rem;
}

.game__meta__infos {
  position: relative;
}

.game__meta__infos:before {
  margin-inline-end: .75rem;
  font-size: 3rem;
}

.game__meta__infos p {
  margin: 0;
}

.game__meta__infos time {
  opacity: 1;
  color: var(--c-font-dimmer);
}

.game__meta__infos form.delete button {
  color: var(--c-bad);
}

.game__meta .status {
  text-align: center;
}

.game__meta__players {
  flex-direction: column;
  gap: .15em;
  margin-top: .4rem;
  font-size: 90%;
  display: flex;
}

.game__meta__players .player {
  align-items: end;
  display: flex;
}

.game__meta__players abbr {
  color: color-mix(in oklab, var(--c-primary) 50%, var(--c-font));
  text-decoration: none;
}

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

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

.game__meta .bookmark {
  z-index: 2;
  color: var(--c-font-dim);
  position: absolute;
}

.game__meta .bookmark:not(.bookmarked) .on, .game__meta .bookmark.bookmarked .off {
  display: none;
}

.game__meta .user-tv {
  font-size: 1.2em;
}

.game__tournament .clock {
  text-align: center;
  margin-top: .2em;
  font-size: 2em;
}

@media (hover: hover) {
  .game__meta .bookmark {
    display: none;
  }

  .game__meta:hover .bookmark {
    display: block;
  }
}

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

.round__app__table {
  background: var(--c-bg-box);
}

.expiration {
  background: var(--c-good);
  color: #fff;
  font-size: .9rem;
  line-height: 2;
}

.expiration-top {
  border-top-right-radius: var(---ui-roundness, 7px);
}

.expiration-bottom {
  border-bottom-right-radius: var(---ui-roundness, 7px);
}

.expiration.emerg {
  background: var(--c-bad);
}

.expiration strong {
  margin-inline-end: .3em;
  font-size: 1rem;
}

.ruser {
  -webkit-user-select: none;
  user-select: none;
  z-index: 1;
  justify-content: start;
  align-items: center;
  padding: 0 .3em;
  font-size: 1.2em;
  display: flex;
}

.ruser:hover, .ruser a {
  color: var(--c-font);
}

.ruser.long a {
  letter-spacing: -.5px;
}

.ruser rating {
  color: var(--c-font-dim);
  letter-spacing: -.5px;
  flex: none;
  margin: 0 .25em 0 .3em;
}

body.no-rating .ruser rating {
  display: none;
}

.ruser .line {
  justify-content: center;
}

.ruser signal {
  margin-left: .3em;
  font-size: .8em;
}

@keyframes connecting {
  0% {
    opacity: .1;
  }

  50% {
    opacity: .3;
  }

  100% {
    opacity: .1;
  }
}

.ruser.connecting .line {
  animation: .9s ease-in-out infinite connecting;
}

.ruser .rp {
  margin-inline-end: .2em;
}

@media (min-width: 799.3px), (orientation: landscape) {
  .ruser {
    line-height: inherit;
    padding: .5em .5em .5em .3em;
  }

  .ruser a {
    flex: auto;
  }
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .ruser-top {
    align-self: flex-end;
  }

  .ruser-bottom {
    align-self: flex-start;
  }
}

.rclock {
  -webkit-user-select: none;
  user-select: none;
  justify-content: flex-end;
  display: flex;
  position: relative;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .rclock {
    z-index: 1;
    justify-self: flex-end;
  }
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rclock {
    justify-content: space-between;
  }

  .rclock-bottom {
    z-index: 0;
  }
}

.rclock-turn {
  align-self: center;
  line-height: 50px;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .rclock-turn__text {
    background: var(--c-bg-box);
    padding: 0 var(---block-gap);
    white-space: nowrap;
    font-weight: bold;
  }
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rclock-turn {
    height: 2.2em;
    line-height: 2.2em;
  }
}

.rclock .bar {
  display: none;
}

.rclock .bar.berserk {
  background: var(--c-bad);
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rclock .bar {
    background: var(--c-good);
    transform-origin: 0;
    width: 100%;
    height: 4px;
    display: block;
    position: absolute;
  }

  .with-expiration .rclock .bar {
    display: none;
  }

  .rclock-top .bar {
    bottom: -4px;
  }

  .rclock-bottom .bar {
    top: -4px;
  }
}

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

.rclock .time {
  background: var(--c-bg-box);
  min-width: 3em;
  padding: 0 var(---block-gap);
  white-space: nowrap;
  will-change: transform;
  z-index: -1;
  direction: ltr;
  font-size: 2.8em;
  font-weight: normal;
  line-height: 50px;
  display: flex;
}

.rclock .time.hour {
  font-size: 2.3em;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .rclock .time {
    box-shadow: none;
    border-radius: 0;
    overflow: hidden;
  }
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rclock .time {
    align-items: flex-end;
    line-height: 1.2em;
  }
}

@media (min-width: 499.3px) and (min-height: 599.3px) {
  .rclock .time {
    letter-spacing: .12em;
    font-size: 3.6em;
  }

  .rclock .time.hour {
    letter-spacing: .1em;
    font-size: 2.9em;
  }
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rclock-correspondence .time {
    line-height: 1.5em;
  }
}

@media (min-width: 499.3px) {
  .rclock-correspondence .time {
    font-size: 1.9em;
  }
}

.rclock tenths {
  margin-bottom: -.18em;
  font-size: 70%;
}

.rclock huns {
  font-size: 80%;
}

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

.rclock sep {
  opacity: .5;
  font-size: .8em;
}

.rclock sep.low {
  opacity: .15;
}

@media (prefers-reduced-motion: reduce) {
  .rclock sep.low {
    opacity: .5;
  }
}

.rclock.running .time {
  background: color-mix(in oklab, var(--c-secondary) 30%, var(--c-bg));
  color: var(--c-font-clearer);
}

.rclock.emerg .time, .rclock.outoftime .time {
  background-color: color-mix(in oklab, var(--c-bad) 25%, var(--c-bg));
}

.rclock.emerg.running .time {
  background-color: color-mix(in oklab, var(--c-bad) 50%, var(--c-bg));
  color: var(--c-font-clearer);
}

@media (min-width: 419.3px) {
  .rclock .tour-rank, .rclock .moretime, .rclock .berserked {
    flex: 0 auto;
    order: -1;
    padding: 0 .3em;
    font-size: 1.7em;
    display: flex;
  }
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rclock .tour-rank, .rclock .moretime, .rclock .berserked {
    order: inherit;
  }
}

.rclock-correspondence .time {
  letter-spacing: inherit;
  direction: unset;
  font-size: 1.6em;
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rclock-correspondence .time {
    line-height: 1.5em;
  }
}

@media (min-width: 499.3px) {
  .rclock-correspondence .time {
    font-size: 1.9em;
  }
}

.rclock .go-berserk {
  padding: 0 .3em;
  font-size: 2.2em;
}

.rclock .go-berserk:hover {
  color: var(--c-accent) !important;
  background: none !important;
}

.rclock .tour-rank, .rclock .moretime, .rclock .berserked {
  display: none;
}

@media (min-width: 419.3px) {
  .rclock .tour-rank, .rclock .moretime, .rclock .berserked {
    flex: 0 auto;
    order: -1;
    padding: 0 .3em;
    font-size: 1.7em;
    display: flex;
  }
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rclock .tour-rank, .rclock .moretime, .rclock .berserked {
    order: inherit;
  }
}

.rclock .tour-rank {
  opacity: .65;
}

.rclock .moretime {
  opacity: .4;
}

.rclock .moretime:hover {
  opacity: 1;
}

.rclock .berserked {
  color: var(--c-accent);
  font-size: 2.2em;
}

.material {
  pointer-events: none;
}

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

.material {
  white-space: nowrap;
  align-self: center;
  height: 40px;
  line-height: 0;
}

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

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

.material mpiece.pawn {
  margin-inline-start: -15px;
}

.material score {
  vertical-align: top;
  line-height: 32px;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .material {
    height: 20px;
    margin-inline-start: 3vmin;
  }

  .material div {
    margin-inline-start: 8px;
  }

  .material mpiece {
    width: 15px;
    height: 15px;
    margin-inline-start: -8px !important;
  }
}

i5d {
  position: relative;
}

i5d bo3 {
  background: var(--c-bg-zebra);
  flex: 0 0 2.5rem;
  order: 2;
  justify-content: stretch;
  font-size: .9em;
  display: flex;
}

@media (min-width: 799.3px), (orientation: landscape) {
  i5d bo3 {
    order: 0;
  }
}

i5d .fbt, i5d .noop {
  -webkit-user-select: none;
  user-select: none;
  -webkit-callout-touch: none;
  text-align: center;
  flex: 0 0 16.6667%;
}

i5d aPp, i5d .message {
  flex: 0 0 7.4rem;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  :where(html.transp) i5d:before {
    content: "";
    z-index: -1;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  i5d {
    overflow: hidden;
  }

  i5d .col1-moves {
    flex: 0 0 4em;
    justify-content: space-between;
    display: flex;
  }

  i5d .col1-moves .fbt {
    flex: none;
    padding: 0 1.3em;
  }

  body.zenable.zen i5d .col1-moves {
    visibility: hidden;
  }

  i5d aPp {
    white-space: nowrap;
    color: var(--c-font-page);
    flex: 100%;
    align-items: stretch;
    display: flex;
    overflow-x: scroll;
    box-shadow: inset 0 4px 16px #0006;
  }

  :where(html.light) i5d aPp {
    box-shadow: inset 0 4px 16px #aaa6;
  }

  i5d aPp::-webkit-scrollbar {
    height: 0;
  }

  i5d aPp > :first-child {
    margin-inline-start: auto !important;
  }

  i5d qZM, i5d Z7yx, i5d .result-wrap {
    justify-content: center;
    align-items: center;
    padding: 0 .3rem;
    display: flex;
  }

  i5d qZM {
    padding-inline-end: .15em;
  }

  i5d Z7yx {
    cursor: pointer;
    font-size: 1.1em;
  }

  i5d Z7yx.a1t, i5d Z7yx:hover {
    background: var(--c-bg-zebra);
  }

  :where(html.light) i5d Z7yx.a1t, :where(html.light) i5d Z7yx:hover {
    background: hsl(var(---site-hue), 20%, 85%);
  }

  i5d Z7yx.a1t {
    color: var(--c-font-clearer);
  }

  i5d bo3 {
    display: none;
  }

  i5d .result {
    margin: 0;
    font-size: 1.1em;
    font-weight: bold;
  }

  i5d .message {
    flex: 0 0 4em;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    display: flex;
  }

  i5d .message br {
    display: none;
  }

  i5d .message strong {
    margin-inline-start: .5em;
  }

  i5d .message:before {
    margin-inline-end: .3em;
  }

  body.zenable.zen i5d .message {
    visibility: hidden;
  }

  i5d .status {
    display: none;
  }
}

@media (min-width: 799.3px), (orientation: landscape) {
  i5d {
    background: var(--c-bg-box);
  }

  i5d .fbt, i5d .noop {
    height: 2.5rem;
    line-height: 2.4rem;
  }

  i5d aPp {
    -webkit-user-select: none;
    user-select: none;
    will-change: scroll-position;
    flex-flow: wrap;
    align-content: flex-start;
    align-items: center;
    font-size: 1.1em;
    line-height: 1.7;
    display: flex;
    position: relative;
    overflow-y: auto;
  }

  i5d qZM {
    background: var(--c-bg-zebra);
    flex: 0 0 16.666%;
    justify-content: center;
    align-items: flex-end;
    display: flex;
  }

  i5d Z7yx {
    cursor: pointer;
    flex: 0 0 41.666%;
    padding-inline-start: .7em;
  }

  i5d Z7yx:hover {
    background: var(--c-primary);
    color: #fff;
  }

  i5d Z7yx.a1t {
    background: color-mix(in oklab, var(--c-primary) 20%, var(--c-bg));
    color: var(--c-font-clear);
    font-weight: bold;
  }

  i5d .message {
    align-items: center;
    margin: 1em;
    display: flex;
  }

  i5d .message:before {
    color: var(--c-font-dim);
    margin-inline-end: 12px;
    font-size: 3em;
  }

  i5d .result-wrap {
    text-align: center;
    width: 100%;
  }

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

  i5d .status {
    margin-bottom: .5em;
    font-style: italic;
  }

  i5d .board-menu, i5d .board-menu:before {
    border-radius: 0 0 var(---ui-roundness, 7px) var(---ui-roundness, 7px);
  }

  i5d .board-menu {
    border-top: 2px solid var(--c-secondary);
    top: 2.5rem;
  }
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .col1-rmoves-preload {
    height: 2.5em;
  }
}

.rcontrols {
  text-align: center;
  z-index: 1;
  width: 100%;
}

.rcontrols p {
  margin: 0;
}

.rcontrols button.resign:not(.disabled):hover, .rcontrols button.abort:not(.disabled):hover, .rcontrols a.fbt.resign:not(.disabled):hover, .rcontrols a.fbt.abort:not(.disabled):hover {
  background: var(--c-bad);
}

.rcontrols .disabled {
  opacity: .5;
  cursor: not-allowed;
}

.rcontrols .ddloader {
  margin: 20px auto 10px;
}

.rcontrols .suggestion, .rcontrols .pending, .rcontrols .question {
  background: var(--c-bg-zebra);
  border: 1px solid var(--c-border);
  border-width: 0 1px;
  padding: .5em 3%;
}

.rcontrols .suggestion {
  justify-content: space-around;
}

.rcontrols .suggestion p {
  width: 100%;
}

.rcontrols .suggestion .button {
  margin: .5em 0 0;
}

.rcontrols .pending p {
  flex: 3;
  margin-inline-end: 7px;
}

.rcontrols .pending .button {
  flex: 1;
}

@keyframes flash-once {
  from {
    background: var(--c-accent);
    color: var(--c-over);
  }

  to {
    background: var(--c-bg-zebra);
    color: var(--c-font);
  }
}

.rcontrols .question {
  border: none;
  padding: 1px;
  animation: 1s ease-in flash-once;
}

.rcontrols .question p {
  flex: 3 auto;
  padding: .5em 0;
}

.rcontrols .question a {
  background: var(--c-bg-box);
  flex: 1 0 3rem;
  font-size: 1.5em;
  line-height: 3em;
}

.rcontrols .question .yes {
  color: var(--c-good);
}

.rcontrols .question .no {
  color: var(--c-bad);
}

.rcontrols .question a:hover {
  color: #fff;
  background: var(--c-good);
}

.rcontrols .question a.no:hover {
  background: var(--c-bad);
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .rcontrols .question a {
    flex: 0 0 2.5rem;
    padding: 0 1.2em;
    line-height: 1.6em;
  }

  .rcontrols .question {
    padding: 3px;
  }
}

.rcontrols .glowing:hover {
  animation: none;
}

.rcontrols .follow-up {
  border-bottom: 1px solid var(--c-border);
  gap: 4px;
  padding: 0 8px 8px;
  position: relative;
}

.rcontrols .follow-up .fbt {
  margin: 1px 1px 0;
  padding: 12px 0;
}

.rcontrols .follow-up > .fbt:first-child {
  margin-top: 0;
}

.rcontrols .follow-up .fbt.strong {
  padding: 2em 0;
  font-size: 1.2em;
}

.rcontrols .follow-up .weak {
  padding: 6px 0;
  font-weight: normal;
}

.rcontrols .follow-up .weak:before {
  opacity: .7;
}

.rcontrols .follow-up form .fbt {
  width: 100%;
}

.rcontrols .follow-up .spinner {
  width: 40px;
  height: 40px;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .rcontrols .follow-up {
    margin-top: var(---block-gap);
  }
}

.rcontrols .analysis, .rcontrols .board-menu-toggle-btn {
  display: none;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .rcontrols .analysis, .rcontrols .board-menu-toggle-btn {
    margin-inline-start: 2em;
    display: block;
  }
}

@media (max-width: 400px) {
  .rcontrols .analysis, .rcontrols .board-menu-toggle-btn {
    margin-inline-start: 0;
  }
}

.rcontrols .rematch.fbt {
  height: 6rem;
  font-size: 1.2em;
  transition: all .15s;
}

.rcontrols .rematch.me {
  background: color-mix(in oklab, var(--c-primary) 80%, var(--c-bg));
}

@keyframes rubber-band {
  0% {
    transform: scale3d(1, 1, 1);
  }

  6% {
    transform: scale3d(1.25, .75, 1);
  }

  8% {
    transform: scale3d(.75, 1.25, 1);
  }

  10% {
    transform: scale3d(1.15, .85, 1);
  }

  13% {
    transform: scale3d(.95, 1.05, 1);
  }

  15% {
    transform: scale3d(1.05, .95, 1);
  }

  20% {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes button-glowing {
  0% {
    opacity: 0;
  }

  60% {
    opacity: .2;
  }

  85% {
    opacity: 0;
  }
}

.rcontrols .rematch.glowing {
  color: var(--c-font-clear);
  animation: none;
  position: relative;
}

.rcontrols .rematch.glowing:before {
  content: "";
  pointer-events: none;
  background: var(--c-primary);
  opacity: 0;
  animation: 2s ease-in-out infinite button-glowing;
  position: absolute;
  inset: 0;
}

.rcontrols .rematch.glowing span {
  display: block;
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rcontrols .rematch.glowing span {
    animation: 5s infinite rubber-band;
  }
}

.rcontrols .rematch.fbt:not(.disabled):hover {
  box-shadow: inset 0 1px 3px -2px hsl(from var(--c-primary) h s calc(l + 32)), inset 0 -4px 6pt -3pt hsl(from var(--c-primary) h s calc(l - 18)), 0 1px 3px 0 #0003;
}

:where(html.light) .rcontrols .rematch.fbt:not(.disabled):hover {
  box-shadow: inset 0 2px 3px -2px hsl(from var(--c-primary) h s calc(l + 44)), inset 0 -4px 6pt -3pt hsl(from var(--c-primary) h s calc(l - 14)), 0 1px 3px 0 #0000002e;
}

.rcontrols .rematch.fbt:not(.disabled):hover:not(.disabled, :disabled, [disabled]):hover {
  box-shadow: inset 0 1px 3px -2px hsl(from var(--c-primary) h s calc(l + 44)), inset 0 -5px 6pt -3pt hsl(from var(--c-primary) h s calc(l - 14)), 0 2px 4px 0 #0000003d;
}

:where(html.light) .rcontrols .rematch.fbt:not(.disabled):hover:not(.disabled, :disabled, [disabled]):hover {
  box-shadow: inset 0 2px 3px -2px hsl(from var(--c-primary) h s calc(l + 44)), inset 0 -5px 6pt -3pt hsl(from var(--c-primary) h s calc(l - 14)), 0 2px 4px 0 #00000036;
}

.rcontrols .rematch.fbt:not(.disabled):hover {
  background: var(--c-primary);
  color: #fff;
  animation: none;
}

html:not([dir="rtl"]) .rcontrols .rematch-decline {
  right: -25px;
}

html[dir="rtl"] .rcontrols .rematch-decline {
  left: -25px;
}

.rcontrols .rematch-decline {
  opacity: .7;
  background: color-mix(in oklab, var(--c-bad) 50%, var(--c-bg));
  border: 0;
  justify-content: center;
  width: 25px;
  height: 6rem;
  transition: all .15s;
  display: none;
  position: absolute;
  top: 0;
}

@media (min-width: 799.3px), (orientation: landscape) {
  .rcontrols .rematch-decline {
    display: block;
  }
}

.rcontrols .rematch-decline:hover {
  background: var(--c-bad);
  color: var(--c-over);
  width: 35px;
}

html:not([dir="rtl"]) .rcontrols .rematch-decline:hover {
  right: -36px;
}

html[dir="rtl"] .rcontrols .rematch-decline:hover {
  left: -36px;
}

.ricons {
  justify-content: center;
  display: flex;
}

.ricons .fbt {
  padding: .1em 1em;
  font-size: 1.4em;
}

.ricons.confirm > button {
  visibility: hidden;
}

.ricons .act-confirm {
  visibility: visible;
  width: 60px;
  position: relative;
}

html:not([dir="rtl"]) .ricons .act-confirm .fbt.no {
  right: -34px;
}

html[dir="rtl"] .ricons .act-confirm .fbt.no {
  left: -34px;
}

.ricons .act-confirm .fbt.no {
  text-align: center;
  width: 30px;
  padding: .1em 0;
  position: absolute;
  top: 0;
}

html:not([dir="rtl"]) .ricons .act-confirm .fbt.yes {
  right: 0;
}

html[dir="rtl"] .ricons .act-confirm .fbt.yes {
  left: 0;
}

.ricons .act-confirm .fbt.yes {
  color: #fff;
  background: var(--c-accent);
  border-bottom: 5px solid color-mix(in oklab, var(--c-accent) 70%, black);
  text-shadow: 0 -1px color-mix(in oklab, var(--c-accent) 70%, black);
  border-radius: 8px;
  text-decoration: none;
  transition: all .15s;
  position: absolute;
  top: -3px;
  transform: translate(0);
}

.ricons .act-confirm .fbt.yes:hover {
  filter: brightness(1.07);
}

.ricons .act-confirm .fbt.yes:active {
  text-shadow: 0 0 color-mix(in oklab, var(--c-accent) 70%, black);
  filter: brightness();
  border-bottom-width: 1px;
  transform: translate(0, 5px);
}

.round__now-playing h3 {
  margin: 1em 0 .5em;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .round__now-playing h3 {
    margin: 1em var(---block-gap) .5em var(---block-gap);
  }
}

.round__now-playing .simul span {
  margin: 0 .5em;
  font-weight: bold;
}

.round__now-playing .simul .win {
  color: var(--c-good);
}

.round__now-playing .simul .draw {
  color: var(--c-brag);
}

.round__now-playing .simul .loss {
  color: var(--c-bad);
}

#powerTip .forecast-info .title {
  border-bottom: 1px solid var(--c-border);
  text-align: center;
  padding: .7em;
  display: block;
}

#powerTip .forecast-info .content {
  padding: 1em;
  display: block;
}

@media (min-width: 799.3px), (orientation: landscape) {
  main.round--streamer .round__underboard {
    display: none;
  }

  main.round--streamer .round__app {
    grid-template-columns: minmax(calc(70vmin * var(---board-scale)), calc(100vh * var(---board-scale) - (var(---site-header-height) + var(---site-header-margin)) - 3rem)) minmax(240px, 400px);
    grid-template-rows: 30px 1fr auto min-content auto auto min-content auto 1fr 30px;
    grid-template-areas: "user-top ."
                         "board ."
                         "board mat-top"
                         "board expi-top"
                         "board moves"
                         "board controls"
                         "board expi-bot"
                         "board mat-bot"
                         "board ."
                         "user-bot ."
                         "kb-move .";
  }

  main.round--streamer .round__app__board {
    z-index: 2;
  }

  main.round--streamer .round__app__table {
    grid-area: 4 / 2 / 8 / 3;
  }

  main.round--streamer .rclock {
    z-index: 1;
    justify-self: flex-end;
  }

  main.round--streamer .rclock-top, main.round--streamer .rclock-bottom {
    grid-area: 1 / 1 / 2 / 2;
  }

  main.round--streamer .rclock-bottom {
    transform: translateY(calc(var(---cg-height) + 30px));
  }

  main.round--streamer .rclock .tour-rank, main.round--streamer .rclock .moretime, main.round--streamer .rclock .berserked {
    order: -1;
  }

  main.round--streamer .rclock .bar {
    display: none;
  }

  main.round--streamer .rclock .time {
    line-height: 30px;
    font-size: 1.7em !important;
  }

  main.round--streamer .ruser {
    padding: 0 .3em;
    font-size: 1.4em;
    line-height: 30px;
  }

  main.round--streamer .ruser a {
    flex: none;
  }
}

@media (min-width: 1259.3px) {
  main.round--streamer.playing {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
  }

  main.round--streamer .round {
    --chat-top-margin: calc(30px - .5rem);
    grid-template-areas: "side app app"
                         "uchat app app";
    grid-template-rows: calc(var(--chat-top-margin) + var(---cg-height)) 30px;
    row-gap: 0;
  }

  main.round--streamer .round__side {
    margin-top: var(--chat-top-margin);
  }

  main.round--streamer .round__underchat {
    flex-direction: column;
    justify-content: center;
    display: flex;
  }

  main.round--streamer .chat__members {
    height: auto !important;
  }
}
