.tour__actor-info .sublist th, .tour__actor-info .stats td:last-child, .tour__main__header .time, .mchat__messages a:not(.user-link), .mchat__tab, .slist thead {
  font-family: Roboto, sans-serif;
  font-weight: 300;
}

.chat__members {
  color: var(--c-font-page);
}

.tour__duels, .chat__members {
  text-shadow: 0 1px 0 var(--c-font-shadow);
}

.tour__actor-info .stats h2, .tour__controls, .cmn-toggle input:disabled + label:before, .cmn-toggle input:disabled + label:after, .slist thead {
  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) .tour__actor-info .stats h2, .tour__actor-info .stats :where(html.light) h2, :where(html.light) .tour__controls, :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) .slist thead, .slist :where(html.light) thead {
  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);
}

.tour__actor-info .stats h2, .tour__controls, .cmn-toggle input:disabled + label:before, .cmn-toggle input:disabled + label:after, .slist thead {
  background-image: linear-gradient(to bottom, var(--c-metal-top), var(--c-metal-bottom));
}

.cmn-toggle label:after {
  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) .cmn-toggle label:after, .cmn-toggle :where(html.light) label:after {
  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;
}

.cmn-toggle label:after {
  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;
}

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

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

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

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

.tour__team-info .players .name, .tour__player-info .pairings td:nth-child(2), .tour__standing .player .name, .mchat__tab span {
  white-space: nowrap;
}

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

.tour__duels strong, .podium > div, .tour__team-info .players .name, .tour__player-info .pairings td:nth-child(2), .tour__standing .player .name, .mchat__tab span {
  text-overflow: ellipsis;
  overflow: hidden;
}

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

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

.tour__controls .pager {
  flex-flow: wrap;
  align-items: center;
  display: flex;
}

.tour__standing .player .user-link, .tour__featured .mini-game__player, .tour__bots-warning, .tour__meta section[data-icon], .tour__main__header, .chat__members__number, .context-streamer {
  flex-flow: row;
  align-items: center;
  display: flex;
}

.tour__duels line, .tour__featured .mini-game__user .user-link, .tour__controls {
  flex-flow: wrap;
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.tour__actor-info .stats, .tour__duels a, .tour__stats, .tour__ur-playing, .tour__featured, .tour__meta .scrollable-content, .tour__meta, .tour__side, .tour__main__header .clock-created, .mchat__content, .mchat {
  flex-flow: column;
  display: flex;
}

.tour__duels .rank, .cmn-toggle label:before, .cmn-toggle label, .toggle-box legend, .toggle-box, .context-streamer, .tour__stats, .tour__bots-warning, .tour__actor-info, .tour__meta, .mchat {
  border-radius: var(---ui-roundness, 7px);
}

.tour__actor-info, .tour__meta, .mchat {
  overflow: hidden;
}

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

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

.tour__controls, .tour__actor-info, .tour__meta, .mchat, .tour__stats, .tour__bots-warning {
  box-shadow: 0 2px 2px #00000014, 0 3px 1px -2px #0000002e, 0 1px 5px #0000001a;
}

:where(html.transp) .tour__stats, :where(html.transp) .tour__bots-warning, :where(html.transp) .tour__actor-info, :where(html.transp) .tour__meta, :where(html.transp) .mchat {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

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

.slist {
  border-bottom: 1px solid var(--c-border);
  width: 100%;
}

.slist thead th {
  border-bottom: 1px solid var(--c-border);
  padding: .5rem .8rem;
}

:where(html.light) .slist thead th {
  border-top: 1px solid var(--c-border);
}

.slist thead th.large {
  font-size: 1.2rem;
}

.slist td {
  padding: 1rem;
}

.slist td .label {
  font-family: monospace;
  font-size: .8rem;
}

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

.slist td:first-child, .slist th:first-child {
  padding-inline-start: 1.5rem;
}

.slist-pad td:first-child, .slist-pad th:first-child {
  padding-inline-start: var(---box-padding);
}

.slist-pad td:last-child, .slist-pad th:last-child {
  padding-inline-end: var(---box-padding);
}

.slist-invert tbody tr:nth-child(odd) {
  background: var(--c-bg-zebra);
}

.slist-invert tbody tr:nth-child(2n) {
  background: none;
}

.slist-wrapper {
  max-width: calc(100vw - var(---box-padding) * 2);
  scrollbar-width: thin;
  min-width: auto;
  overflow-x: auto;
}

.slist-wrapper:has(.slist-pad) {
  max-width: 100vw;
}

ol .slist-wrapper, ul .slist-wrapper {
  max-width: calc(100vw - var(---box-padding) * 2 - 30px);
}

ol .slist-wrapper .slist, ul .slist-wrapper .slist {
  margin-top: 0;
}

@media (max-width: 649.29px) {
  .slist-wrapper .slist {
    min-width: calc(max(100vw, 650px) - var(---box-padding) * 2);
  }

  .slist.slist-resp {
    border-collapse: collapse;
    table-layout: fixed;
  }

  .slist.slist-resp thead {
    clip-path: rect(0 0 0 0);
    border: none;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    position: absolute;
    overflow: hidden;
  }

  .slist.slist-resp tr {
    border-top: 1px solid var(--c-border);
    display: block;
  }

  .slist.slist-resp td {
    padding: .5rem var(---box-padding);
    border-top: 1px solid var(--c-border);
    flex-flow: wrap;
    justify-content: space-between;
    align-items: center;
    display: flex;
  }

  .slist.slist-resp td:before {
    content: attr(data-label);
  }
}

@media (max-width: 499.29px) {
  .stack-row {
    flex-direction: column;
    display: flex;
  }

  .stack-row td {
    width: 100%;
    padding-inline: var(---box-padding);
  }
}

.pull-quote {
  text-align: left;
  direction: ltr;
  margin: 0 auto;
}

.pull-quote p {
  color: var(--c-font);
  margin: 0 .7em;
  padding: 1em 0;
  font-size: 1.1rem;
  font-style: italic;
  position: relative;
}

html:not(.transp) .pull-quote p {
  border: 1px solid var(--c-border);
  border-width: 1px 0;
}

html:not(.transp) .pull-quote p:after {
  content: "";
  background: var(--c-bg-box);
  border-left: 2px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  width: 15px;
  height: 15px;
  position: absolute;
  bottom: -9px;
  left: 42px;
  transform: skew(45deg) rotate(-45deg);
}

.pull-quote.long p {
  font-size: 1rem;
}

.pull-quote footer {
  text-align: right;
  margin: 10px;
  line-height: 20px;
}

.pull-quote footer:before {
  content: "— ";
}

.fire-trophy {
  text-shadow: 0 .008em .127em #fefcc9, .055em -.066em .2em #feec85, -.111em -.127em .272em #ffae34, .111em -.272em .411em #ec760c, -.111em -.456em .416em #cd4606, 0 -.533em .577em #973716, .055em -.55em .533em #451b0e;
}

@keyframes fire-trophy {
  0% {
    text-shadow: 0 .008em .127em #fefcc9, .055em -.066em .2em #feec85, -.111em -.127em .272em #ffae34, .111em -.272em .411em #ec760c, -.111em -.456em .416em #cd4606, 0 -.533em .577em #973716, .055em -.55em .533em #451b0e;
  }

  100% {
    text-shadow: 0 0 .111em #fefcc9, .055em -.055em .166em #fefcc9, -.111em -.111em .222em #feec85, .122em -.233em .333em #ffae34, -.122em -.322em .277em #ec760c, 0 -.456em .444em #cd4606, .055em -.5em .444em #973716;
  }
}

.fire-trophy {
  color: var(--c-font);
  font-size: 90px;
  display: block;
}

.fire-trophy:hover {
  animation: 1.5s ease-in-out infinite alternate fire-trophy;
}

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

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

.podium-wrap {
  padding-bottom: 20px;
  position: relative;
}

.podium-wrap #confetti {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

@media (max-width: 499.29px) {
  .podium {
    display: none;
  }
}

.podium > div {
  text-align: center;
  display: inline-block;
}

.podium > div.lame {
  opacity: .5;
}

.podium > div.lame .user-link {
  font-weight: normal;
  text-decoration: line-through;
}

.podium > div.lame .trophy {
  opacity: .3;
  filter: grayscale() contrast(10%);
}

.podium .first {
  width: 44%;
  font-size: 1.6em;
}

.podium .second {
  width: 29%;
  font-size: 1.3em;
}

.podium .third {
  width: 27%;
  font-size: 1.2em;
}

.podium .trophy {
  background: center / contain no-repeat;
  margin: 0 auto .5em;
}

.podium .first .trophy {
  background-image: url("../hashed/lichess-massive.29eb7ec6.svg");
  width: 9em;
  height: 9em;
}

.podium .second .trophy {
  background-image: url("../hashed/lichess-silver-1.5715f046.svg");
  width: 7em;
  height: 9em;
}

.podium .third .trophy {
  background-image: url("../hashed/lichess-bronze-2.1fea0ff2.svg");
  width: 7em;
  height: 7em;
}

@media (max-width: 499.29px) {
  .podium .trophy {
    display: none;
  }
}

.podium .user-link {
  letter-spacing: -1px;
  font-weight: bold;
}

.podium .stats {
  margin: .5em auto 0;
  font-size: .7em;
}

.podium .stats th {
  letter-spacing: -1px;
  text-align: left;
}

.podium .stats td {
  text-align: right;
  padding-inline-start: 5px;
  font-weight: bold;
}

.podium .third .stats {
  font-size: .8em;
}

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

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

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

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

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

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

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

.toggle-box--toggle-off {
  border-color: #0000;
  border-top-color: var(--c-border);
  background: none;
  border-radius: 0;
  padding-top: 0;
}

.toggle-box--toggle-off legend {
  border: 1px solid var(--c-border);
  background: none;
}

.toggle-box--toggle-off legend:hover {
  background: var(--c-bg-zebra);
}

.toggle-box--toggle-off legend:after {
  transform: rotate(90deg);
}

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

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

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

.tour__controls {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 0;
  position: relative;
}

.tour__controls .fbt {
  padding: .6em .8em;
}

@media (min-width: 499.3px) {
  .tour__controls .fbt {
    padding: .6em 1em;
  }
}

.tour__controls .fbt {
  text-transform: uppercase;
  line-height: 1.3;
}

html:not([dir="rtl"]) .tour__controls .button {
  right: 8px;
}

html[dir="rtl"] .tour__controls .button {
  left: 8px;
}

.tour__controls .button {
  padding: 12px 20px;
  position: absolute;
  top: -2px;
}

.tour__controls .button:before {
  margin-right: .25em;
}

.tour__controls .spinner {
  margin: 0;
  width: 1.5em;
  height: 1.5em;
  margin-inline-end: .7em;
}

.tour__controls .pager {
  -webkit-user-select: none;
  user-select: none;
}

.tour__controls .pager .page {
  white-space: nowrap;
  margin: 0 3px;
}

.tour__controls .pager input {
  background: rgb(from var(--c-secondary) r g b/calc(alpha * .2));
  border: none;
}

.tour__controls .pager .search, .tour__controls .pager input {
  height: 100%;
}

.tour__main__header {
  min-height: 8em;
  padding: 0 2rem;
  position: relative;
}

.tour__main__header h1 {
  flex: 9 auto;
  margin: 0;
  font-size: 2.2rem;
  overflow: hidden;
}

.tour__main__header h1 a {
  color: color-mix(in oklab, var(--c-primary) 35%, var(--c-font));
}

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

.tour__main__header img {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  padding: 6px;
  display: block;
}

.tour__main__header .img {
  margin-inline-end: 1rem;
}

.tour__main__header icon:before {
  font-size: 2.2rem;
}

.tour__main__header .clock {
  color: var(--c-font-dim);
  flex: none;
  font-weight: bold;
}

.tour__main__header .clock-created {
  text-align: right;
}

.tour__main__header .time {
  margin-inline-start: .2em;
  font-size: 1.5em;
}

.tour__main__header .shy {
  text-transform: uppercase;
  opacity: .6;
  white-space: nowrap;
  font-size: .9em;
  font-weight: bold;
  line-height: 20px;
}

@media (min-width: 799.3px) {
  #main-wrap {
    ---main-max-width: auto;
  }
}

.tour {
  display: grid;
}

.tour__side {
  grid-area: side;
}

.tour__table, .tour__stats, .tour__player {
  grid-area: table;
}

.tour__main {
  grid-area: main;
}

.tour .chat__members {
  grid-area: uchat;
}

.tour {
  gap: var(---block-gap);
  grid-template-areas: "main"
                       "side"
                       "uchat"
                       "table";
}

@media (min-width: 799.3px) {
  .tour {
    grid-template-columns: minmax(500px, 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)) * .9)) minmax(240px, 400px);
    grid-template-rows: calc(100vh - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - var(---block-gap) - 3rem) min-content;
    grid-template-areas: "main side"
                         "main uchat"
                         "table table";
  }

  .tour__table {
    display: flex;
  }

  .tour__table > * {
    flex: 0 0 50%;
  }

  .tour .mchat__messages {
    max-height: inherit;
  }
}

@media (min-width: 1259.3px) {
  .tour {
    grid-template-columns: minmax(var(---col3-uniboard-side-min, 250px), 350px) minmax(500px, calc(100vh * .9 - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - 3rem)) minmax(240px, 400px);
    grid-template-rows: calc(100vh - calc(var(---site-header-height) + var(---site-header-margin) + var(---sticky-gap)) - var(---block-gap) - 3rem) auto;
    grid-template-areas: "side main table"
                         "uchat main table";
  }

  .tour__table {
    flex-flow: column;
  }

  .tour__table > * {
    flex: inherit;
  }
}

.tour__side .disclosure {
  color: var(--c-font-dim);
  cursor: pointer;
  position: absolute;
  bottom: 1em;
  right: 1em;
}

.tour__side .disclosure:before {
  content: "";
  font-family: lichess;
  font-size: 1em;
}

.tour__side .disclosure:hover {
  color: var(--c-primary);
}

.tour__side.collapsed .disclosure:before {
  content: "";
}

.tour__side.collapsed .tour__meta > * {
  display: none;
}

.tour__side.collapsed .tour__meta__head, .tour__side.collapsed .disclosure {
  display: flex;
  bottom: 15%;
}

.tour__side .mchat {
  margin-top: var(---block-gap);
  flex: 7em;
}

@media (min-width: 799.3px) {
  .tour__side .mchat {
    min-height: inherit;
  }
}

.tour__meta {
  gap: var(---block-gap);
  background: var(--c-bg-box);
  padding: var(---block-gap) 0;
  position: relative;
}

.tour__meta .scrollable-content {
  gap: var(---block-gap);
  overflow-y: auto;
}

.tour__meta section {
  padding: 0 var(---block-gap);
}

.tour__meta section:before {
  margin-inline-end: 4%;
  font-size: 3rem;
}

.tour__meta section p {
  margin: 0;
}

.tour__meta section time {
  opacity: 1;
}

.tour__meta section .defender:before {
  vertical-align: -.26em;
  margin: 0 .15em 0 -.15em;
  font-size: 1.6em;
}

.tour__meta section.conditions:before {
  opacity: .7;
}

.tour__meta section.conditions.accepted, .tour__meta section.conditions .accepted {
  color: var(--c-good);
}

.tour__meta section.conditions.refused, .tour__meta section.conditions .refused {
  color: var(--c-bad);
}

.tour__meta section.conditions .condition:first-child.accepted:after, .tour__meta section.conditions .condition + .condition.accepted:after {
  content: " ✓";
}

.tour__meta section.conditions .condition:first-child.refused:after, .tour__meta section.conditions .condition + .condition.refused:after {
  content: " ✘";
}

.tour__meta .description {
  height: fit-content;
}

.tour__meta .tour__prize {
  padding: var(---block-gap) 2vmin;
  background: var(--c-bg-zebra);
  margin-bottom: calc(var(---block-gap) * -1);
  font-size: .9em;
}

.tour__bots-warning {
  background: color-mix(in oklab, var(--c-accent) 10%, var(--c-bg));
  gap: 1em;
  margin-top: 1em;
  padding: 1em;
}

.tour__bots-warning h2 {
  margin: 0 0 .5em;
}

.tour__bots-warning img {
  aspect-ratio: 1;
  width: 5em;
}

.chat__members {
  overflow: visible;
}

@media (max-width: 799.29px) and (orientation: portrait) {
  .chat__members {
    margin: 0 var(---block-gap);
  }
}

.tour__featured .mini-game__player icon.berserk {
  flex: none;
}

.tour__featured .mini-game__player icon.berserk:before {
  color: var(--c-accent);
  margin-inline-end: 5px;
}

.tour__featured .mini-game__user {
  display: flex;
}

.tour__featured .mini-game__user strong {
  text-align: center;
  margin-inline-end: 1ch;
}

.tour__featured .mini-game__user .user-link {
  flex: 100%;
  margin-inline-end: 1em;
}

.tour-shed .tour__main__header h1 {
  letter-spacing: 2px;
}

.tour-shed-weekly .tour__main__header icon:before {
  font-size: 35px;
}

.tour-shed-monthly .tour__main__header icon:before, .tour-shed-weekend .tour__main__header icon:before {
  font-size: 40px;
}

.tour-shed-yearly .tour__main__header icon:before {
  font-size: 45px;
}

.tour-shed-weekend .tour__main__header h1, .tour-shed-yearly .tour__main__header h1 {
  letter-spacing: 3px;
}

.tour-sched .tour__main__header h1, .tour-sched .tour__main__header .img {
  color: var(--c-brag);
}

.tour__main-finished .tour__main__header h1 {
  text-align: center;
}

.tour-sched-marathon .tour__main-finished .tour__main__header h1 {
  padding-inline-start: 0;
}

.tour-sched-marathon .tour__main__header h1 {
  letter-spacing: 2px;
  padding-inline-start: 90px;
  color: #4166a0 !important;
}

html:not([dir="rtl"]) .tour-sched-marathon .tour__main__header .fire-trophy {
  left: 10px;
}

html[dir="rtl"] .tour-sched-marathon .tour__main__header .fire-trophy {
  right: 10px;
}

.tour-sched-marathon .tour__main__header .fire-trophy {
  opacity: .7;
  filter: hue-rotate(190deg);
  width: 70px;
  height: 80px;
  font-family: lichess;
  transition: all 1s;
  position: absolute;
  top: 0;
}

.tour-sched-marathon .tour__main__header .fire-trophy:hover {
  opacity: 1;
}

.tour-sched-shield .tour__main__header h1 {
  letter-spacing: 2px;
  padding-inline-start: 90px;
}

html:not([dir="rtl"]) .tour-sched-shield .tour__main__header h1 .shield-trophy {
  left: 24px;
}

html[dir="rtl"] .tour-sched-shield .tour__main__header h1 .shield-trophy {
  right: 24px;
}

.tour-sched-shield .tour__main__header h1 .shield-trophy {
  text-align: center;
  text-shadow: 0 0 6px #fff;
  background: url("../hashed/shield-gold.c4a4fd74.png") 0 0 / contain no-repeat;
  width: 67px;
  height: 80px;
  font-family: lichess;
  font-size: 40px;
  line-height: 80px;
  display: block;
  position: absolute;
  top: 16px;
  color: #333 !important;
}

@media (max-width: 800px) {
  .tour-sched-shield .tour__main__header h1 .shield-trophy {
    top: 10px;
  }
}

.tour__notice {
  color: #fff;
  background: var(--c-good);
  text-align: center;
  opacity: .8;
  padding: .5em 0;
}

.tour__notice.closed {
  background: var(--c-primary);
}

.tour__ur-playing {
  text-align: center;
  font-size: 1.5em;
  position: relative;
}

.tour__ur-playing:before, .tour__ur-playing:after {
  content: "";
  font-size: 2rem;
  position: absolute;
  top: 30px;
}

html:not([dir="rtl"]) .tour__ur-playing:before {
  left: 30px;
}

html[dir="rtl"] .tour__ur-playing:before, html:not([dir="rtl"]) .tour__ur-playing:after {
  right: 30px;
}

html[dir="rtl"] .tour__ur-playing:after {
  left: 30px;
}

@keyframes tour-delay {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

.tour__controls .delay {
  background: #75990080;
  width: 0;
}

.tour__controls .delay button {
  opacity: .7;
  color: var(--c-font-dim);
  mix-blend-mode: luminosity;
}

.tour__standing {
  border: none;
}

.tour__standing .player {
  padding-left: 0;
  padding-right: 0;
}

.tour__standing .player .name {
  max-width: 140px;
  padding-inline-end: 5px;
  display: inline-block;
}

@media (min-width: 1259.3px) {
  .tour__standing .player .name {
    max-width: 200px;
  }
}

.tour__standing .user-link.long {
  letter-spacing: -.7px;
}

.tour__standing .user-link .rating {
  font-size: .8em;
  font-style: italic;
}

.tour__standing tr.long .user-link .rating {
  direction: ltr;
  padding-inline-start: 0;
  display: block;
}

.tour__standing tr {
  -webkit-user-select: none;
  user-select: none;
  transition: all .15s;
}

.tour__standing .loading tbody {
  opacity: .6;
  transition: opacity .3s;
}

.tour__standing:not(.created, .loading) tbody tr:hover {
  background: color-mix(in oklab, var(--c-primary) 30%, var(--c-bg));
  cursor: pointer;
}

.tour__standing tr.me td:first-child {
  background: linear-gradient(to right, color-mix(in oklab, var(--c-secondary) 70%, var(--c-bg)) 0, color-mix(in oklab, var(--c-secondary) 70%, var(--c-bg)) 5px, #0000 5px, #0000 100%);
}

html[dir="rtl"] .tour__standing tr.me td:first-child {
  background: linear-gradient(to left, color-mix(in oklab, var(--c-secondary) 70%, var(--c-bg)) 0, color-mix(in oklab, var(--c-secondary) 70%, var(--c-bg)) 5px, #0000 5px, #0000 100%);
}

.tour__standing tr.active td:last-child {
  background: linear-gradient(to left, color-mix(in oklab, var(--c-primary) 70%, var(--c-bg)) 0, color-mix(in oklab, var(--c-primary) 70%, var(--c-bg)) 5px, #0000 5px, #0000 100%);
}

html[dir="rtl"] .tour__standing tr.active td:last-child {
  background: linear-gradient(to right, color-mix(in oklab, var(--c-primary) 70%, var(--c-bg)) 0, color-mix(in oklab, var(--c-primary) 70%, var(--c-bg)) 5px, #0000 5px, #0000 100%);
}

.tour__standing td.rank {
  padding-inline: 10px .5em;
  width: 1px;
  padding-top: 1em;
  padding-bottom: 1em;
}

.tour__standing td.rank icon {
  opacity: .4;
  font-size: .8em;
}

.tour__standing .sheet {
  text-align: right;
  letter-spacing: .1em;
  padding-inline: 0;
}

.tour__standing .sheet > * {
  display: inline-block;
}

.tour__standing .sheet score {
  opacity: .7;
}

.tour__standing tr.long .sheet {
  letter-spacing: .06em;
  font-size: .9rem;
}

.tour__standing tr.xlong .sheet {
  letter-spacing: .04em;
  font-size: .85rem;
}

.tour__standing double {
  color: var(--c-brag);
}

.tour__standing streak {
  color: var(--c-secondary);
}

.tour__standing .total {
  text-align: right;
  padding-inline-end: var(---block-gap);
  font-weight: bold;
}

.tour__stats {
  background: var(--c-bg-box);
  align-self: flex-start;
  gap: 2em;
  padding: 1.7em 0;
}

.tour__stats h2 {
  text-align: center;
  font-size: 1.5em;
}

.tour__stats table {
  margin: auto;
}

.tour__stats td {
  text-align: right;
  padding-inline-start: 1em;
  font-weight: bold;
  line-height: 2em;
}

.tour__stats__downloads {
  margin: 0 2em;
}

.tour__stats__downloads .toggle-box {
  padding: 0 2em 1em;
}

.tour__stats__downloads .toggle-box legend {
  margin: auto;
}

.tour__stats__downloads a {
  margin: 1em 0;
  display: block;
}

.tour__duels {
  margin: var(---block-gap) 0 0 0;
}

@media (min-width: 799.3px) {
  .tour__duels {
    margin: 0 0 0 var(---block-gap);
  }
}

@media (min-width: 1259.3px) {
  .tour__duels {
    margin: var(---block-gap) 0 0 0;
  }
}

.tour__duels h2 {
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: .2em;
  font-size: 1.5em;
}

.tour__duels a {
  color: var(--c-font);
  white-space: nowrap;
  border-top: 1px solid var(--c-border-tour);
  padding: .5em .7em;
  line-height: 1.9em;
  transition: all .15s;
}

.tour__duels a:hover {
  background: color-mix(in oklab, var(--c-primary) 20%, var(--c-bg-page));
}

.tour__duels strong {
  color: var(--c-font-dim);
  max-width: 60%;
  font-size: 1.2em;
  display: block;
}

.tour__duels .rank {
  background: var(--c-bg-zebra);
  padding: .1em .5em;
}

.tour__duels .b .utitle, .tour__duels .b .rank {
  margin-right: .3em;
}

.tour__duels .a .utitle, .tour__duels .a .rank {
  margin-left: .3em;
}

.tour__actor-info {
  background: var(--c-bg-box);
  align-self: flex-start;
  position: relative;
}

.tour__actor-info .spinner {
  margin: 5em auto;
}

html:not([dir="rtl"]) .tour__actor-info .close {
  right: 5px;
}

html[dir="rtl"] .tour__actor-info .close {
  left: 5px;
}

.tour__actor-info .close {
  opacity: .6;
  color: var(--c-bad);
  transition: all .15s;
  position: absolute;
  top: 4px;
}

.tour__actor-info .close:hover {
  opacity: 1;
}

.tour__actor-info .stats {
  justify-content: center;
  align-items: center;
  gap: 1em;
  padding-bottom: 1em;
}

.tour__actor-info .stats h2 {
  border-bottom: 1px solid var(--c-border);
  direction: ltr;
  align-self: stretch;
  padding: .6rem 1rem;
  font-size: 1.4em;
}

.tour__actor-info .stats td {
  text-align: right;
  padding-inline-start: 10px;
  font-weight: bold;
  line-height: 1.8em;
}

.tour__actor-info .sublist {
  width: 100%;
}

.tour__actor-info .sublist tr {
  cursor: pointer;
  transition: background-color .15s;
}

.tour__actor-info .sublist tr:nth-child(odd) {
  background: var(--c-bg-zebra);
}

.tour__actor-info .sublist tr:hover {
  background: color-mix(in oklab, var(--c-primary) 10%, var(--c-bg));
}

.tour__actor-info .sublist th, .tour__actor-info .sublist td {
  padding: .3em;
}

.tour__actor-info .sublist th {
  padding-inline-start: 7px;
}

.tour__player-info .pairings {
  border-collapse: separate;
  width: 100%;
}

.tour__player-info .pairings tr {
  cursor: pointer;
  transition: background-color .15s;
}

.tour__player-info .pairings tr:nth-child(odd) {
  background: var(--c-bg-zebra);
}

.tour__player-info .pairings tr:hover {
  background: color-mix(in oklab, var(--c-primary) 10%, var(--c-bg));
}

.tour__player-info .pairings th, .tour__player-info .pairings td {
  padding: .3em;
}

.tour__player-info .pairings th {
  border-inline-start: 3px solid #0000;
  transition: all .15s;
}

.tour__player-info .pairings tr:hover th {
  border-color: var(--c-font-dimmer);
}

.tour__player-info .pairings tr.win:hover th {
  border-color: var(--c-good);
}

.tour__player-info .pairings tr.loss:hover th {
  border-color: var(--c-bad);
}

.tour__player-info .pairings td:nth-child(2) {
  max-width: 200px;
}

.tour__player-info .pairings td.result {
  opacity: .8;
  font-weight: bold;
}

.tour__player-info .pairings tr.win td.result {
  color: var(--c-good);
  opacity: 1;
}

.tour__player-info .pairings tr.loss td.result {
  color: var(--c-bad);
  opacity: 1;
}

.tour__player-info .pairings tr.streak td.result {
  color: var(--c-brag);
  opacity: 1;
}

.tour__player-info .pairings td.berserk {
  color: var(--c-font-dim);
  font-size: .9em;
}

.tour__player-info .color-icon {
  opacity: .6;
}

.tour__team-info .players {
  width: 100%;
}

.tour__team-info .players .name {
  padding-inline-end: 5px;
}

.tour__team-info .players tr {
  cursor: pointer;
  transition: background-color .15s;
}

.tour__team-info .players tr:nth-child(odd) {
  background: var(--c-bg-zebra);
}

.tour__team-info .players tr:hover {
  background: color-mix(in oklab, var(--c-primary) 10%, var(--c-bg));
}

.tour__team-info .players th, .tour__team-info .players td {
  padding: .3em 1em;
}

.tour__team-info .players td:last-child {
  text-align: right;
}

.tour__team-info .players .rating {
  font-size: .8em;
  font-style: italic;
}

.tour__team-info .players .leader:before {
  color: var(--c-brag);
  margin-inline-end: .15em;
}

.tour .pull-quote {
  width: 300px;
  margin-top: 30px;
}

.tour .box.created {
  padding-bottom: 2em;
}

.tour__faq {
  padding: 4em var(---box-padding);
  display: none;
}

@media (min-width: 799.3px) {
  .tour__faq {
    display: block;
  }
}

.tour__faq h2 {
  margin: 1.5em 0 .5em;
}

.username-low {
  color: var(--c-font-dim);
  font-size: .9em;
}
