@font-face{font-family:Inter;src:url(inter-cyrillic.woff2?v=f0bd17a3725c012c) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;src:url(inter-latin-ext.woff2?v=44f27589c759aa49) format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0100-024F,U+1E00-1EFF}
/* Keep ranks, files, move history and clocks in chess notation. */
#match,#brand,#tools,#modes,#summary,.queueInfo,.roomCode,#roomInput,[data-act^="nettime-"],[data-act^="time-"]{direction:ltr}
html[dir=rtl] :is(.identity,#recordTitle,#actions .wide){direction:rtl}
html[dir=rtl] :is(#recordTitle button,.chatMeta span,#thread header button,.chatHint button){margin-left:0;margin-right:auto}
html[dir=rtl] .line{text-align:right}
:lang(ar),:lang(hi){letter-spacing:normal}
#dialog .dialogTop button{flex:none}
#dialog :is(h2,h3,p,.line,.full){overflow-wrap:anywhere}
.languageRow{justify-content:flex-start;gap:.65em}
.languageRow .icon,.languageRow span{color:var(--mint)}
.languageRow span{margin-inline-start:auto;font-weight:560}
#dialog.language{width:min(450px,100%);padding:clamp(14px,3.2vmin,24px)}
#dialog.language .dialogTop{margin-bottom:14px}
.languages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.languages .localeOption{min-width:0;text-align:start;justify-content:space-between;min-height:48px;gap:4px;padding:9px 14px;font-size:15px;color:var(--paper);background:var(--line);border-radius:12px;line-height:1.3}
.localeOption:first-child{grid-column:1/-1}
.localeOption span{overflow-wrap:anywhere}
.localeOption .icon{display:none;width:18px;stroke-width:2.3}
.languages .localeOption[aria-pressed=true]{color:var(--mint);background:#48402f;box-shadow:inset 0 0 0 1px #c5a16c}
.localeOption[aria-pressed=true] .icon{display:block}
.languages .localeOption:focus-visible{outline-offset:1px}
.segmented button,.grid.two button{min-width:0;white-space:normal;line-height:1.15}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.turnDot{flex:none}
#actions .wide{min-width:0;line-height:1.15}
#dialog .roomActions{grid-template-columns:repeat(2,minmax(0,1fr))}
#dialog .roomActions button{min-width:0;padding:5px;line-height:1.25;overflow-wrap:anywhere}
#thread header,.chatMeta{flex-wrap:wrap}
.chatHint button{max-width:45%;line-height:1.2}
#communityPanel a{text-align:center;line-height:1.3}
@media(max-height:530px) and (min-width:620px){
  #dialog.language{width:min(670px,100%);padding:12px 16px}
  .languages{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .languages .localeOption{min-height:40px;font-size:14px;padding:7px 10px}
  .localeOption:first-child{grid-column:span 2}
  #dialog.language .dialogTop{margin:0 0 9px}
}
@media(max-width:390px){
  .segmented button,.grid.two button{font-size:13px;gap:.32em}
  .languages .localeOption{padding:9px 10px;font-size:14px}
  #dialog .dialogTop h2{font-size:20px}
  #actions .wide{font-size:13px;gap:.38em}
  #recordTitle{font-size:12px;padding-inline-start:9px}
}
@media(max-width:350px){
  #tools{gap:5px}
  .languages .localeOption{padding:7px 8px;font-size:13px}
  #dialog .segmented .icon,#actions .wide .icon,#dialog .roomActions .icon{display:none}
  #dialog .roomActions button{font-size:13px}
  #dialog .smallInput button{padding-inline:10px;font-size:14px}
  #chatComposer #sendChat{padding:0 12px;font-size:14px}
}
