/* Chess Bridges game.html in the rnbqkbnr.com "Shioh style": the board, its buttons and the
   help / new-puzzle panel sit in one cell of the main column (sidebar rules: css/sidebar.css).
   Loaded last, over shared/game.css and the page's own styles. Only colours, fonts and panel
   chrome change; the board drawing is untouched. shared/game.css itself is left as-is because it
   is shared with the sudokufarm puzzles. */
body.ss { margin: 0; font-family: var(--ss-font-body); }

/* The board: white squares with a thin frame. */
#gameContainer {
	background: #fff;
	margin: 0 auto;
	border: 2px solid #222;
	box-shadow: 0 2px 10px rgb(0 0 0 / 0.25);
}

/* Buttons under the board. */
#footer {
	max-width: 42rem;
	margin: 0.9rem auto 0;
	padding: 0;
	border: 0;
	gap: 0.5rem;
}
#footer > * {
	margin: 0;
	font-family: var(--ss-font-body);
	font-weight: 600;
	font-size: clamp(0.85rem, 3.4vw, 1rem);
	background: #fff;
	border: 1px solid #222;
	border-radius: var(--ss-radius-sm);
	color: var(--ss-ink);
}
#footer > *:hover { background: #f3f1f7; text-decoration: none; }
#footer > a:first-child { background: var(--ss-accent); border-color: var(--ss-accent); color: #fff; }
#footer > a:first-child:hover { opacity: .9; }

/* Help / new-puzzle panel: takes the board's place, on a lighter panel. */
#message {
	position: relative;
	max-width: 42rem;
	background: var(--ss-panel);
	color: var(--ss-ink);
	border: 1px solid var(--ss-border);
	border-radius: var(--ss-radius-sm);
	margin: 0 auto;
	padding: 2.4rem 0.9rem 0.9rem;
	box-sizing: border-box;
}
#help > button {
	font-family: var(--ss-font-body);
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.45rem 0.9rem;
	border-radius: var(--ss-radius-sm);
	border: 1px solid var(--ss-accent);
	background: var(--ss-accent);
	color: #fff;
	cursor: pointer;
}
#help > button:hover { opacity: .9; }
#message details { border: 0; background: var(--ss-panel); border-radius: var(--ss-radius-sm); margin: 0.6rem 0; overflow: hidden; }
#message summary { background: var(--ss-band); font-family: var(--ss-font-head); font-weight: 700; padding: 0.45rem 0.8rem; }
#message details > div { padding: 0.6rem 0.9rem; }
#message details img { background: #fff; border-radius: var(--ss-radius-sm); }
.close {
	border: 1px solid #222;
	background: #fff;
	color: var(--ss-ink);
	border-radius: var(--ss-radius-sm);
	margin: 0.5rem;
	font-size: 1rem;
	line-height: 1rem;
}
.close:hover { background: #f3f1f7; }
#win { font-family: var(--ss-font-head); font-weight: 700; }
#win hr { border: 0; border-top: 1px solid var(--ss-rule); }

/* Level picker */
.diff {
	font-family: var(--ss-font-body);
	font-weight: 600;
	background: var(--ss-panel-strong);
	border: 1px solid rgb(34 34 34 / 0.35);
	border-radius: var(--ss-radius-sm);
}
.diff:hover { background: #fff; text-decoration: none; }
.diffActive, .diffActive:hover { background: #fff; border: 2px solid var(--ss-accent); }
.newIndex { border-radius: var(--ss-radius-sm); border-color: rgb(34 34 34 / 0.45); }
.currentLevel { border: 2px solid var(--ss-accent); }
.loadError { background: var(--ss-p4); }

@media (max-width: 860px) {
	#footer { margin-top: 0.7rem; gap: 0.35rem; }
}
