.sl64-chess-app{
  --sl64-ink:var(--wp--preset--color--contrast,#272724);
  --sl64-paper:var(--wp--preset--color--base,#fffdf7);
  --sl64-line:#d7d0c3;
  --sl64-board-light:#fffefa;
  --sl64-board-dark:#956a48;
  max-width:1050px;margin:28px auto 36px;
  color:inherit;background:transparent;
  font-family:inherit;
}
.sl64-chess-app *, .sl64-chess-app *::before,.sl64-chess-app *::after{box-sizing:border-box}
.sl64-chess-tabs{display:flex;flex-wrap:wrap;gap:9px;margin:18px 0 24px}
.sl64-chess-app button{cursor:pointer;font-family:inherit}
.sl64-chess-tabs button,.sl64-chess-controls button,.sl64-promotion button{
  border:1px solid var(--sl64-line);background:transparent;
  color:inherit;padding:11px 15px;border-radius:5px;
  font-size:15px;font-weight:600;line-height:1.35;
  box-shadow:none;text-transform:none;letter-spacing:normal
}
.sl64-chess-tabs button:hover,.sl64-chess-controls button:hover,.sl64-promotion button:hover{
  border-color:var(--sl64-ink);background:rgba(128,116,91,.06)
}
.sl64-chess-tabs button.sl64-active{
  background:var(--sl64-ink);border-color:var(--sl64-ink);color:var(--sl64-paper)
}
.sl64-chess-tabs button:focus-visible,.sl64-square:focus-visible,
.sl64-chess-controls button:focus-visible,.sl64-promotion button:focus-visible{
  outline:2px solid var(--sl64-ink);outline-offset:3px
}
.sl64-chess-layout{display:grid;grid-template-columns:minmax(250px,520px) minmax(220px,1fr);gap:28px;align-items:start}
.sl64-chess-board{
  width:100%;aspect-ratio:1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));
  grid-template-rows:repeat(8,minmax(0,1fr));border:4px solid #453e37;
  border-radius:4px;overflow:hidden;box-shadow:0 5px 16px #00000016
}
.sl64-square{
  position:relative;display:flex;justify-content:center;align-items:center;
  min-width:0;width:100%;height:100%;border:0!important;
  padding:0!important;border-radius:0!important;outline-offset:-3px;
  touch-action:manipulation;user-select:none;min-height:0;
}
.sl64-light{background:var(--sl64-board-light)!important}
.sl64-dark{background:var(--sl64-board-dark)!important}
.sl64-square.sl64-selected{box-shadow:inset 0 0 0 4px #e2b34d}
.sl64-square .sl64-piece{
  position:relative;font-family:'DejaVu Sans','Segoe UI Symbol',Arial,sans-serif;
  font-size:clamp(24px,4vw,51px);line-height:1;z-index:1;pointer-events:none
}
.sl64-square .sl64-white{color:#fffdf5;text-shadow:-1px -1px 0 #37322d,1px -1px 0 #37322d,-1px 1px 0 #37322d,1px 1px 0 #37322d,0 2px 2px #29231d}
.sl64-square .sl64-black{color:#282421;text-shadow:0 1px 1px #eee4d3}
.sl64-square .sl64-dot{
  position:absolute;width:27%;height:27%;border-radius:100%;
  background:#e9bb4cb3;z-index:2;pointer-events:none
}
.sl64-square:has(.sl64-piece:not(:empty)) .sl64-dot{
  width:82%;height:82%;background:transparent;border:4px solid #e9bb4cb3
}
.sl64-square small{position:absolute;z-index:3;font:600 10px/1 Arial,sans-serif;pointer-events:none;color:#4c4034}
.sl64-square.sl64-dark small{color:#faf2e6}
.sl64-rank{top:3px;left:3px}.sl64-file{bottom:3px;right:3px}
.sl64-chess-panel{
  background:transparent;border-top:2px solid var(--sl64-ink);
  border-bottom:1px solid var(--sl64-line);border-radius:0;
  padding:22px 0;min-height:200px;box-shadow:none
}
.sl64-chess-panel p{margin:0 0 15px}
.sl64-chess-status{font-size:clamp(19px,2vw,24px);line-height:1.35;font-weight:700;min-height:56px;color:inherit}
.sl64-chess-notice{color:inherit;min-height:26px;font-weight:600}
.sl64-chess-controls{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 15px}
.sl64-chess-controls button:disabled{opacity:.42;cursor:not-allowed}
.sl64-chess-app [hidden]{display:none!important}
.sl64-promotion{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.sl64-promotion p{flex:0 0 100%}
.sl64-chess-footnote{font-size:13px;color:inherit;opacity:.78;line-height:1.5}
@media(max-width:720px){
 .sl64-chess-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .sl64-chess-panel{min-height:0;padding:18px 0}
 .sl64-square .sl64-piece{font-size:clamp(25px,8.5vw,55px)}
}

/* 64 Langeliai original carved-wood chess pieces, distinct from typographic Unicode symbols */
.sl64-square .sl64-piece{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:0!important;line-height:1!important}
.sl64-square .sl64-figure{display:block;width:83%;height:83%;overflow:visible;filter:drop-shadow(0 1.5px 1px #34201066);pointer-events:none}
.sl64-figure-ivory{--sl64-figure-fill:#fff9ed;--sl64-figure-line:#64452e}
.sl64-figure-walnut{--sl64-figure-fill:#3e261a;--sl64-figure-line:#f7e5cb}
.sl64-square.sl64-dark small{color:#fff9ec}
.sl64-square.sl64-light small{color:#4f3625}
.sl64-chess-progress{font-size:14px;color:inherit;opacity:.85;font-weight:600}
.sl64-chess-app .sl64-chess-footnote a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.sl64-chess-app .sl64-chess-board{border-color:#493427}

/* Main-page chess exercise, native 64 Langeliai gold/ivory typography. */
.sl64-home-puzzle{
  background:#fffdf8;
  border-top:1px solid #e9dfcf;
  padding:42px 0 32px;
  color:#211c17;
}
.sl64-home-puzzle__inner{
  width:min(1120px,calc(100% - 44px));
  margin:0 auto;
}
.sl64-home-puzzle__intro{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:22px;
}
.sl64-home-puzzle__eyebrow{
  color:#ae7d27;
  letter-spacing:.1em;
  font-weight:800;
  font-size:12px;
  margin:0 0 8px;
}
.sl64-home-puzzle h2{
  font:700 clamp(27px,3vw,37px)/1.2 Georgia,serif;
  color:#1b1814;
  margin:0 0 12px;
}
.sl64-home-puzzle__intro p:not(.sl64-home-puzzle__eyebrow){
  max-width:670px;
  margin:0;
  font-size:16px;
  line-height:1.65;
  color:#5a4f42;
}
.sl64-home-puzzle__cta{
  display:inline-block;
  font-weight:750;
  font-size:15px;
  text-decoration:none!important;
  color:#221a0c!important;
  background:#c99a3d;
  border-radius:6px;
  padding:13px 18px;
}
.sl64-home-puzzle__cta:hover{
  background:#dbb05a;
  color:#20170a!important;
}
.sl64-home-puzzle .sl64-chess-tabs{display:none!important}
.sl64-home-puzzle .sl64-chess-app{
  margin:0 auto 10px;
  max-width:1050px;
}
.sl64-home-puzzle .sl64-chess-panel{
  border-top-color:#c99a3d;
}
@media(max-width:780px){
  .sl64-home-puzzle{padding:30px 0 24px}
  .sl64-home-puzzle__inner{width:calc(100% - 28px)}
  .sl64-home-puzzle__intro{align-items:start;margin-bottom:20px}
}
