.dominosa {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 360px;
	padding: 1rem 0.75rem 1.5rem;
}
.dominosa__container {
	max-width: 100%;
	max-height: 100%;
}
.dominosa__game-board {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
}
.dominosa__grid {
	display: grid;
	gap: 3px;
	background: #e2e8f0;
	border: 1px solid #cbd5e1;
	padding: 3px;
	border-radius: 12px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 10px 32px rgba(15, 23, 42, 0.1);
	max-width: min(90vw, 28rem);
	max-height: 70vh;
}
@media (max-width: 768px) {
	.dominosa__grid {
		max-width: 95vw;
		max-height: 60vh;
		gap: 2px;
		padding: 2px;
		border-radius: 10px;
	}
}
.dominosa__cell {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #e2e8f0;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
	min-width: 40px;
	min-height: 40px;
	font-weight: 600;
	font-size: 1.05rem;
	color: #1e293b;
	position: relative;
	border-radius: 4px;
}
.dominosa__cell:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	transform: scale(1.02);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.dominosa__cell--selected {
	background: #0d9488;
	color: #fff;
	border-color: #0f766e;
	transform: scale(1.04);
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
	z-index: 1;
}
.dominosa__cell--highlighted {
	background: #fcd34d;
	color: #422006;
	border-color: #f59e0b;
	animation: dominosa-pulse 1.1s ease-in-out infinite;
}
.dominosa__cell--domino {
	background: #059669;
	color: #fff;
	border-color: #047857;
	box-shadow: 0 2px 10px rgba(5, 150, 105, 0.3);
	position: relative;
}
.dominosa__cell--domino::after {
	content: '';
	position: absolute;
	width: 0;
	height: 0;
	border: 7px solid transparent;
	border-left-color: #047857;
	right: -7px;
	top: 50%;
	transform: translateY(-50%);
}
.dominosa__cell--error {
	background: #dc2626 !important;
	color: #fff !important;
	border-color: #b91c1c !important;
	animation: dominosa-shake 0.45s ease-in-out;
	box-shadow: 0 2px 10px rgba(220, 38, 38, 0.35) !important;
}
.dominosa__cell--error::after {
	display: none !important;
}
@media (max-width: 768px) {
	.dominosa__cell {
		min-width: 30px;
		min-height: 30px;
		font-size: 0.9rem;
	}
}
.dominosa__number {
	font-family: ui-monospace, 'Cascadia Code', 'Courier New', monospace;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.dominosa__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	font-size: 1rem;
	color: #64748b;
}
@keyframes dominosa-pulse {
	0%, 100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.03);
	}
}
@keyframes dominosa-shake {
	0%, 100% {
		transform: translateX(0);
	}
	25% {
		transform: translateX(-2px);
	}
	75% {
		transform: translateX(2px);
	}
}
.dominosa-win-modal {
	text-align: center;
}
.dominosa-win-modal .modal-info {
	margin: 1.25rem 0;
	padding: 1rem;
	background: #f1f5f9;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
}
.dominosa-win-modal .modal-info p {
	margin: 0.5rem 0;
	font-size: 1rem;
}
.dominosa-win-modal .modal-info p strong {
	color: #0f172a;
}
.game[ng-cloak] {
	display: none !important;
}
.dominosa__grid[style*='grid-template-columns: repeat(10'] .dominosa__cell,
.dominosa__grid[style*='grid-template-columns: repeat(11'] .dominosa__cell {
	min-width: 35px;
	min-height: 35px;
	font-size: 0.95rem;
}
@media (max-width: 768px) {
	.dominosa__grid[style*='grid-template-columns: repeat(10'] .dominosa__cell,
	.dominosa__grid[style*='grid-template-columns: repeat(11'] .dominosa__cell {
		min-width: 25px;
		min-height: 25px;
		font-size: 0.8rem;
	}
}
.dominosa__grid[style*='grid-template-columns: repeat(9'] .dominosa__cell {
	min-width: 38px;
	min-height: 38px;
	font-size: 1rem;
}
@media (max-width: 768px) {
	.dominosa__grid[style*='grid-template-columns: repeat(9'] .dominosa__cell {
		min-width: 28px;
		min-height: 28px;
		font-size: 0.85rem;
	}
}
body.dark-theme .dominosa .dominosa__grid {
	background: #334155;
	border-color: #475569;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 12px 36px rgba(0, 0, 0, 0.35);
}
body.dark-theme .dominosa .dominosa__cell {
	background: #1e293b;
	color: #f1f5f9;
	border-color: #475569;
}
body.dark-theme .dominosa .dominosa__cell:hover {
	background: #334155;
	border-color: #64748b;
}
body.dark-theme .dominosa .dominosa__cell--selected {
	background: #14b8a6;
	color: #fff;
	border-color: #0d9488;
	box-shadow: 0 4px 18px rgba(20, 184, 166, 0.35);
}
body.dark-theme .dominosa .dominosa__cell--highlighted {
	background: #d97706;
	color: #fffbeb;
	border-color: #b45309;
}
body.dark-theme .dominosa .dominosa__cell--domino {
	background: #10b981;
	border-color: #059669;
}
body.dark-theme .dominosa .dominosa__cell--domino::after {
	border-left-color: #047857;
}
body.dark-theme .dominosa .dominosa__cell--error {
	background: #ef4444 !important;
	border-color: #dc2626 !important;
}
body.dark-theme .dominosa .dominosa__loading {
	color: #94a3b8;
}
