/* ===== «Хоккейные шахматы» — экран задач в теме «Лига» (подключается после league.css) ===== */

.chess-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; color: var(--silver); margin-bottom: 10px;
}
.chess-day {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  text-transform: uppercase; letter-spacing: .08em; color: var(--silver-hi);
}
.chess-day b { color: var(--text); }
.chess-total { font-size: 13px; color: var(--silver); }

.chess-task { margin-bottom: 10px; }
.chess-task b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 26px; line-height: 1.05; text-transform: uppercase; letter-spacing: .02em;
}
.chess-task span { font-size: 14px; color: var(--silver-hi); }

/* доска: на всю ширину, клетки квадратные */
.chess-board {
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(8, minmax(0, 1fr));
  width: 100%; aspect-ratio: 1;
  border: 2px solid var(--line); border-radius: 4px; overflow: hidden;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.chess-board .sq {
  position: relative; border: 0; padding: 0; margin: 0;
  min-width: 0; min-height: 0; overflow: hidden;
  display: grid; place-items: center;
  font: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chess-board .sq.light { background: #b9c0c6; }
.chess-board .sq.dark { background: #59626c; }
.chess-board .sq.last.light { background: #e39aa7; }
.chess-board .sq.last.dark { background: #a8475a; }
.chess-board .sq.sel { box-shadow: inset 0 0 0 4px var(--gold); }
.chess-board .sq.dot::after {
  content: ''; width: 28%; height: 28%; border-radius: 50%;
  background: rgba(12, 14, 17, .45);
}
.chess-board .sq.hit { box-shadow: inset 0 0 0 4px rgba(12, 14, 17, .55); }

/* фигуры — крупно и контрастно: белые с тёмной обводкой, чёрные со светлой */
.pc {
  font-size: min(10.5vw, 46px); line-height: 1;
  font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', 'Arial Unicode MS', serif;
  pointer-events: none;
}
.pc.w {
  color: #fff;
  text-shadow: 0 0 1px #000, 0 0 1px #000, 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}
.pc.b {
  color: #111418;
  text-shadow: 0 0 1px #fff, 1px 1px 0 rgba(255,255,255,.55), -1px -1px 0 rgba(255,255,255,.55);
}

/* координаты в углах клеток */
.sq .cf, .sq .cr {
  position: absolute; font-style: normal; font-size: 10px; font-weight: 700;
  line-height: 1; pointer-events: none; opacity: .75;
}
.sq .cf { right: 3px; bottom: 2px; }
.sq .cr { left: 3px; top: 2px; }
.sq.light .cf, .sq.light .cr { color: #3d454e; }
.sq.dark .cf, .sq.dark .cr { color: #d9dee2; }

.chess-msg {
  margin-top: 10px; min-height: 22px;
  font-size: 15px; color: var(--silver-hi); text-align: center;
}
.chess-msg.ok { color: var(--green); font-weight: 700; }
.chess-msg.no { color: #ff6b82; font-weight: 700; }

.chess-result {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 12px; padding: 12px 14px;
  background: rgba(216, 180, 90, .08); border: 1px solid rgba(216, 180, 90, .55);
  border-radius: 4px;
}
.chess-result.ok { background: rgba(25, 195, 125, .1); border-color: rgba(25, 195, 125, .6); }
.chess-result img { width: 56px; height: 56px; object-fit: contain; flex-shrink: 0; }
.chess-result b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: 19px; text-transform: uppercase; letter-spacing: .03em;
}
.chess-result .chess-xp { color: var(--gold); font-family: var(--display); font-size: 16px; letter-spacing: .04em; }
.chess-result p { font-size: 15px; line-height: 1.45; margin-top: 4px; color: var(--text); }

.chess-done { text-align: center; padding: 18px 6px; }
.chess-done img { width: 140px; height: 140px; object-fit: contain; }
.chess-done b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 26px; text-transform: uppercase; letter-spacing: .03em; margin: 6px 0;
}
.chess-done span { display: block; font-size: 15px; color: var(--silver-hi); line-height: 1.45; margin-top: 6px; }
