#dd-game-root, .dd-root {
	max-width: 400px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dd-grid {
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
}
.dd-tile {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #d8dbe0;
	border-radius: 10px;
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
	background: #fff;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.dd-tile.dd-filled {
	border-color: #9aa0aa;
	transform: scale(1.03);
}
.dd-tile.dd-locked-hint {
	color: #9aa0aa;
	border-style: dashed;
	border-color: #2f9e75;
}

/* Original palette: teal for correct, amber for present, slate for absent */
.dd-tile.dd-correct { background: #2f9e75; border-color: #2f9e75; color: #fff; }
.dd-tile.dd-present { background: #e2984b; border-color: #e2984b; color: #fff; }
.dd-tile.dd-absent  { background: #6b7280; border-color: #6b7280; color: #fff; }

.dd-message {
	min-height: 22px;
	text-align: center;
	font-weight: 600;
	margin-bottom: 12px;
	color: #333;
}

.dd-keyboard {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.dd-key-row {
	display: flex;
	justify-content: center;
	gap: 6px;
}
.dd-key {
	min-width: 32px;
	height: 46px;
	padding: 0 8px;
	border: none;
	border-radius: 6px;
	background: #e3e5e8;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	text-transform: uppercase;
	transition: background 0.15s ease;
}
.dd-key:hover { background: #d3d6da; }
.dd-key-wide { min-width: 52px; font-size: 12px; }

.dd-key.dd-correct { background: #2f9e75; color: #fff; }
.dd-key.dd-present { background: #e2984b; color: #fff; }
.dd-key.dd-absent  { background: #6b7280; color: #fff; }
