/* Draughts (Warcaby) – styles for draughts-ui.js (view #v-draughts). The lobby, game and result screens use the add-on
   classes of fourkings.css; this file adds the board, the pieces and the full-screen game mode.
   Newspaper look: paper #f3eee2 light squares, a warm newsprint tone for the playing squares, ink #141210 frame and pieces,
   red #a3221b for kings' crowns and compulsory captures. The board keeps its fixed paper palette under every theme.
   Motion: only transform and opacity; html.a11y-calm and prefers-reduced-motion stop it (draughts-ui.js also skips it). */
html.dr-full .mast,html.dr-full .dateline,html.dr-full .xpbar,html.dr-full .bnav,html.dr-full .subbar{display:none!important}
html.dr-full .app{max-width:1180px;padding-bottom:calc(10px + env(safe-area-inset-bottom))!important;padding-top:calc(4px + env(safe-area-inset-top))!important}

.dr{--dr-l:#f3eee2;--dr-d:#b8ab8e;--dr-ink:#141210;--dr-red:#a3221b;--dr-paper:#f3eee2}
.dr-disc,.dr .dr-disc{display:inline-grid;place-items:center;flex:0 0 auto;width:22px;height:22px;border-radius:50%;box-sizing:border-box;
  background:#f3eee2;border:1.5px solid #141210;box-shadow:inset 0 0 0 2.5px #f3eee2,inset 0 0 0 3.5px #141210}
.dr-disc.s1{background:#141210;border-color:#141210;box-shadow:inset 0 0 0 2.5px #141210,inset 0 0 0 3.5px #f3eee2}
.dr-crown{width:68%;height:68%;display:block}
.dr-crown path{fill:#a3221b;stroke:#5c120e;stroke-width:1;stroke-linejoin:round}.dr-crown .b{fill:none;stroke:#a3221b;stroke-width:2.2;stroke-linecap:round}
.dr-disc.s1 .dr-crown path{stroke:#f3eee2;stroke-width:.8}.dr-disc.s1 .dr-crown .b{stroke:#e2594f}
.dr-chip{width:14px;height:14px;border-width:1.5px;box-shadow:none}
.dr-chip.s1{box-shadow:0 0 0 1px #f3eee2}

/* lobby */
.dr-hand{display:flex;justify-content:center;gap:10px;height:62px;align-items:center;margin-bottom:8px}
.dr-hand .dr-disc{width:50px;height:50px;border-width:2px;box-shadow:inset 0 0 0 5px #f3eee2,inset 0 0 0 7px #141210,2px 2px 0 rgba(20,18,16,.18)}
.dr-hand .dr-disc.s1{box-shadow:inset 0 0 0 5px #141210,inset 0 0 0 7px #f3eee2,2px 2px 0 rgba(20,18,16,.18)}
.dr-hand .dr-disc:nth-child(odd){transform:translateY(-5px)}
.dr-rset{margin-bottom:4px}.dr-rset button b{font-weight:700}
.fk-choices.dr-choices{grid-template-columns:1fr 1fr}
.fk-choice .dr-disc.ix,.fk-choice .dr-disc.ix2{position:absolute;width:17px;height:17px;box-shadow:none}
.fk-choice .dr-disc.ix{left:10px;top:10px}.fk-choice .dr-disc.ix2{right:10px;bottom:10px}
.fk-panel.dr-panel{--pc:#a3221b}
.fk-trow>.dr-chip{width:20px;height:20px}
.dr-rl>li{display:flex;gap:10px;align-items:flex-start;padding:6px 0;border-bottom:1px dotted var(--ink);font-size:13.5px;line-height:1.45}
.dr-rl>li:last-child{border-bottom:0}
.dr-rl>li>.dr-disc{margin-top:1px}
.dr-rs{font-weight:400;font-style:italic;color:var(--mut)}

/* board */
.fk-boardwrap.dr-wrap{max-width:max(250px,calc(100vh - 318px))}
.drb{position:relative;width:100%;aspect-ratio:1/1;--n:10;user-select:none;-webkit-user-select:none;touch-action:manipulation;border:2px solid #141210;box-shadow:0 0 0 3px #f3eee2,0 0 0 4px #141210;box-sizing:border-box;background:#f3eee2}
html.sgm .drb{border-color:#d4af37;box-shadow:0 0 0 3px #0d0c0a,0 0 0 4px #d4af37}
.dr-sqs{position:absolute;inset:0;display:grid;grid-template-columns:repeat(var(--n),1fr);grid-template-rows:repeat(var(--n),1fr)}
.drs{position:relative;display:block}
.drs.l{background:#f3eee2}
.drs.d{background:#b8ab8e}
.drs.d i{position:absolute;left:3%;top:1%;font:700 8px/1 "Libre Baskerville",serif;font-style:normal;color:#141210;opacity:0;pointer-events:none}
.drb.crd .drs.d i{opacity:.55}
.drb.n8 .drs.d i{font-size:9px}
.drs.last::before{content:"";position:absolute;inset:0;background:#a3221b;opacity:.22}
.drs.sel{box-shadow:inset 0 0 0 3px #141210}
.drs.tgt::after{content:"";position:absolute;inset:36%;border-radius:50%;background:#141210;opacity:.5}
.drs.cap::after{content:"";position:absolute;inset:6%;border-radius:50%;border:3px solid #a3221b;opacity:.9}
.drs.must{box-shadow:inset 0 0 0 3px #a3221b}
html.no-dots .drs.tgt::after,html.no-dots .drs.cap::after{display:none}
.drb.input .drs.d{cursor:pointer}
.dr-pcs{position:absolute;inset:0;pointer-events:none}
.drp{position:absolute;left:0;top:0;width:calc(100% / var(--n));height:calc(100% / var(--n));display:grid;place-items:center;transition:transform .16s ease-out,opacity .25s;z-index:1}
.drp.mv{z-index:3}
.drp.gone{opacity:0}
.drp .dr-disc{width:80%;height:80%;border-width:2px;box-shadow:inset 0 0 0 calc(var(--u,4px)) #f3eee2,inset 0 0 0 calc(var(--u,4px) + 1.5px) #141210,1px 2px 0 rgba(20,18,16,.3)}
.drp .dr-disc.s1{box-shadow:inset 0 0 0 calc(var(--u,4px)) #141210,inset 0 0 0 calc(var(--u,4px) + 1.5px) #f3eee2,1px 2px 0 rgba(20,18,16,.3)}
.drb.n8{--u:5px}
.dr-bar.on{border-left-color:#a3221b}
.dr-left{margin-left:auto;font-size:11px;font-style:italic;color:var(--mut);white-space:nowrap}
.fk-banner.dr-bn{--pc:#a3221b;margin:4px 0}
.fk-banner.dr-bn.mine .dr-disc.s1{box-shadow:0 0 0 1px #f3eee2}
.dr-must{background:#a3221b}
.dr-note{min-height:1.3em;margin:2px 0 4px;font-size:12.5px;font-style:italic;color:var(--mut)}
.dr-moves .wd-mv span .dr-chip{width:11px;height:11px;margin-right:2px}
.dr-fin .fk-fin-game .dr-disc{width:36px;height:36px}
.dr-fin .fk-fin-game span{font-size:24px}
.dr-av{display:grid;place-items:center}.dr-av .dr-disc{width:46px;height:46px}.dr-av svg{width:100%;height:100%}
html.a11y-con .drs.d{background:#9a9a9a}html.a11y-con .drs.l{background:#fff}
@media (min-width:900px){
  .fk-boardwrap.dr-wrap,.dr-bar{max-width:min(100%,calc(100vh - 200px))}
  .drs.d i{font-size:10px}.drb.n8 .drs.d i{font-size:11px}
  .drb{--u:6px}.drb.n8{--u:8px}
}
html.a11y-calm .drp{transition:none}
@media (prefers-reduced-motion:reduce){.drp{transition:none}}
