.rs-game-arena-panel{margin:22px 0;padding:22px;border-radius:28px;background:linear-gradient(135deg,#fff7ed,#f1f5ff)}.rs-game-arena-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:16px}.rs-game-card{background:#fff;border:1px solid rgba(124,58,237,.14);border-radius:22px;padding:18px;box-shadow:0 12px 30px rgba(67,56,202,.08)}.rs-game-card h3{margin-top:0}.rs-game-card select{width:100%;margin:8px 0 12px;border-radius:12px;border:1px solid #ddd;padding:10px}.rs-game-card--wide{grid-column:1/-1}.rs-parent-challenge-row{border-top:1px solid #eee;padding:12px 0;display:flex;gap:10px;align-items:center;flex-wrap:wrap}.rs-game-board-static{font-family:monospace;font-size:30px;line-height:1.35;background:#fffaf0;border:8px solid #d7c5a1;border-radius:18px;padding:16px;display:inline-block;letter-spacing:6px;margin:14px 0;color:#2d2357}@media(max-width:900px){.rs-game-arena-grid{grid-template-columns:1fr}.rs-game-board-static{font-size:22px;letter-spacing:3px}}

/* v1.3.10 — Full game board. Reset button defaults to avoid truncated boards. */
.rs-game-live-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap}.rs-game-status-pill{border:1px solid rgba(124,58,237,.18);border-radius:999px;background:#f5f0ff;color:#4c1d95;font-weight:800;padding:10px 14px}.rs-game-scorebar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.rs-game-scorebar>div{border:1px solid rgba(124,58,237,.14);border-radius:16px;background:#fff;padding:10px 12px}.rs-game-live-layout{display:grid;grid-template-columns:minmax(280px,560px) minmax(260px,1fr);gap:22px;align-items:start}.rs-live-board-wrap{width:min(560px,92vw);max-width:100%;aspect-ratio:1/1;border:8px solid #d7c5a1;border-radius:20px;overflow:hidden;background:#d7c5a1;box-shadow:0 18px 42px rgba(67,56,202,.16)}.rs-live-board{display:grid;width:100%;height:100%;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}.rs-live-square{appearance:none;-webkit-appearance:none;width:100%;min-width:0;max-width:none;height:100%;min-height:0;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;box-sizing:border-box;background:#f1ddb9;color:#fff;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;line-height:1}.rs-live-square.is-dark{background:#b98761}.rs-live-square.is-light{background:#efd9b2}.rs-live-square.is-selected{outline:4px solid #7c3aed;outline-offset:-4px}.rs-live-square.is-target:after{content:"";width:28%;height:28%;border-radius:999px;background:rgba(124,58,237,.55);position:absolute;z-index:1}.rs-live-square .rs-piece{width:82%;height:82%;display:flex;align-items:center;justify-content:center;line-height:1;z-index:2}.rs-live-square .rs-piece-img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 3px 3px rgba(0,0,0,.18))}.rs-square-label{display:none!important}.rs-game-live-status{font-weight:900;color:#4c1d95;margin:14px 0 10px}.rs-game-side-panel{background:#fff;border:1px solid rgba(124,58,237,.14);border-radius:22px;padding:18px;box-shadow:0 12px 30px rgba(67,56,202,.08)}.rs-game-side-panel h2,.rs-game-side-panel h3{margin-top:0}.rs-game-moves{min-height:120px;background:#fffaf0;border:1px solid rgba(180,130,60,.22);border-radius:16px;padding:12px;font-family:monospace;line-height:1.6;white-space:pre-wrap}.rs-game-history-list{max-height:180px;overflow:auto;padding-left:20px}.rs-game-safety-note{margin-top:14px;border-radius:16px;background:#f8fafc;padding:12px;color:#334155}.rs-game-actions{display:flex;gap:10px;flex-wrap:wrap}@media(max-width:900px){.rs-game-scorebar,.rs-game-live-layout{grid-template-columns:1fr}.rs-live-board-wrap{width:min(94vw,560px)}.rs-live-square .rs-piece{width:84%;height:84%}}

/* v1.3.11 - Stockfish / AI engine status */
.rs-game-engine-status {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .02em;
	color: #584a7a;
	background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(248,244,255,.94));
	border: 1px solid rgba(124,58,237,.14);
	border-radius: 999px;
	padding: 8px 12px;
	display: inline-flex;
	align-items: center;
	box-shadow: 0 8px 18px rgba(43,31,80,.08);
}


/* v1.3.11.3 — Arena visual parity with lesson board */
.rs-live-board-wrap {
  width: min(560px, 92vw);
  max-width: 100%;
  aspect-ratio: 1 / 1;
  border: 8px solid #d7c5a1;
  border-radius: 20px;
  overflow: hidden;
  background: #d7c5a1;
  box-shadow: 0 18px 42px rgba(67,56,202,.16);
}
.rs-live-board {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
}
.rs-live-square {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  cursor: pointer;
  line-height: 1 !important;
  font-size: 0 !important;
  text-indent: 0 !important;
  overflow: hidden;
}
.rs-live-square.is-light { background: #f2dfc2 !important; }
.rs-live-square.is-dark { background: #b58863 !important; }
.rs-live-square.is-selected { box-shadow: inset 0 0 0 4px rgba(79,70,229,.95) !important; outline: none !important; }
.rs-live-square.is-target::after {
  content: "";
  position: absolute;
  width: 24%;
  height: 24%;
  border-radius: 999px;
  background: rgba(34,197,94,.82);
  z-index: 1;
}
.rs-live-square .rs-piece-holder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 2;
  pointer-events: none;
}
.rs-live-square .rs-piece,
.rs-live-square .rs-piece-img,
.rs-live-square .rs-arena-piece-img {
  display: block !important;
  width: 76% !important;
  height: 76% !important;
  max-width: 76% !important;
  max-height: 76% !important;
  object-fit: contain !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
  filter: none !important;
  opacity: 1 !important;
}
.rs-live-square .rs-square-label,
.rs-live-square [class*="square-label"],
.rs-live-square .rs-live-square__label {
  display: none !important;
  visibility: hidden !important;
  content: none !important;
}
.rs-live-square .rs-square__coord {
  position: absolute;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 700;
  opacity: .72;
  pointer-events: none;
  color: rgba(255,255,255,.9);
  z-index: 3;
  text-indent: 0 !important;
}
.rs-live-square.is-light .rs-square__coord { color: rgba(60,45,25,.7); }
.rs-live-square .rs-square__coord--file { right: 6px; bottom: 4px; }
.rs-live-square .rs-square__coord--rank { left: 6px; top: 4px; }
.rs-live-square::before { content: none !important; display: none !important; }
@media (max-width: 900px) {
  .rs-live-board-wrap { width: min(94vw, 560px); }
}

/* v1.3.11.4 — Desktop/mobile Arena board parity with lesson board.
   This block intentionally mirrors rs-lessons.css board behaviour. */
.rs-game-live .rs-live-board-wrap {
	width: min(560px, 92vw) !important;
	max-width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	border: 8px solid #d7c5a1 !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	background: #d7c5a1 !important;
	box-shadow: 0 16px 36px rgba(59, 51, 30, 0.16) !important;
	box-sizing: border-box !important;
}
.rs-game-live .rs-live-board {
	display: grid !important;
	grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
	grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	background: #d7c5a1 !important;
	box-sizing: border-box !important;
}
.rs-game-live .rs-live-square.rs-square {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	aspect-ratio: 1 / 1 !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none;
	-webkit-appearance: none !important;
	appearance: none !important;
	box-sizing: border-box !important;
	cursor: pointer;
	line-height: 1 !important;
	font-size: 0 !important;
	text-indent: 0 !important;
	overflow: hidden !important;
	user-select: none;
}
.rs-game-live .rs-live-square.rs-square--light { background: #f2dfc2 !important; }
.rs-game-live .rs-live-square.rs-square--dark { background: #b58863 !important; }
.rs-game-live .rs-live-square.rs-square--selected,
.rs-game-live .rs-live-square.is-selected {
	box-shadow: inset 0 0 0 4px rgba(79, 70, 229, 0.95) !important;
	outline: none !important;
}
.rs-game-live .rs-live-square.rs-square--target::after,
.rs-game-live .rs-live-square.is-target::after {
	content: "" !important;
	position: absolute !important;
	width: 24% !important;
	height: 24% !important;
	border-radius: 999px !important;
	background: rgba(34, 197, 94, 0.82) !important;
	z-index: 1 !important;
}
.rs-game-live .rs-live-square .rs-piece,
.rs-game-live .rs-live-square .rs-arena-piece-img {
	display: block !important;
	width: 76% !important;
	height: 76% !important;
	max-width: 76% !important;
	max-height: 76% !important;
	object-fit: contain !important;
	pointer-events: none !important;
	user-select: none !important;
	-webkit-user-drag: none !important;
	filter: none !important;
	opacity: 1 !important;
	z-index: 2 !important;
}
.rs-game-live .rs-live-square .rs-square__coord {
	position: absolute !important;
	font-size: 10px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	opacity: 0.72 !important;
	pointer-events: none !important;
	color: rgba(255,255,255,.9) !important;
	z-index: 3 !important;
	text-indent: 0 !important;
}
.rs-game-live .rs-live-square.rs-square--light .rs-square__coord { color: rgba(60,45,25,.7) !important; }
.rs-game-live .rs-live-square .rs-square__coord--file { right: 6px !important; bottom: 4px !important; }
.rs-game-live .rs-live-square .rs-square__coord--rank { left: 6px !important; top: 4px !important; }
.rs-game-live .rs-live-square .rs-square-label,
.rs-game-live .rs-live-square [class*="square-label"],
.rs-game-live .rs-live-square .rs-live-square__label,
.rs-game-live .rs-live-square .rs-piece-holder {
	display: none !important;
	visibility: hidden !important;
}
.rs-game-live .rs-live-square::before { content: none !important; display: none !important; }
@media (max-width: 900px) {
	.rs-game-live .rs-live-board-wrap { width: min(94vw, 560px) !important; }
}

/* v1.3.12 — Arena scorebar uses approved piece assets instead of Unicode labels. */
.rs-game-scorebar__piece{
	display:inline-block;
	width:18px;
	height:18px;
	object-fit:contain;
	vertical-align:-4px;
	margin-right:4px;
}
