/**
 * West of the Tunnel — Crossword Player styles (front-end, visitors)
 */

#wott-crossword-player {
	width: 100vw;
	max-width: 1400px;
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	margin-left: 50%;
	transform: translateX(-50%);
}

.wott-cw-post-meta {
	font-size: 0.85rem;
	color: #777;
	margin: 0 0 1rem;
}

.wott-cw-post-meta a {
	color: #941c1c;
}

.wott-cw-player-toolbar {
	margin-bottom: 0.75rem;
}

.wott-cw-toolbar-row {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 0.5rem;
}

.wott-cw-btn {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	border-radius: 3px;
	border: 1px solid #1a1a1a;
	background: #1a1a1a;
	color: #fff;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.wott-cw-btn:hover {
	background: #333;
}

.wott-cw-btn-secondary {
	background: #fff;
	color: #1a1a1a;
}

.wott-cw-btn-secondary:hover {
	background: #f0f0f0;
}

.wott-cw-status {
	font-weight: 600;
	color: #1a6e1a;
}

.wott-cw-timer {
	font-size: 1.1rem;
	font-weight: 700;
	font-family: monospace;
	min-width: 3.5rem;
}

#wott-cw-pausable-area.wott-cw-paused {
	position: relative;
}

#wott-cw-pausable-area.wott-cw-paused > * {
	filter: blur(8px);
	pointer-events: none;
	user-select: none;
}

#wott-cw-pausable-area.wott-cw-paused::after {
	content: "Paused — click Resume to keep going";
	position: absolute;
	top: 1rem;
	left: 0;
	right: 0;
	text-align: center;
	font-size: 1.1rem;
	font-weight: 700;
	color: #1a1a1a;
	z-index: 5;
}

.wott-cw-active-clue {
	background: #fdf6e3;
	border: 1px solid #e9d9a0;
	border-radius: 4px;
	padding: 0.75rem 1.1rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 1.25rem;
	position: sticky;
	top: 0;
	z-index: 10;
}

.wott-cw-player-layout {
	display: flex;
	gap: 3rem;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: center;
}

.wott-cw-player-grid-inner {
	display: grid;
	gap: 2px;
	background: #999;
	border: 3px solid #1a1a1a;
	box-sizing: border-box;
	width: max-content;
}

.wott-cwp-cell {
	width: 68px;
	height: 68px;
	background: #fff;
	box-sizing: border-box;
	padding: 4px;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wott-cwp-cell-black {
	background: #1a1a1a;
}

.wott-cwp-cell-active-word {
	background: #fdf0c4;
}

.wott-cwp-cell-active {
	background: #f8d978;
}

.wott-cwp-cell-number {
	position: absolute;
	top: 1px;
	left: 3px;
	font-size: 0.65rem;
	font-weight: 700;
	color: #555;
	line-height: 1;
	pointer-events: none;
}

.wott-cwp-letter-input {
	width: 100%;
	height: 100%;
	border: none;
	box-sizing: border-box;
	text-align: center;
	text-transform: uppercase;
	font-size: 1.7rem;
	line-height: 1.4;
	font-weight: 700;
	background: transparent;
	padding: 0;
}

.wott-cwp-letter-input:focus {
	outline: none;
}

.wott-cw-player-clue-panel {
	flex: 1 1 300px;
	min-width: 260px;
}

.wott-cwp-clue-row {
	padding: 0.5rem 0.6rem;
	border-bottom: 1px solid #eee;
	font-size: 0.9rem;
	cursor: pointer;
	border-radius: 3px;
}

.wott-cwp-clue-row:hover {
	background: #f7f5f1;
}

.wott-cwp-clue-row-active {
	background: #fdf0c4;
	font-weight: 600;
}
